net.minecraft.server.network

public class ServerGamePacketListenerImpl

implements ServerGamePacketListener

aay
net.minecraft.server.network.ServerGamePacketListenerImpl
net.minecraft.class_3244
net.minecraft.server.network.ServerPlayNetworkHandler
net.minecraft.network.play.ServerPlayNetHandler
net.minecraft.server.v1_16_R2.PlayerConnection

Field summary

Modifier and TypeField
private static final org.apache.logging.log4j.Logger
c
LOGGER
field_14121
LOGGER
field_147370_c
public final Connection
a
connection
field_14127
connection
field_147371_a
networkManager
private final MinecraftServer
d
server
field_14148
server
field_147367_d
minecraftServer
public ServerPlayer
b
player
field_14140
player
field_147369_b
player
private int
e
tickCount
field_14118
ticks
field_147368_e
private long
f
keepAliveTime
field_14136
lastKeepAliveTime
field_194402_f
lastKeepAlive
private boolean
g
keepAlivePending
field_14125
waitingForKeepAlive
field_194403_g
awaitingKeepAlive
private long
h
keepAliveChallenge
field_14134
keepAliveId
field_194404_h
private int
i
chatSpamTickCount
field_14116
messageCooldown
field_147374_l
chatThrottle
private int
j
dropSpamTickCount
field_14133
creativeItemDropThreshold
field_147375_m
private final it.unimi.dsi.fastutil.ints.Int2ShortMap
k
expectedAcks
field_14132
transactions
field_147372_n
private double
l
firstGoodX
field_14130
lastTickX
field_184349_l
private double
m
firstGoodY
field_14146
lastTickY
field_184350_m
private double
n
firstGoodZ
field_14128
lastTickZ
field_184351_n
private double
o
lastGoodX
field_14145
updatedX
field_184352_o
private double
p
lastGoodY
field_14126
updatedY
field_184353_p
private double
q
lastGoodZ
field_14144
updatedZ
field_184354_q
private Entity
r
lastVehicle
field_14147
topmostRiddenEntity
field_184355_r
private double
s
vehicleFirstGoodX
field_14143
lastTickRiddenX
field_184356_s
private double
t
vehicleFirstGoodY
field_14124
lastTickRiddenY
field_184357_t
private double
u
vehicleFirstGoodZ
field_14142
lastTickRiddenZ
field_184358_u
private double
v
vehicleLastGoodX
field_14122
updatedRiddenX
field_184359_v
private double
w
vehicleLastGoodY
field_14141
updatedRiddenY
field_184360_w
private double
x
vehicleLastGoodZ
field_14120
updatedRiddenZ
field_184361_x
private Vec3
y
awaitingPositionFromClient
field_14119
requestedTeleportPos
field_184362_y
teleportPos
private int
z
awaitingTeleport
field_14123
requestedTeleportId
field_184363_z
teleportAwait
private int
A
awaitingTeleportTime
field_14139
teleportRequestTick
field_184343_A
private boolean
B
clientIsFloating
field_14131
floating
field_184344_B
private int
C
aboveGroundTickCount
field_14138
floatingTicks
field_147365_f
private boolean
D
clientVehicleIsFloating
field_14129
ridingEntity
field_184345_D
private int
E
aboveGroundVehicleTickCount
field_14137
vehicleFloatingTicks
field_184346_E
private int
F
receivedMovePacketCount
field_14117
movePacketsCount
field_184347_F
receivedMovePackets
private int
G
knownMovePacketCount
field_14135
lastTickMovePacketsCount
field_184348_G
processedMovePackets

Constructor summary

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

Method summary

