net.minecraft.server.network

public class ServerGamePacketListenerImpl

implements ServerPlayerConnection, ServerGamePacketListener

aeo
net.minecraft.server.network.ServerGamePacketListenerImpl
net.minecraft.class_3244
net.minecraft.server.network.ServerPlayNetworkHandler
net.minecraft.src.C_31_
net.minecraft.server.network.PlayerConnection

Field summary

Modifier and TypeField
static final org.slf4j.Logger
c
LOGGER
field_14121
LOGGER
f_9744_
private static final int
d
LATENCY_CHECK_INTERVAL
field_29778
KEEP_ALIVE_INTERVAL
f_143608_
public final Connection
a
connection
field_14127
connection
f_9742_
private final MinecraftServer
e
server
field_14148
server
f_9745_
public ServerPlayer
b
player
field_14140
player
f_9743_
private int
f
tickCount
field_14118
ticks
f_9746_
private long
g
keepAliveTime
field_14136
lastKeepAliveTime
f_9747_
private boolean
h
keepAlivePending
field_14125
waitingForKeepAlive
f_9748_
private long
i
keepAliveChallenge
field_14134
keepAliveId
f_9749_
private int
j
chatSpamTickCount
field_14116
messageCooldown
f_9750_
private int
k
dropSpamTickCount
field_14133
creativeItemDropThreshold
f_9751_
private double
l
firstGoodX
field_14130
lastTickX
f_9753_
private double
m
firstGoodY
field_14146
lastTickY
f_9754_
private double
n
firstGoodZ
field_14128
lastTickZ
f_9755_
private double
o
lastGoodX
field_14145
updatedX
f_9756_
private double
p
lastGoodY
field_14126
updatedY
f_9757_
private double
q
lastGoodZ
field_14144
updatedZ
f_9758_
private Entity
r
lastVehicle
field_14147
topmostRiddenEntity
f_9759_
private double
s
vehicleFirstGoodX
field_14143
lastTickRiddenX
f_9760_
private double
t
vehicleFirstGoodY
field_14124
lastTickRiddenY
f_9761_
private double
u
vehicleFirstGoodZ
field_14142
lastTickRiddenZ
f_9762_
private double
v
vehicleLastGoodX
field_14122
updatedRiddenX
f_9763_
private double
w
vehicleLastGoodY
field_14141
updatedRiddenY
f_9764_
private double
x
vehicleLastGoodZ
field_14120
updatedRiddenZ
f_9765_
private Vec3
y
awaitingPositionFromClient
field_14119
requestedTeleportPos
f_9766_
private int
z
awaitingTeleport
field_14123
requestedTeleportId
f_9767_
private int
A
awaitingTeleportTime
field_14139
teleportRequestTick
f_9735_
private boolean
B
clientIsFloating
field_14131
floating
f_9736_
private int
C
aboveGroundTickCount
field_14138
floatingTicks
f_9737_
private boolean
D
clientVehicleIsFloating
field_14129
vehicleFloating
f_9738_
private int
E
aboveGroundVehicleTickCount
field_14137
vehicleFloatingTicks
f_9739_
private int
F
receivedMovePacketCount
field_14117
movePacketsCount
f_9740_
private int
G
knownMovePacketCount
field_14135
lastTickMovePacketsCount
f_9741_

Constructor summary

ModifierConstructor
public (MinecraftServer server, Connection connection, ServerPlayer player)

Method summary