Modifier and TypeMethod
public void
b()
tick()
method_18784()
tick()
func_73660_a()
tick()
public void
c()
resetPosition()
method_14372()
syncWithPlayerPosition()
func_184342_d()
syncPosition()
public Connection
a()
getConnection()
method_2872()
getConnection()
func_147298_b()
private boolean
d()
isSingleplayerOwner()
method_19507()
isHost()
func_217264_d()
isExemptPlayer()
public void
b(nr arg0)
disconnect(Component arg0)
method_14367(class_2561 arg0)
disconnect(Text reason)
func_194028_b(ITextComponent arg0)
disconnect(IChatBaseComponent arg0)
public void
a(tb arg0)
handlePlayerInput(ServerboundPlayerInputPacket arg0)
method_12067(class_2851 arg0)
onPlayerInput(PlayerInputC2SPacket arg0)
func_147358_a(CInputPacket arg0)
private static boolean
b(st arg0)
containsInvalidValues(ServerboundMovePlayerPacket arg0)
method_14362(class_2828 arg0)
validatePlayerMove(PlayerMoveC2SPacket packet)
func_183006_b(CPlayerPacket arg0)
private static boolean
b(su arg0)
containsInvalidValues(ServerboundMoveVehiclePacket arg0)
method_14371(class_2833 arg0)
validateVehicleMove(VehicleMoveC2SPacket packet)
func_184341_b(CMoveVehiclePacket arg0)
public void
a(su arg0)
handleMoveVehicle(ServerboundMoveVehiclePacket arg0)
method_12078(class_2833 arg0)
onVehicleMove(VehicleMoveC2SPacket arg0)
func_184338_a(CMoveVehiclePacket arg0)
private boolean
a(apx arg0)
noBlocksAround(Entity arg0)
method_29780(class_1297 arg0)
method_29780(Entity arg0)
func_241162_a_(Entity arg0)
public void
a(sb arg0)
handleAcceptTeleportPacket(ServerboundAcceptTeleportationPacket arg0)
method_12050(class_2793 arg0)
onTeleportConfirm(TeleportConfirmC2SPacket arg0)
func_184339_a(CConfirmTeleportPacket arg0)
public void
a(td arg0)
handleRecipeBookSeenRecipePacket(ServerboundRecipeBookSeenRecipePacket arg0)
method_12047(class_2853 arg0)
onRecipeBookData(RecipeBookDataC2SPacket arg0)
func_191984_a(CMarkRecipeSeenPacket arg0)
public void
a(tc arg0)
handleRecipeBookChangeSettingsPacket(ServerboundRecipeBookChangeSettingsPacket arg0)
method_30303(class_5427 arg0)
onRecipeCategoryOptions(RecipeCategoryOptionsC2SPacket arg0)
func_241831_a(CUpdateRecipeBookStatusPacket arg0)
public void
a(tg arg0)
handleSeenAdvancements(ServerboundSeenAdvancementsPacket arg0)
method_12058(class_2859 arg0)
onAdvancementTab(AdvancementTabC2SPacket arg0)
func_194027_a(CSeenAdvancementsPacket arg0)
public void
a(sh arg0)
handleCustomCommandSuggestions(ServerboundCommandSuggestionPacket arg0)
method_12059(class_2805 arg0)
onRequestCommandCompletions(RequestCommandCompletionsC2SPacket arg0)
func_195518_a(CTabCompletePacket arg0)
public void
a(tk arg0)
handleSetCommandBlock(ServerboundSetCommandBlockPacket arg0)
method_12077(class_2870 arg0)
onUpdateCommandBlock(UpdateCommandBlockC2SPacket arg0)
func_210153_a(CUpdateCommandBlockPacket arg0)
public void
a(tl arg0)
handleSetCommandMinecart(ServerboundSetCommandMinecartPacket arg0)
method_12049(class_2871 arg0)
onUpdateCommandBlockMinecart(UpdateCommandBlockMinecartC2SPacket arg0)
func_210158_a(CUpdateMinecartCommandBlockPacket arg0)
public void
a(sw arg0)
handlePickItem(ServerboundPickItemPacket arg0)
method_12084(class_2838 arg0)
onPickFromInventory(PickFromInventoryC2SPacket arg0)
func_210152_a(CPickItemPacket arg0)
public void
a(te arg0)
handleRenameItem(ServerboundRenameItemPacket arg0)
method_12060(class_2855 arg0)
onRenameItem(RenameItemC2SPacket arg0)
func_210155_a(CRenameItemPacket arg0)
public void
a(ti arg0)
handleSetBeaconPacket(ServerboundSetBeaconPacket arg0)
method_12057(class_2866 arg0)
onUpdateBeacon(UpdateBeaconC2SPacket arg0)
func_210154_a(CUpdateBeaconPacket arg0)
public void
a(to arg0)
handleSetStructureBlock(ServerboundSetStructureBlockPacket arg0)
method_12051(class_2875 arg0)
onStructureBlockUpdate(UpdateStructureBlockC2SPacket arg0)
func_210157_a(CUpdateStructureBlockPacket arg0)
public void
a(tn arg0)
handleSetJigsawBlock(ServerboundSetJigsawBlockPacket arg0)
method_16383(class_3753 arg0)
onJigsawUpdate(UpdateJigsawC2SPacket arg0)
func_217262_a(CUpdateJigsawBlockPacket arg0)
public void
a(sq arg0)
handleJigsawGenerate(ServerboundJigsawGeneratePacket arg0)
method_27273(class_5194 arg0)
onJigsawGenerating(JigsawGeneratingC2SPacket arg0)
func_230549_a_(CJigsawBlockGeneratePacket arg0)
public void
a(th arg0)
handleSelectTrade(ServerboundSelectTradePacket arg0)
method_12080(class_2863 arg0)
onVillagerTradeSelect(SelectVillagerTradeC2SPacket arg0)
func_210159_a(CSelectTradePacket arg0)
public void
a(sn arg0)
handleEditBook(ServerboundEditBookPacket arg0)
method_12053(class_2820 arg0)
onBookUpdate(BookUpdateC2SPacket arg0)
func_210156_a(CEditBookPacket arg0)
public void
a(so arg0)
handleEntityTagQuery(ServerboundEntityTagQuery arg0)
method_12074(class_2822 arg0)
onQueryEntityNbt(QueryEntityNbtC2SPacket arg0)
func_211526_a(CQueryEntityNBTPacket arg0)
public void
a(sc arg0)
handleBlockEntityTagQuery(ServerboundBlockEntityTagQuery arg0)
method_12072(class_2795 arg0)
onQueryBlockNbt(QueryBlockNbtC2SPacket arg0)
func_211525_a(CQueryTileEntityNBTPacket arg0)
public void
a(st arg0)
handleMovePlayer(ServerboundMovePlayerPacket arg0)
method_12063(class_2828 arg0)
onPlayerMove(PlayerMoveC2SPacket arg0)
func_147347_a(CPlayerPacket arg0)
private boolean
a(brw arg0, dcf arg1)
isPlayerCollidingWithAnythingNew(LevelReader arg0, AABB arg1)
method_20630(class_4538 arg0, class_238 arg1)
isPlayerNotCollidingWithBlocks(WorldView arg0, Box arg1)
func_241163_a_(IWorldReader arg0, AxisAlignedBB arg1)
public void
a(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)
func_147364_a(double arg0, double arg1, double arg2, float arg3, float arg4)
public void
a(double arg0, double arg1, double arg2, float arg3, float arg4, Set<qk$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)
teleportRequest(double x, double y, double z, float yaw, float pitch, Set<PlayerPositionLookS2CPacket$Flag> arg5)
func_175089_a(double arg0, double arg1, double arg2, float arg3, float arg4, Set<SPlayerPositionLookPacket$Flags> arg5)
public void
a(sz arg0)
handlePlayerAction(ServerboundPlayerActionPacket arg0)
method_12066(class_2846 arg0)
onPlayerAction(PlayerActionC2SPacket arg0)
func_147345_a(CPlayerDiggingPacket arg0)
private static boolean
a(aah arg0, bly arg1)
wasBlockPlacementAttempt(ServerPlayer arg0, ItemStack arg1)
method_27913(class_3222 arg0, class_1799 arg1)
canPlace(ServerPlayerEntity player, ItemStack stack)
func_241166_a_(ServerPlayerEntity arg0, ItemStack arg1)
public void
a(ts arg0)
handleUseItemOn(ServerboundUseItemOnPacket arg0)
method_12046(class_2885 arg0)
onPlayerInteractBlock(PlayerInteractBlockC2SPacket arg0)
func_184337_a(CPlayerTryUseItemOnBlockPacket arg0)
public void
a(tt arg0)
handleUseItem(ServerboundUseItemPacket arg0)
method_12065(class_2886 arg0)
onPlayerInteractItem(PlayerInteractItemC2SPacket arg0)
func_147346_a(CPlayerTryUseItemPacket arg0)
public void
a(tr arg0)
handleTeleportToEntityPacket(ServerboundTeleportToEntityPacket arg0)
method_12073(class_2884 arg0)
onSpectatorTeleport(SpectatorTeleportC2SPacket arg0)
func_175088_a(CSpectatePacket arg0)
public void
a(tf arg0)
handleResourcePackResponse(ServerboundResourcePackPacket arg0)
method_12081(class_2856 arg0)
onResourcePackStatus(ResourcePackStatusC2SPacket arg0)
func_175086_a(CResourcePackStatusPacket arg0)
public void
a(sv arg0)
handlePaddleBoat(ServerboundPaddleBoatPacket arg0)
method_12064(class_2836 arg0)
onBoatPaddleState(BoatPaddleStateC2SPacket arg0)
func_184340_a(CSteerBoatPacket arg0)
public void
a(nr arg0)
onDisconnect(Component arg0)
method_10839(class_2561 arg0)
onDisconnected(Text arg0)
func_147231_a(ITextComponent arg0)
public void
a(oj<?> arg0)
send(Packet<?> arg0)
method_14364(class_2596<?> arg0)
sendPacket(Packet<?> packet)
func_147359_a(IPacket<?> arg0)
sendPacket(Packet<?> arg0)
public void
a(oj<?> 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)
func_211148_a(IPacket<?> arg0, io.netty.util.concurrent.GenericFutureListener<? extends io.netty.util.concurrent.Future<? super Void>> arg1)
public void
a(tj arg0)
handleSetCarriedItem(ServerboundSetCarriedItemPacket arg0)
method_12056(class_2868 arg0)
onUpdateSelectedSlot(UpdateSelectedSlotC2SPacket arg0)
func_147355_a(CHeldItemChangePacket arg0)
public void
a(se arg0)
handleChat(ServerboundChatPacket arg0)
method_12048(class_2797 arg0)
onGameMessage(ChatMessageC2SPacket arg0)
func_147354_a(CChatMessagePacket arg0)
private void
c(String arg0)
handleCommand(String arg0)
method_14370(String arg0)
executeCommand(String input)
func_147361_d(String arg0)
handleCommand(String arg0)
public void
a(tq arg0)
handleAnimate(ServerboundSwingPacket arg0)
method_12052(class_2879 arg0)
onHandSwing(HandSwingC2SPacket arg0)
func_175087_a(CAnimateHandPacket arg0)
public void
a(ta arg0)
handlePlayerCommand(ServerboundPlayerCommandPacket arg0)
method_12045(class_2848 arg0)
onClientCommand(ClientCommandC2SPacket arg0)
func_147357_a(CEntityActionPacket arg0)
public void
a(sp arg0)
handleInteract(ServerboundInteractPacket arg0)
method_12062(class_2824 arg0)
onPlayerInteractEntity(PlayerInteractEntityC2SPacket arg0)
func_147340_a(CUseEntityPacket arg0)
public void
a(sf arg0)
handleClientCommand(ServerboundClientCommandPacket arg0)
method_12068(class_2799 arg0)
onClientStatus(ClientStatusC2SPacket arg0)
func_147342_a(CClientStatusPacket arg0)
public void
a(sl arg0)
handleContainerClose(ServerboundContainerClosePacket arg0)
method_12054(class_2815 arg0)
onGuiClose(GuiCloseC2SPacket arg0)
func_147356_a(CCloseWindowPacket arg0)
public void
a(sk arg0)
handleContainerClick(ServerboundContainerClickPacket arg0)
method_12076(class_2813 arg0)
onClickWindow(ClickWindowC2SPacket arg0)
func_147351_a(CClickWindowPacket arg0)
public void
a(sx arg0)
handlePlaceRecipe(ServerboundPlaceRecipePacket arg0)
method_12061(class_2840 arg0)
onCraftRequest(CraftRequestC2SPacket arg0)
func_194308_a(CPlaceRecipePacket arg0)
public void
a(sj arg0)
handleContainerButtonClick(ServerboundContainerButtonClickPacket arg0)
method_12055(class_2811 arg0)
onButtonClick(ButtonClickC2SPacket arg0)
func_147338_a(CEnchantItemPacket arg0)
public void
a(tm arg0)
handleSetCreativeModeSlot(ServerboundSetCreativeModeSlotPacket arg0)
method_12070(class_2873 arg0)
onCreativeInventoryAction(CreativeInventoryActionC2SPacket arg0)
func_147344_a(CCreativeInventoryActionPacket arg0)
public void
a(si arg0)
handleContainerAck(ServerboundContainerAckPacket arg0)
method_12079(class_2809 arg0)
onConfirmTransaction(ConfirmGuiActionC2SPacket arg0)
func_147339_a(CConfirmTransactionPacket arg0)
public void
a(tp arg0)
handleSignUpdate(ServerboundSignUpdatePacket arg0)
method_12071(class_2877 arg0)
onSignUpdate(UpdateSignC2SPacket arg0)
func_147343_a(CUpdateSignPacket arg0)
public void
a(sr arg0)
handleKeepAlive(ServerboundKeepAlivePacket arg0)
method_12082(class_2827 arg0)
onKeepAlive(KeepAliveC2SPacket arg0)
func_147353_a(CKeepAlivePacket arg0)
public void
a(sy arg0)
handlePlayerAbilities(ServerboundPlayerAbilitiesPacket arg0)
method_12083(class_2842 arg0)
onPlayerAbilities(UpdatePlayerAbilitiesC2SPacket arg0)
func_147348_a(CPlayerAbilitiesPacket arg0)
public void
a(sg arg0)
handleClientInformation(ServerboundClientInformationPacket arg0)
method_12069(class_2803 arg0)
onClientSettings(ClientSettingsC2SPacket arg0)
func_147352_a(CClientSettingsPacket arg0)
public void
a(sm arg0)
handleCustomPayload(ServerboundCustomPayloadPacket arg0)
method_12075(class_2817 arg0)
onCustomPayload(CustomPayloadC2SPacket arg0)
func_147349_a(CCustomPayloadPacket arg0)
public void
a(sd arg0)
handleChangeDifficulty(ServerboundChangeDifficultyPacket arg0)
method_19475(class_4210 arg0)
onUpdateDifficulty(UpdateDifficultyC2SPacket arg0)
func_217263_a(CSetDifficultyPacket arg0)
public void
a(ss arg0)
handleLockDifficulty(ServerboundLockDifficultyPacket arg0)
method_19476(class_4211 arg0)
onUpdateDifficultyLock(UpdateDifficultyLockC2SPacket arg0)
func_217261_a(CLockDifficultyPacket arg0)