Modifier and TypeMethod
public void
c()
tick()
method_18784()
tick()
m_9933_()
public void
d()
resetPosition()
method_14372()
syncWithPlayerPosition()
m_9953_()
public Connection
a()
getConnection()
method_2872()
getConnection()
m_6198_()
private boolean
f()
isSingleplayerOwner()
method_19507()
isHost()
m_9956_()
public void
b(qk arg0)
disconnect(Component arg0)
method_14367(class_2561 arg0)
disconnect(Text reason)
m_9942_(C_4996_ arg0)
private <T, R> void
a(T arg0, Consumer<R> arg1, BiFunction<aet, T, CompletableFuture<R>> arg2)
filterTextPacket(T arg0, Consumer<R> arg1, BiFunction<TextFilter, T, CompletableFuture<R>> arg2)
method_31275(T arg0, Consumer<R> arg1, BiFunction<class_5513, T, CompletableFuture<R>> arg2)
filterText(T text, Consumer<R> consumer, BiFunction<TextStream, T, CompletableFuture<R>> backingFilterer)
m_9801_(T p_9803_, Consumer<R> p_9804_, BiFunction<C_41_, T, CompletableFuture<R>> arg2)
private void
a(String arg0, Consumer<aet$a> arg1)
filterTextPacket(String arg0, Consumer<TextFilter$FilteredText> arg1)
method_31277(String arg0, Consumer<class_5513$class_5837> arg1)
filterText(String text, Consumer<TextStream$Message> consumer)
m_9809_(String p_9811_, Consumer<C_41_$C_140964_> arg1)
private void
a(List<String> arg0, Consumer<List<aet$a>> arg1)
filterTextPacket(List<String> arg0, Consumer<List<TextFilter$FilteredText>> arg1)
method_31279(List<String> arg0, Consumer<List<class_5513$class_5837>> arg1)
filterTexts(List<String> texts, Consumer<List<TextStream$Message>> consumer)
m_9815_(List<String> p_9817_, Consumer<List<C_41_$C_140964_>> arg1)
public void
a(wj arg0)
handlePlayerInput(ServerboundPlayerInputPacket arg0)
method_12067(class_2851 arg0)
onPlayerInput(PlayerInputC2SPacket arg0)
m_5918_(C_5179_ arg0)
private static boolean
c(double arg0, double arg1, double arg2, float arg3, float arg4)
containsInvalidValues(double arg0, double arg1, double arg2, float arg3, float arg4)
method_14371(double arg0, double arg1, double arg2, float arg3, float arg4)
isMovementInvalid(double x, double y, double z, float yaw, float pitch)
m_143663_(double p_143664_, double p_143666_, double p_143668_, float arg3, float arg4)
private static double
a(double arg0)
clampHorizontal(double arg0)
method_34882(double arg0)
clampHorizontal(double d)
m_143609_(double p_143610_)
private static double
b(double arg0)
clampVertical(double arg0)
method_34883(double arg0)
clampVertical(double d)
m_143653_(double p_143654_)
public void
a(wc arg0)
handleMoveVehicle(ServerboundMoveVehiclePacket arg0)
method_12078(class_2833 arg0)
onVehicleMove(VehicleMoveC2SPacket arg0)
m_5659_(C_5170_ arg0)
private boolean
a(axk arg0)
noBlocksAround(Entity arg0)
method_29780(class_1297 arg0)
isEntityOnAir(Entity entity)
m_9793_(C_507_ arg0)
public void
a(vk arg0)
handleAcceptTeleportPacket(ServerboundAcceptTeleportationPacket arg0)
method_12050(class_2793 arg0)
onTeleportConfirm(TeleportConfirmC2SPacket arg0)
m_7376_(C_5146_ arg0)
public void
a(wm arg0)
handleRecipeBookSeenRecipePacket(ServerboundRecipeBookSeenRecipePacket arg0)
method_12047(class_2853 arg0)
onRecipeBookData(RecipeBookDataC2SPacket arg0)
m_7411_(C_5181_ arg0)
public void
a(wl arg0)
handleRecipeBookChangeSettingsPacket(ServerboundRecipeBookChangeSettingsPacket arg0)
method_30303(class_5427 arg0)
onRecipeCategoryOptions(RecipeCategoryOptionsC2SPacket arg0)
m_7982_(C_5180_ arg0)
public void
a(wp arg0)
handleSeenAdvancements(ServerboundSeenAdvancementsPacket arg0)
method_12058(class_2859 arg0)
onAdvancementTab(AdvancementTabC2SPacket arg0)
m_6947_(C_5185_ arg0)
public void
a(vq arg0)
handleCustomCommandSuggestions(ServerboundCommandSuggestionPacket arg0)
method_12059(class_2805 arg0)
onRequestCommandCompletions(RequestCommandCompletionsC2SPacket arg0)
m_7741_(C_5153_ arg0)
public void
a(wt arg0)
handleSetCommandBlock(ServerboundSetCommandBlockPacket arg0)
method_12077(class_2870 arg0)
onUpdateCommandBlock(UpdateCommandBlockC2SPacket arg0)
m_7192_(C_5190_ arg0)
public void
a(wu arg0)
handleSetCommandMinecart(ServerboundSetCommandMinecartPacket arg0)
method_12049(class_2871 arg0)
onUpdateCommandBlockMinecart(UpdateCommandBlockMinecartC2SPacket arg0)
m_6629_(C_5191_ arg0)
public void
a(we arg0)
handlePickItem(ServerboundPickItemPacket arg0)
method_12084(class_2838 arg0)
onPickFromInventory(PickFromInventoryC2SPacket arg0)
m_7965_(C_5172_ arg0)
public void
a(wn arg0)
handleRenameItem(ServerboundRenameItemPacket arg0)
method_12060(class_2855 arg0)
onRenameItem(RenameItemC2SPacket arg0)
m_5591_(C_5182_ arg0)
public void
a(wr arg0)
handleSetBeaconPacket(ServerboundSetBeaconPacket arg0)
method_12057(class_2866 arg0)
onUpdateBeacon(UpdateBeaconC2SPacket arg0)
m_5712_(C_5188_ arg0)
public void
a(wx arg0)
handleSetStructureBlock(ServerboundSetStructureBlockPacket arg0)
method_12051(class_2875 arg0)
onUpdateStructureBlock(UpdateStructureBlockC2SPacket arg0)
m_7424_(C_5194_ arg0)
public void
a(ww arg0)
handleSetJigsawBlock(ServerboundSetJigsawBlockPacket arg0)
method_16383(class_3753 arg0)
onUpdateJigsaw(UpdateJigsawC2SPacket arg0)
m_8019_(C_5193_ arg0)
public void
a(vy arg0)
handleJigsawGenerate(ServerboundJigsawGeneratePacket arg0)
method_27273(class_5194 arg0)
onJigsawGenerating(JigsawGeneratingC2SPacket arg0)
m_6449_(C_5163_ arg0)
public void
a(wq arg0)
handleSelectTrade(ServerboundSelectTradePacket arg0)
method_12080(class_2863 arg0)
onSelectMerchantTrade(SelectMerchantTradeC2SPacket arg0)
m_6321_(C_5187_ arg0)
public void
a(vv arg0)
handleEditBook(ServerboundEditBookPacket arg0)
method_12053(class_2820 arg0)
onBookUpdate(BookUpdateC2SPacket arg0)
m_6829_(C_5159_ arg0)
private void
a(List<aet$a> arg0, int arg1)
updateBookContents(List<TextFilter$FilteredText> arg0, int arg1)
method_31278(List<class_5513$class_5837> arg0, int arg1)
updateBookContent(List<TextStream$Message> pages, int slotId)
m_9812_(List<C_41_$C_140964_> p_9814_, int arg1)
private void
a(aet$a arg0, List<aet$a> arg1, int arg2)
signBook(TextFilter$FilteredText arg0, List<TextFilter$FilteredText> arg1, int arg2)
method_31276(class_5513$class_5837 arg0, List<class_5513$class_5837> arg1, int arg2)
addBook(TextStream$Message title, List<TextStream$Message> pages, int slotId)
m_143630_(C_41_$C_140964_ p_143632_, List<C_41_$C_140964_> p_143633_, int arg2)
private void
a(List<aet$a> arg0, UnaryOperator<String> arg1, buw arg2)
updateBookPages(List<TextFilter$FilteredText> arg0, UnaryOperator<String> arg1, ItemStack arg2)
method_33796(List<class_5513$class_5837> arg0, UnaryOperator<String> arg1, class_1799 arg2)
setTextToBook(List<TextStream$Message> messages, UnaryOperator<String> postProcessor, ItemStack book)
m_143634_(List<C_41_$C_140964_> p_143636_, UnaryOperator<String> p_143637_, C_1391_ arg2)
public void
a(vw arg0)
handleEntityTagQuery(ServerboundEntityTagQuery arg0)
method_12074(class_2822 arg0)
onQueryEntityNbt(QueryEntityNbtC2SPacket arg0)
m_7548_(C_5160_ arg0)
public void
a(vl arg0)
handleBlockEntityTagQuery(ServerboundBlockEntityTagQuery arg0)
method_12072(class_2795 arg0)
onQueryBlockNbt(QueryBlockNbtC2SPacket arg0)
m_6780_(C_5147_ arg0)
public void
a(wb arg0)
handleMovePlayer(ServerboundMovePlayerPacket arg0)
method_12063(class_2828 arg0)
onPlayerMove(PlayerMoveC2SPacket arg0)
m_7185_(C_5166_ arg0)
private boolean
a(cay arg0, dpj arg1)
isPlayerCollidingWithAnythingNew(LevelReader arg0, AABB arg1)
method_20630(class_4538 arg0, class_238 arg1)
isPlayerNotCollidingWithBlocks(WorldView world, Box box)
m_9795_(C_1599_ p_9797_, C_3040_ arg1)
public void
a(double arg0, double arg1, double arg2, float arg3, float arg4)
dismount(double arg0, double arg1, double arg2, float arg3, float arg4)
method_33562(double arg0, double arg1, double arg2, float arg3, float arg4)
requestTeleportAndDismount(double x, double y, double z, float yaw, float pitch)
m_143611_(double p_143613_, double p_143615_, double arg2, float arg3, float arg4)
public void
b(double arg0, double arg1, double arg2, float arg3, float arg4)
teleport(double arg0, double arg1, double arg2, float arg3, float arg4)
method_14363(double arg0, double arg1, double arg2, float arg3, float arg4)
requestTeleport(double x, double y, double z, float yaw, float pitch)
m_9774_(double p_9776_, double p_9778_, double arg2, float arg3, float arg4)
public void
a(double arg0, double arg1, double arg2, float arg3, float arg4, Set<tk$a> arg5)
teleport(double arg0, double arg1, double arg2, float arg3, float arg4, Set<ClientboundPlayerPositionPacket$RelativeArgument> arg5)
method_14360(double arg0, double arg1, double arg2, float arg3, float arg4, Set<class_2708$class_2709> arg5)
requestTeleport(double x, double y, double z, float yaw, float pitch, Set<PlayerPositionLookS2CPacket$Flag> flags)
m_9780_(double p_9782_, double p_9784_, double p_9786_, float arg3, float arg4, Set<C_5096_$C_5097_> arg5)
public void
a(double arg0, double arg1, double arg2, float arg3, float arg4, Set<tk$a> arg5, boolean arg6)
teleport(double arg0, double arg1, double arg2, float arg3, float arg4, Set<ClientboundPlayerPositionPacket$RelativeArgument> arg5, boolean arg6)
method_33563(double arg0, double arg1, double arg2, float arg3, float arg4, Set<class_2708$class_2709> arg5, boolean arg6)
requestTeleport(double x, double y, double z, float yaw, float pitch, Set<PlayerPositionLookS2CPacket$Flag> flags, boolean shouldDismount)
m_143617_(double p_143619_, double p_143621_, double p_143623_, float arg3, float arg4, Set<C_5096_$C_5097_> arg5, boolean arg6)
public void
a(wh arg0)
handlePlayerAction(ServerboundPlayerActionPacket arg0)
method_12066(class_2846 arg0)
onPlayerAction(PlayerActionC2SPacket arg0)
m_7502_(C_5175_ arg0)
private static boolean
a(adx arg0, buw arg1)
wasBlockPlacementAttempt(ServerPlayer arg0, ItemStack arg1)
method_27913(class_3222 arg0, class_1799 arg1)
canPlace(ServerPlayerEntity player, ItemStack stack)
m_9790_(C_13_ p_9791_, C_1391_ p_9792_)
public void
a(xb arg0)
handleUseItemOn(ServerboundUseItemOnPacket arg0)
method_12046(class_2885 arg0)
onPlayerInteractBlock(PlayerInteractBlockC2SPacket arg0)
m_6371_(C_5198_ arg0)
public void
a(xc arg0)
handleUseItem(ServerboundUseItemPacket arg0)
method_12065(class_2886 arg0)
onPlayerInteractItem(PlayerInteractItemC2SPacket arg0)
m_5760_(C_5199_ arg0)
public void
a(xa arg0)
handleTeleportToEntityPacket(ServerboundTeleportToEntityPacket arg0)
method_12073(class_2884 arg0)
onSpectatorTeleport(SpectatorTeleportC2SPacket arg0)
m_6936_(C_5197_ arg0)
public void
a(wo arg0)
handleResourcePackResponse(ServerboundResourcePackPacket arg0)
method_12081(class_2856 arg0)
onResourcePackStatus(ResourcePackStatusC2SPacket arg0)
m_7529_(C_5183_ arg0)
public void
a(wd arg0)
handlePaddleBoat(ServerboundPaddleBoatPacket arg0)
method_12064(class_2836 arg0)
onBoatPaddleState(BoatPaddleStateC2SPacket arg0)
m_5938_(C_5171_ arg0)
public void
a(wk arg0)
handlePong(ServerboundPongPacket arg0)
method_36580(class_6374 arg0)
onPong(PlayPongC2SPacket arg0)
m_142110_(C_141880_ arg0)
public void
a(qk arg0)
onDisconnect(Component arg0)
method_10839(class_2561 arg0)
onDisconnected(Text arg0)
m_7026_(C_4996_ arg0)
public void
a(rc<?> arg0)
send(Packet<?> arg0)
method_14364(class_2596<?> arg0)
sendPacket(Packet<?> arg0)
m_141995_(C_5028_<?> arg0)
public void
a(rc<?> arg0, io.netty.util.concurrent.GenericFutureListener<? extends io.netty.util.concurrent.Future<? super Void>> arg1)
send(Packet<?> arg0, io.netty.util.concurrent.GenericFutureListener<? extends io.netty.util.concurrent.Future<? super Void>> arg1)
method_14369(class_2596<?> arg0, io.netty.util.concurrent.GenericFutureListener<? extends io.netty.util.concurrent.Future<? super Void>> arg1)
sendPacket(Packet<?> packet, io.netty.util.concurrent.GenericFutureListener<? extends io.netty.util.concurrent.Future<? super Void>> listener)
m_9831_(C_5028_<?> p_9833_, io.netty.util.concurrent.GenericFutureListener<? extends io.netty.util.concurrent.Future<? super Void>> arg1)
public void
a(ws arg0)
handleSetCarriedItem(ServerboundSetCarriedItemPacket arg0)
method_12056(class_2868 arg0)
onUpdateSelectedSlot(UpdateSelectedSlotC2SPacket arg0)
m_7798_(C_5189_ arg0)
public void
a(vn arg0)
handleChat(ServerboundChatPacket arg0)
method_12048(class_2797 arg0)
onChatMessage(ChatMessageC2SPacket arg0)
m_7388_(C_5149_ arg0)
private void
a(aet$a arg0)
handleChat(TextFilter$FilteredText arg0)
method_31286(class_5513$class_5837 arg0)
handleMessage(TextStream$Message message)
m_143628_(C_41_$C_140964_ arg0)
private void
a(String arg0)
handleCommand(String arg0)
method_14370(String arg0)
executeCommand(String input)
m_9957_(String arg0)
public void
a(wz arg0)
handleAnimate(ServerboundSwingPacket arg0)
method_12052(class_2879 arg0)
onHandSwing(HandSwingC2SPacket arg0)
m_7953_(C_5196_ arg0)
public void
a(wi arg0)
handlePlayerCommand(ServerboundPlayerCommandPacket arg0)
method_12045(class_2848 arg0)
onClientCommand(ClientCommandC2SPacket arg0)
m_5681_(C_5177_ arg0)
public void
a(vx arg0)
handleInteract(ServerboundInteractPacket arg0)
method_12062(class_2824 arg0)
onPlayerInteractEntity(PlayerInteractEntityC2SPacket arg0)
m_6946_(C_5161_ arg0)
public void
a(vo arg0)
handleClientCommand(ServerboundClientCommandPacket arg0)
method_12068(class_2799 arg0)
onClientStatus(ClientStatusC2SPacket arg0)
m_6272_(C_5150_ arg0)
public void
a(vt arg0)
handleContainerClose(ServerboundContainerClosePacket arg0)
method_12054(class_2815 arg0)
onCloseHandledScreen(CloseHandledScreenC2SPacket arg0)
m_7951_(C_5157_ arg0)
public void
a(vs arg0)
handleContainerClick(ServerboundContainerClickPacket arg0)
method_12076(class_2813 arg0)
onClickSlot(ClickSlotC2SPacket arg0)
m_5914_(C_5156_ arg0)
public void
a(wf arg0)
handlePlaceRecipe(ServerboundPlaceRecipePacket arg0)
method_12061(class_2840 arg0)
onCraftRequest(CraftRequestC2SPacket arg0)
m_7191_(C_5173_ arg0)
public void
a(vr arg0)
handleContainerButtonClick(ServerboundContainerButtonClickPacket arg0)
method_12055(class_2811 arg0)
onButtonClick(ButtonClickC2SPacket arg0)
m_6557_(C_5155_ arg0)
public void
a(wv arg0)
handleSetCreativeModeSlot(ServerboundSetCreativeModeSlotPacket arg0)
method_12070(class_2873 arg0)
onCreativeInventoryAction(CreativeInventoryActionC2SPacket arg0)
m_5964_(C_5192_ arg0)
public void
a(wy arg0)
handleSignUpdate(ServerboundSignUpdatePacket arg0)
method_12071(class_2877 arg0)
onUpdateSign(UpdateSignC2SPacket arg0)
m_5527_(C_5195_ arg0)
private void
a(wy arg0, List<aet$a> arg1)
updateSignText(ServerboundSignUpdatePacket arg0, List<TextFilter$FilteredText> arg1)
method_31282(class_2877 arg0, List<class_5513$class_5837> arg1)
onSignUpdate(UpdateSignC2SPacket packet, List<TextStream$Message> signText)
m_9922_(C_5195_ p_9924_, List<C_41_$C_140964_> arg1)
public void
a(vz arg0)
handleKeepAlive(ServerboundKeepAlivePacket arg0)
method_12082(class_2827 arg0)
onKeepAlive(KeepAliveC2SPacket arg0)
m_5683_(C_5164_ arg0)
public void
a(wg arg0)
handlePlayerAbilities(ServerboundPlayerAbilitiesPacket arg0)
method_12083(class_2842 arg0)
onUpdatePlayerAbilities(UpdatePlayerAbilitiesC2SPacket arg0)
m_6828_(C_5174_ arg0)
public void
a(vp arg0)
handleClientInformation(ServerboundClientInformationPacket arg0)
method_12069(class_2803 arg0)
onClientSettings(ClientSettingsC2SPacket arg0)
m_5617_(C_5152_ arg0)
public void
a(vu arg0)
handleCustomPayload(ServerboundCustomPayloadPacket arg0)
method_12075(class_2817 arg0)
onCustomPayload(CustomPayloadC2SPacket arg0)
m_7423_(C_5158_ arg0)
public void
a(vm arg0)
handleChangeDifficulty(ServerboundChangeDifficultyPacket arg0)
method_19475(class_4210 arg0)
onUpdateDifficulty(UpdateDifficultyC2SPacket arg0)
m_7477_(C_5148_ arg0)
public void
a(wa arg0)
handleLockDifficulty(ServerboundLockDifficultyPacket arg0)
method_19476(class_4211 arg0)
onUpdateDifficultyLock(UpdateDifficultyLockC2SPacket arg0)
m_7728_(C_5165_ arg0)
public ServerPlayer
e()
getPlayer()
method_32311()
getPlayer()
m_142253_()