Package net.minecraft.client.multiplayer
Class ClientPacketListener
java.lang.Object
net.minecraft.client.multiplayer.ClientCommonPacketListenerImpl
net.minecraft.client.multiplayer.ClientPacketListener
- All Implemented Interfaces:
 ClientboundPacketListener,PacketListener,ClientCommonPacketListener,ClientCookiePacketListener,ClientGamePacketListener,ClientPongPacketListener,TickablePacketListener,IClientCommonPacketListenerExtension,ICommonPacketListener
public class ClientPacketListener
extends ClientCommonPacketListenerImpl
implements ClientGamePacketListener, TickablePacketListener
- 
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static enumNested classes/interfaces inherited from class net.minecraft.client.multiplayer.ClientCommonPacketListenerImpl
ClientCommonPacketListenerImpl.CommonDialogAccess, ClientCommonPacketListenerImpl.DeferredPacket, ClientCommonPacketListenerImpl.PackConfirmScreen - 
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ClientAdvancementsprivate static final Componentprivate static final Componentprivate static final Componentprivate final List<WeakReference<CacheSlot<?, ?>>> private LocalChatSessionprivate final ChunkBatchSizeCalculatorprivate booleanprivate static final ClientboundCommandsPacket.NodeBuilder<ClientSuggestionProvider> private static final Componentcom.mojang.brigadier.CommandDispatcher<ClientSuggestionProvider> private ConnectionTypeprivate final DebugQueryHandlerprivate final ClientDebugSubscriberprivate final HashedPatchMap.HashGeneratorprivate final FeatureFlagSetprivate FuelValuesprivate final UUIDprivate static final Componentprivate CompletableFuture<Optional<ProfileKeyPair>> private LastSeenMessagesTrackerprivate ClientLevelReference to the current ClientWorld instance, which many handler methods operate onprivate ClientLevel.ClientLevelDataprivate LevelLoadTrackerprivate Set<ResourceKey<Level>> private final Set<PlayerInfo> private final com.mojang.authlib.GameProfileprivate static final org.slf4j.Loggerprivate MessageSignatureCacheprivate intprivate static final intprivate final PingDebugMonitorprivate final Map<UUID, PlayerInfo> A mapping from player names to their respective GuiPlayerInfo (specifies the clients response time to the server)private final PotionBrewingprivate final RandomSourceJust an ordinary random number generator, used to randomize audio pitch of item/orb pickup and randomize both particlespawn offset and velocityprivate ClientRecipeContainerprivate static final Componentprivate final RegistryAccess.Frozenprivate ClientInformationprivate OptionalIntprivate final ClientSuggestionProviderprivate final Scoreboardprivate final SessionSearchTreesprivate intprivate booleanprivate intprivate SignedMessageChain.Encoderprivate final ClientSuggestionProviderstatic final intprivate static final Componentprivate static final Componentprivate final ClientWaypointManagerFields inherited from class net.minecraft.client.multiplayer.ClientCommonPacketListenerImpl
connection, customReportDetails, isTransferring, minecraft, postDisconnectScreen, seenInsecureChatWarning, seenPlayers, serverBrand, serverCookies, serverData, telemetryManager - 
Constructor Summary
ConstructorsConstructorDescriptionClientPacketListener(Minecraft p_253924_, Connection p_253614_, CommonListenerCookie p_295121_)  - 
Method Summary
Modifier and TypeMethodDescriptionprivate voidapplyLightData(int pX, int pZ, ClientboundLightUpdatePacketData pData, boolean pUpdate) private voidapplyPlayerInfoUpdate(ClientboundPlayerInfoUpdatePacket.Action pAction, ClientboundPlayerInfoUpdatePacket.Entry pEntry, PlayerInfo pPlayerInfo) voidbroadcastClientInformation(ClientInformation pInformation) private voidvoidvoidclose()protected DialogConnectionAccessprivate Entityprivate LevelLoadingScreen.ReasondetermineLevelLoadingReason(boolean pFromDeath, ResourceKey<Level> pSpawnDimension, ResourceKey<Level> pPlayerDimension) private voidenableChunkLight(LevelChunk pChunk, int pX, int pZ) private booleanprivate static ItemStackcom.mojang.brigadier.CommandDispatcher<ClientSuggestionProvider> Returns the connection this listener is attached to.Returns the connection type of this packet listener.getId()getLevel()com.mojang.authlib.GameProfilegetPlayerInfo(String pName) Gets the client's description information about another player on the server.getPlayerInfo(UUID pUuid) getPlayerInfoIgnoreCase(String pPlayerName) voidSpawns an instance of the objecttype indicated by the packet and sets its position and momentumvoidMay create a scoreboard objective, remove an objective from the scoreboard or update an objectives' displaynamevoidhandleAnimate(ClientboundAnimatePacket pPacket) Renders a specified animation: Waking up a player, a living entity swinging its currently held item, being hurt or receiving a critical hit by normal or magical meansvoidUpdates the players statistics or achievementsvoidvoidUpdates all registered IWorldAccess instances with destroyBlockInWorldPartiallyvoidUpdates the NBTTagCompound metadata of instances of the following entitytypes: Mob spawners, command blocks, beacons, skulls, flowerpotvoidTriggers Block.onBlockEventReceived, which is implemented in BlockPistonBase for extension/retraction, BlockNote for setting the instrument (including audiovisual feedback) and in BlockContainer to set the number of players accessing a (Ender)ChestvoidUpdates the block and metadata and generates a blockupdate (and notify the clients)voidvoidhandleBundlePacket(ClientboundBundlePacket p_265195_) voidvoidvoidvoidReceived from the servers PlayerManager if between 1 and 64 blocks in a chunk are changed.voidhandleChunksBiomes(ClientboundChunksBiomesPacket p_275437_) voidhandleCommands(ClientboundCommandsPacket pPacket) voidThis method is only called for manual tab-completion (theminecraft:ask_serversuggestion provider).voidvoidResets the ItemStack held in hand and closes the window that is openedvoidHandles the placement of a specified ItemStack in a specified container/inventory slotvoidSets the progressbar of the opened window to the specified valuevoidHandles picking up an ItemStack or dropping one in your inventory or an open (non-creative) containervoidvoidhandleCustomPayload(CustomPacketPayload p_295851_) voidhandleDamageEvent(ClientboundDamageEventPacket p_270800_) voidvoidvoidvoidhandleDebugEvent(ClientboundDebugEventPacket p_449397_) voidhandleDebugSample(ClientboundDebugSamplePacket p_324125_) voidhandleDeleteChat(ClientboundDeleteChatPacket p_241325_) voidvoidInvokes the entities' handleUpdateHealth method which is implemented in LivingBase (hurt/death), MinecartMobSpawner (spawn delay), FireworkRocket invalid input: '&' MinecartTNT (explosion), IronGolem (throwing, ...), Witch (spawn particles), Zombie (villager transformation), Animal (breeding mode particles), Horse (breeding/smoke particles), Sheep (...), Tameable (...), Villager (particles for breeding mode, angry and happy), Wolf (...)voidvoidvoidhandleExplosion(ClientboundExplodePacket pPacket) Initiates a new explosion (sound, particles, drop spawn) for the affected blocks indicated by the packet.voidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidhandleLogin(ClientboundLoginPacket pPacket) Registers some server properties (gametype, hardcore-mode, terraintype, difficulty, player limit), creates a new WorldClient and sets the player initial dimension.voidvoidUpdates the worlds MapStorage with the specified MapData for the specified map-identifier and invokes a MapItemRenderer for itvoidvoidvoidUpdates the specified entity's position by the specified relative momentum and absolute rotation.voidvoidvoidhandleOpenBook(ClientboundOpenBookPacket pPacket) voidvoidCreates a sign in the specified location if it didn't exist and opens the GUI to edit its textvoidSpawns a specified number of particles at the specified location with a randomized displacement according to specified boundsvoidvoidvoidhandlePlayerChat(ClientboundPlayerChatPacket p_233702_) voidvoidvoidvoidvoidvoidhandlePongResponse(ClientboundPongResponsePacket p_320651_) voidvoidvoidvoidvoidvoidvoidhandleResetScore(ClientboundResetScorePacket p_313768_) voidhandleRespawn(ClientboundRespawnPacket pPacket) voidUpdates the direction in which the specified entity is looking, normally this head rotation is independent of the rotation of the entity itselfvoidvoidvoidhandleServerData(ClientboundServerDataPacket p_233704_) voidvoidvoidvoidvoidvoidvoidvoidvoidvoidRemoves or sets the ScoreObjective to be displayed at a particular scoreboard position (list, sidebar, below name)voidInvoked when the server registers new proximate objects in your watchlist or when objects in your watchlist have changed -> Registers any changes locallyvoidSets the velocity of the specified entity to the specified valuevoidvoidvoidvoidvoidhandleSetHeldSlot(ClientboundSetHeldSlotPacket p_364031_) voidvoidUpdates a team managed by the scoreboard: Create/Remove the team registration, Register/Remove the player-team-memberships, Set team displayname/prefix/suffix and/or whether friendly fire is enabledvoidhandleSetScore(ClientboundSetScorePacket pPacket) Either updates the score with a specified value or removes the score for an objectivevoidvoidvoidhandleSetTime(ClientboundSetTimePacket pPacket) voidvoidhandleSoundEvent(ClientboundSoundPacket pPacket) voidvoidhandleSystemChat(ClientboundSystemChatPacket p_233708_) voidvoidvoidvoidUpdates an entity's position and rotation as specified by the packetvoidvoidhandleTickingState(ClientboundTickingStatePacket p_309203_) voidhandleTickingStep(ClientboundTickingStepPacket p_308901_) voidhandleTitlesClear(ClientboundClearTitlesPacket p_171765_) private voidvoidvoidUpdates en entity's attributes and their respective modifiers, which are used for speed bonuses (player sprinting, animals fleeing, baby speed), weapon/tool attackDamage, hostiles followRange randomization, zombie maxHealth and knockback resistance as well as reinforcement spawning chance.voidvoidvoidhandleUpdateTags(ClientboundUpdateTagsPacket p_294888_) voidhandleWaypoint(ClientboundTrackedWaypointPacket p_416702_) private voidinitializeChatSession(ClientboundPlayerInfoUpdatePacket.Entry pEntry, PlayerInfo pPlayerInfo) booleanbooleanisFeatureEnabled(FeatureFlagSet pEnabledFeatures) private static booleanisValidCommand(com.mojang.brigadier.ParseResults<?> pParseResults) levels()voidmarkMessageAsProcessed(MessageSignature pSignature, boolean pAcknowledged) private voidprivate voidopenCommandSendConfirmationWindow(String pCommand, String pTitleKey, Screen pPreviousScreen) private voidopenSendConfirmationWindow(String pCommand, String pTitleKey, Component pButtonText, Runnable pOnConfirm) private voidopenSignedCommandSendConfirmationWindow(String pCommand, String pTitleKey, Screen pPreviousScreen) private voidpostAddEntitySoundInstance(Entity pEntity) voidprivate voidprivate voidreadSectionList(int pX, int pZ, LevelLightEngine pLightEngine, LightLayer pLightLayer, BitSet pSkyYMask, BitSet pEmptySkyYMask, Iterator<byte[]> pSkyUpdates, boolean pUpdate) recipes()private voidrefreshRecipeBook(ClientRecipeBook pRecipeBook) voidregisterForCleaning(CacheSlot<?, ?> pCacheSlot) voidprivate voidvoidsendCommand(String pCommand) voidsendUnattendedCommand(String pCommand, Screen pPreviousScreen) voidprivate voidsetKeyPair(ProfileKeyPair pKeyPair) voidsetSubtitleText(ClientboundSetSubtitleTextPacket p_171791_) voidvoidsetTitleText(ClientboundSetTitleTextPacket p_171793_) private static booleansetValuesFromPositionPacket(PositionMoveRotation pPositionMoveRotation, Set<Relative> pRelatives, Entity pEntity, boolean pLerp) private voidstartWaitingForNewLevel(LocalPlayer pPlayer, ClientLevel pLevel, LevelLoadingScreen.Reason pReason) Deprecated.private voidstartWaitingForNewLevel(LocalPlayer pPlayer, ClientLevel pLevel, LevelLoadingScreen.Reason pReason, ResourceKey<Level> toDimension, ResourceKey<Level> fromDimension) voidtick()private voidupdateLevelChunk(int pX, int pZ, ClientboundLevelChunkPacketData pData) voidprivate <T> Registry.PendingTags<T> updateTags(ResourceKey<? extends Registry<? extends T>> pRegistryKey, TagNetworkSerialization.NetworkPayload pPayload) verifyCommand(String pCommand) Methods inherited from class net.minecraft.client.multiplayer.ClientCommonPacketListenerImpl
clearDialog, createDisconnectionInfo, createDisconnectScreen, fillListenerSpecificCrashDetails, getPacketProcessor, handleClearDialog, handleCustomPayload, handleCustomReportDetails, handleDisconnect, handleKeepAlive, handlePing, handleRequestCookie, handleResourcePackPop, handleResourcePackPush, handleServerLinks, handleShowDialog, handleStoreCookie, handleTransfer, onDisconnect, onPacketError, preparePackPrompt, send, sendDeferredPackets, serverBrand, serverLinks, shouldHandleMessage, showDialog, showDialogMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.network.ClientboundPacketListener
flowMethods inherited from interface net.minecraft.network.protocol.common.ClientCommonPacketListener
handleClearDialog, handleCustomPayload, handleCustomReportDetails, handleDisconnect, handleKeepAlive, handlePing, handleResourcePackPop, handleResourcePackPush, handleServerLinks, handleShowDialog, handleStoreCookie, handleTransferMethods inherited from interface net.minecraft.network.protocol.cookie.ClientCookiePacketListener
handleRequestCookieMethods inherited from interface net.minecraft.network.protocol.game.ClientGamePacketListener
protocolMethods inherited from interface net.neoforged.neoforge.common.extensions.IClientCommonPacketListenerExtension
disconnect, sendMethods inherited from interface net.neoforged.neoforge.common.extensions.ICommonPacketListener
getPacketProcessor, hasChannel, hasChannel, hasChannel, sendMethods inherited from interface net.minecraft.network.PacketListener
createDisconnectionInfo, fillCrashReport, fillListenerSpecificCrashDetails, onDisconnect, onPacketError, shouldHandleMessage 
- 
Field Details
- 
LOGGER
private static final org.slf4j.Logger LOGGER - 
UNSECURE_SERVER_TOAST_TITLE
 - 
UNSERURE_SERVER_TOAST
 - 
INVALID_PACKET
 - 
RECONFIGURE_SCREEN_MESSAGE
 - 
BAD_CHAT_INDEX
 - 
COMMAND_SEND_CONFIRM_TITLE
 - 
BUTTON_RUN_COMMAND
 - 
BUTTON_SUGGEST_COMMAND
 - 
PENDING_OFFSET_THRESHOLD
private static final int PENDING_OFFSET_THRESHOLD- See Also:
 
 - 
TELEPORT_INTERPOLATION_THRESHOLD
public static final int TELEPORT_INTERPOLATION_THRESHOLD- See Also:
 
 - 
COMMAND_NODE_BUILDER
private static final ClientboundCommandsPacket.NodeBuilder<ClientSuggestionProvider> COMMAND_NODE_BUILDER - 
localGameProfile
private final com.mojang.authlib.GameProfile localGameProfile - 
level
Reference to the current ClientWorld instance, which many handler methods operate on - 
levelData
 - 
playerInfoMap
A mapping from player names to their respective GuiPlayerInfo (specifies the clients response time to the server) - 
listedPlayers
 - 
advancements
 - 
suggestionsProvider
 - 
restrictedSuggestionsProvider
 - 
debugQueryHandler
 - 
serverChunkRadius
private int serverChunkRadius - 
serverSimulationDistance
private int serverSimulationDistance - 
random
Just an ordinary random number generator, used to randomize audio pitch of item/orb pickup and randomize both particlespawn offset and velocity - 
commands
 - 
recipes
 - 
id
 - 
levels
 - 
registryAccess
 - 
enabledFeatures
 - 
potionBrewing
 - 
fuelValues
 - 
decoratedHashOpsGenerator
 - 
removedPlayerVehicleId
 - 
chatSession
 - 
signedMessageEncoder
 - 
nextChatIndex
private int nextChatIndex - 
lastSeenMessages
 - 
messageSignatureCache
 - 
keyPairFuture
 - 
remoteClientInformation
 - 
chunkBatchSizeCalculator
 - 
pingDebugMonitor
 - 
debugSubscriber
 - 
connectionType
 - 
levelLoadTracker
 - 
serverEnforcesSecureChat
private boolean serverEnforcesSecureChat - 
closed
private volatile boolean closed - 
scoreboard
 - 
waypointManager
 - 
searchTrees
 - 
cacheSlots
 
 - 
 - 
Constructor Details
- 
ClientPacketListener
public ClientPacketListener(Minecraft p_253924_, Connection p_253614_, CommonListenerCookie p_295121_)  
 - 
 - 
Method Details
- 
getSuggestionsProvider
 - 
close
public void close() - 
clearLevel
public void clearLevel() - 
clearCacheSlots
private void clearCacheSlots() - 
recipes
 - 
handleLogin
Registers some server properties (gametype, hardcore-mode, terraintype, difficulty, player limit), creates a new WorldClient and sets the player initial dimension.- Specified by:
 handleLoginin interfaceClientGamePacketListener
 - 
handleAddEntity
Spawns an instance of the objecttype indicated by the packet and sets its position and momentum- Specified by:
 handleAddEntityin interfaceClientGamePacketListener
 - 
createEntityFromPacket
 - 
postAddEntitySoundInstance
 - 
handleSetEntityMotion
Sets the velocity of the specified entity to the specified value- Specified by:
 handleSetEntityMotionin interfaceClientGamePacketListener
 - 
handleSetEntityData
Invoked when the server registers new proximate objects in your watchlist or when objects in your watchlist have changed -> Registers any changes locally- Specified by:
 handleSetEntityDatain interfaceClientGamePacketListener
 - 
handleEntityPositionSync
- Specified by:
 handleEntityPositionSyncin interfaceClientGamePacketListener
 - 
handleTeleportEntity
Updates an entity's position and rotation as specified by the packet- Specified by:
 handleTeleportEntityin interfaceClientGamePacketListener
 - 
handleTickingState
- Specified by:
 handleTickingStatein interfaceClientGamePacketListener
 - 
handleTickingStep
- Specified by:
 handleTickingStepin interfaceClientGamePacketListener
 - 
handleSetHeldSlot
- Specified by:
 handleSetHeldSlotin interfaceClientGamePacketListener
 - 
handleMoveEntity
Updates the specified entity's position by the specified relative momentum and absolute rotation. Note that subclassing of the packet allows for the specification of a subset of this data (e.g. only rel. position, abs. rotation or both).- Specified by:
 handleMoveEntityin interfaceClientGamePacketListener
 - 
handleMinecartAlongTrack
- Specified by:
 handleMinecartAlongTrackin interfaceClientGamePacketListener
 - 
handleRotateMob
Updates the direction in which the specified entity is looking, normally this head rotation is independent of the rotation of the entity itself- Specified by:
 handleRotateMobin interfaceClientGamePacketListener
 - 
handleRemoveEntities
- Specified by:
 handleRemoveEntitiesin interfaceClientGamePacketListener
 - 
handleMovePlayer
- Specified by:
 handleMovePlayerin interfaceClientGamePacketListener
 - 
setValuesFromPositionPacket
private static boolean setValuesFromPositionPacket(PositionMoveRotation pPositionMoveRotation, Set<Relative> pRelatives, Entity pEntity, boolean pLerp)  - 
handleRotatePlayer
- Specified by:
 handleRotatePlayerin interfaceClientGamePacketListener
 - 
handleChunkBlocksUpdate
Received from the servers PlayerManager if between 1 and 64 blocks in a chunk are changed. If only one block requires an update, the server sends S23PacketBlockChange and if 64 or more blocks are changed, the server sends S21PacketChunkData- Specified by:
 handleChunkBlocksUpdatein interfaceClientGamePacketListener
 - 
handleLevelChunkWithLight
- Specified by:
 handleLevelChunkWithLightin interfaceClientGamePacketListener
 - 
handleChunksBiomes
- Specified by:
 handleChunksBiomesin interfaceClientGamePacketListener
 - 
updateLevelChunk
 - 
enableChunkLight
 - 
handleForgetLevelChunk
- Specified by:
 handleForgetLevelChunkin interfaceClientGamePacketListener
 - 
queueLightRemoval
 - 
handleBlockUpdate
Updates the block and metadata and generates a blockupdate (and notify the clients)- Specified by:
 handleBlockUpdatein interfaceClientGamePacketListener
 - 
handleConfigurationStart
- Specified by:
 handleConfigurationStartin interfaceClientGamePacketListener
 - 
handleTakeItemEntity
- Specified by:
 handleTakeItemEntityin interfaceClientGamePacketListener
 - 
handleSystemChat
- Specified by:
 handleSystemChatin interfaceClientGamePacketListener
 - 
handlePlayerChat
- Specified by:
 handlePlayerChatin interfaceClientGamePacketListener
 - 
handleDisguisedChat
- Specified by:
 handleDisguisedChatin interfaceClientGamePacketListener
 - 
handleDeleteChat
- Specified by:
 handleDeleteChatin interfaceClientGamePacketListener
 - 
handleAnimate
Renders a specified animation: Waking up a player, a living entity swinging its currently held item, being hurt or receiving a critical hit by normal or magical means- Specified by:
 handleAnimatein interfaceClientGamePacketListener
 - 
handleHurtAnimation
- Specified by:
 handleHurtAnimationin interfaceClientGamePacketListener
 - 
handleSetTime
- Specified by:
 handleSetTimein interfaceClientGamePacketListener
 - 
handleSetSpawn
- Specified by:
 handleSetSpawnin interfaceClientGamePacketListener
 - 
handleSetEntityPassengersPacket
- Specified by:
 handleSetEntityPassengersPacketin interfaceClientGamePacketListener
 - 
handleEntityLinkPacket
- Specified by:
 handleEntityLinkPacketin interfaceClientGamePacketListener
 - 
findTotem
 - 
handleEntityEvent
Invokes the entities' handleUpdateHealth method which is implemented in LivingBase (hurt/death), MinecartMobSpawner (spawn delay), FireworkRocket invalid input: '&' MinecartTNT (explosion), IronGolem (throwing, ...), Witch (spawn particles), Zombie (villager transformation), Animal (breeding mode particles), Horse (breeding/smoke particles), Sheep (...), Tameable (...), Villager (particles for breeding mode, angry and happy), Wolf (...)- Specified by:
 handleEntityEventin interfaceClientGamePacketListener
 - 
handleDamageEvent
- Specified by:
 handleDamageEventin interfaceClientGamePacketListener
 - 
handleSetHealth
- Specified by:
 handleSetHealthin interfaceClientGamePacketListener
 - 
handleSetExperience
- Specified by:
 handleSetExperiencein interfaceClientGamePacketListener
 - 
handleRespawn
- Specified by:
 handleRespawnin interfaceClientGamePacketListener
 - 
determineLevelLoadingReason
private LevelLoadingScreen.Reason determineLevelLoadingReason(boolean pFromDeath, ResourceKey<Level> pSpawnDimension, ResourceKey<Level> pPlayerDimension)  - 
handleExplosion
Initiates a new explosion (sound, particles, drop spawn) for the affected blocks indicated by the packet.- Specified by:
 handleExplosionin interfaceClientGamePacketListener
 - 
handleHorseScreenOpen
- Specified by:
 handleHorseScreenOpenin interfaceClientGamePacketListener
 - 
handleOpenScreen
- Specified by:
 handleOpenScreenin interfaceClientGamePacketListener
 - 
handleContainerSetSlot
Handles picking up an ItemStack or dropping one in your inventory or an open (non-creative) container- Specified by:
 handleContainerSetSlotin interfaceClientGamePacketListener
 - 
handleSetCursorItem
- Specified by:
 handleSetCursorItemin interfaceClientGamePacketListener
 - 
handleSetPlayerInventory
- Specified by:
 handleSetPlayerInventoryin interfaceClientGamePacketListener
 - 
handleContainerContent
Handles the placement of a specified ItemStack in a specified container/inventory slot- Specified by:
 handleContainerContentin interfaceClientGamePacketListener
 - 
handleOpenSignEditor
Creates a sign in the specified location if it didn't exist and opens the GUI to edit its text- Specified by:
 handleOpenSignEditorin interfaceClientGamePacketListener
 - 
handleBlockEntityData
Updates the NBTTagCompound metadata of instances of the following entitytypes: Mob spawners, command blocks, beacons, skulls, flowerpot- Specified by:
 handleBlockEntityDatain interfaceClientGamePacketListener
 - 
handleContainerSetData
Sets the progressbar of the opened window to the specified value- Specified by:
 handleContainerSetDatain interfaceClientGamePacketListener
 - 
handleSetEquipment
- Specified by:
 handleSetEquipmentin interfaceClientGamePacketListener
 - 
handleContainerClose
Resets the ItemStack held in hand and closes the window that is opened- Specified by:
 handleContainerClosein interfaceClientGamePacketListener
 - 
handleBlockEvent
Triggers Block.onBlockEventReceived, which is implemented in BlockPistonBase for extension/retraction, BlockNote for setting the instrument (including audiovisual feedback) and in BlockContainer to set the number of players accessing a (Ender)Chest- Specified by:
 handleBlockEventin interfaceClientGamePacketListener
 - 
handleBlockDestruction
Updates all registered IWorldAccess instances with destroyBlockInWorldPartially- Specified by:
 handleBlockDestructionin interfaceClientGamePacketListener
 - 
handleGameEvent
- Specified by:
 handleGameEventin interfaceClientGamePacketListener
 - 
startWaitingForNewLevel
@Deprecated private void startWaitingForNewLevel(LocalPlayer pPlayer, ClientLevel pLevel, LevelLoadingScreen.Reason pReason) Deprecated. - 
startWaitingForNewLevel
private void startWaitingForNewLevel(LocalPlayer pPlayer, ClientLevel pLevel, LevelLoadingScreen.Reason pReason, @Nullable ResourceKey<Level> toDimension, @Nullable ResourceKey<Level> fromDimension)  - 
handleMapItemData
Updates the worlds MapStorage with the specified MapData for the specified map-identifier and invokes a MapItemRenderer for it- Specified by:
 handleMapItemDatain interfaceClientGamePacketListener
 - 
handleLevelEvent
- Specified by:
 handleLevelEventin interfaceClientGamePacketListener
 - 
handleUpdateAdvancementsPacket
- Specified by:
 handleUpdateAdvancementsPacketin interfaceClientGamePacketListener
 - 
handleSelectAdvancementsTab
- Specified by:
 handleSelectAdvancementsTabin interfaceClientGamePacketListener
 - 
handleCommands
- Specified by:
 handleCommandsin interfaceClientGamePacketListener
 - 
handleStopSoundEvent
- Specified by:
 handleStopSoundEventin interfaceClientGamePacketListener
 - 
handleCommandSuggestions
This method is only called for manual tab-completion (theminecraft:ask_serversuggestion provider).- Specified by:
 handleCommandSuggestionsin interfaceClientGamePacketListener
 - 
handleUpdateRecipes
- Specified by:
 handleUpdateRecipesin interfaceClientGamePacketListener
 - 
handleLookAt
- Specified by:
 handleLookAtin interfaceClientGamePacketListener
 - 
handleTagQueryPacket
- Specified by:
 handleTagQueryPacketin interfaceClientGamePacketListener
 - 
handleAwardStats
Updates the players statistics or achievements- Specified by:
 handleAwardStatsin interfaceClientGamePacketListener
 - 
handleRecipeBookAdd
- Specified by:
 handleRecipeBookAddin interfaceClientGamePacketListener
 - 
handleRecipeBookRemove
- Specified by:
 handleRecipeBookRemovein interfaceClientGamePacketListener
 - 
handleRecipeBookSettings
- Specified by:
 handleRecipeBookSettingsin interfaceClientGamePacketListener
 - 
refreshRecipeBook
 - 
handleUpdateMobEffect
- Specified by:
 handleUpdateMobEffectin interfaceClientGamePacketListener
 - 
updateTags
private <T> Registry.PendingTags<T> updateTags(ResourceKey<? extends Registry<? extends T>> pRegistryKey, TagNetworkSerialization.NetworkPayload pPayload)  - 
handleUpdateTags
- Specified by:
 handleUpdateTagsin interfaceClientCommonPacketListener
 - 
handlePlayerCombatEnd
- Specified by:
 handlePlayerCombatEndin interfaceClientGamePacketListener
 - 
handlePlayerCombatEnter
- Specified by:
 handlePlayerCombatEnterin interfaceClientGamePacketListener
 - 
handlePlayerCombatKill
- Specified by:
 handlePlayerCombatKillin interfaceClientGamePacketListener
 - 
handleChangeDifficulty
- Specified by:
 handleChangeDifficultyin interfaceClientGamePacketListener
 - 
handleSetCamera
- Specified by:
 handleSetCamerain interfaceClientGamePacketListener
 - 
handleInitializeBorder
- Specified by:
 handleInitializeBorderin interfaceClientGamePacketListener
 - 
handleSetBorderCenter
- Specified by:
 handleSetBorderCenterin interfaceClientGamePacketListener
 - 
handleSetBorderLerpSize
- Specified by:
 handleSetBorderLerpSizein interfaceClientGamePacketListener
 - 
handleSetBorderSize
- Specified by:
 handleSetBorderSizein interfaceClientGamePacketListener
 - 
handleSetBorderWarningDistance
- Specified by:
 handleSetBorderWarningDistancein interfaceClientGamePacketListener
 - 
handleSetBorderWarningDelay
- Specified by:
 handleSetBorderWarningDelayin interfaceClientGamePacketListener
 - 
handleTitlesClear
- Specified by:
 handleTitlesClearin interfaceClientGamePacketListener
 - 
handleServerData
- Specified by:
 handleServerDatain interfaceClientGamePacketListener
 - 
handleCustomChatCompletions
- Specified by:
 handleCustomChatCompletionsin interfaceClientGamePacketListener
 - 
setActionBarText
- Specified by:
 setActionBarTextin interfaceClientGamePacketListener
 - 
setTitleText
- Specified by:
 setTitleTextin interfaceClientGamePacketListener
 - 
setSubtitleText
- Specified by:
 setSubtitleTextin interfaceClientGamePacketListener
 - 
setTitlesAnimation
- Specified by:
 setTitlesAnimationin interfaceClientGamePacketListener
 - 
handleTabListCustomisation
- Specified by:
 handleTabListCustomisationin interfaceClientGamePacketListener
 - 
handleRemoveMobEffect
- Specified by:
 handleRemoveMobEffectin interfaceClientGamePacketListener
 - 
handlePlayerInfoRemove
- Specified by:
 handlePlayerInfoRemovein interfaceClientGamePacketListener
 - 
handlePlayerInfoUpdate
- Specified by:
 handlePlayerInfoUpdatein interfaceClientGamePacketListener
 - 
applyPlayerInfoUpdate
private void applyPlayerInfoUpdate(ClientboundPlayerInfoUpdatePacket.Action pAction, ClientboundPlayerInfoUpdatePacket.Entry pEntry, PlayerInfo pPlayerInfo)  - 
initializeChatSession
private void initializeChatSession(ClientboundPlayerInfoUpdatePacket.Entry pEntry, PlayerInfo pPlayerInfo)  - 
enforcesSecureChat
private boolean enforcesSecureChat() - 
handlePlayerAbilities
- Specified by:
 handlePlayerAbilitiesin interfaceClientGamePacketListener
 - 
handleSoundEvent
- Specified by:
 handleSoundEventin interfaceClientGamePacketListener
 - 
handleSoundEntityEvent
- Specified by:
 handleSoundEntityEventin interfaceClientGamePacketListener
 - 
handleBossUpdate
- Specified by:
 handleBossUpdatein interfaceClientGamePacketListener
 - 
handleItemCooldown
- Specified by:
 handleItemCooldownin interfaceClientGamePacketListener
 - 
handleMoveVehicle
- Specified by:
 handleMoveVehiclein interfaceClientGamePacketListener
 - 
handleOpenBook
- Specified by:
 handleOpenBookin interfaceClientGamePacketListener
 - 
handleCustomPayload
- Specified by:
 handleCustomPayloadin classClientCommonPacketListenerImpl
 - 
handleUnknownCustomPayload
 - 
handleAddObjective
May create a scoreboard objective, remove an objective from the scoreboard or update an objectives' displayname- Specified by:
 handleAddObjectivein interfaceClientGamePacketListener
 - 
handleSetScore
Either updates the score with a specified value or removes the score for an objective- Specified by:
 handleSetScorein interfaceClientGamePacketListener
 - 
handleResetScore
- Specified by:
 handleResetScorein interfaceClientGamePacketListener
 - 
handleSetDisplayObjective
Removes or sets the ScoreObjective to be displayed at a particular scoreboard position (list, sidebar, below name)- Specified by:
 handleSetDisplayObjectivein interfaceClientGamePacketListener
 - 
handleSetPlayerTeamPacket
Updates a team managed by the scoreboard: Create/Remove the team registration, Register/Remove the player-team-memberships, Set team displayname/prefix/suffix and/or whether friendly fire is enabled- Specified by:
 handleSetPlayerTeamPacketin interfaceClientGamePacketListener
 - 
handleParticleEvent
Spawns a specified number of particles at the specified location with a randomized displacement according to specified bounds- Specified by:
 handleParticleEventin interfaceClientGamePacketListener
 - 
handleUpdateAttributes
Updates en entity's attributes and their respective modifiers, which are used for speed bonuses (player sprinting, animals fleeing, baby speed), weapon/tool attackDamage, hostiles followRange randomization, zombie maxHealth and knockback resistance as well as reinforcement spawning chance.- Specified by:
 handleUpdateAttributesin interfaceClientGamePacketListener
 - 
handlePlaceRecipe
- Specified by:
 handlePlaceRecipein interfaceClientGamePacketListener
 - 
handleLightUpdatePacket
- Specified by:
 handleLightUpdatePacketin interfaceClientGamePacketListener
 - 
applyLightData
private void applyLightData(int pX, int pZ, ClientboundLightUpdatePacketData pData, boolean pUpdate)  - 
handleMerchantOffers
- Specified by:
 handleMerchantOffersin interfaceClientGamePacketListener
 - 
handleSetChunkCacheRadius
- Specified by:
 handleSetChunkCacheRadiusin interfaceClientGamePacketListener
 - 
handleSetSimulationDistance
- Specified by:
 handleSetSimulationDistancein interfaceClientGamePacketListener
 - 
handleSetChunkCacheCenter
- Specified by:
 handleSetChunkCacheCenterin interfaceClientGamePacketListener
 - 
handleBlockChangedAck
- Specified by:
 handleBlockChangedAckin interfaceClientGamePacketListener
 - 
handleBundlePacket
- Specified by:
 handleBundlePacketin interfaceClientGamePacketListener
 - 
handleProjectilePowerPacket
- Specified by:
 handleProjectilePowerPacketin interfaceClientGamePacketListener
 - 
handleChunkBatchStart
- Specified by:
 handleChunkBatchStartin interfaceClientGamePacketListener
 - 
handleChunkBatchFinished
- Specified by:
 handleChunkBatchFinishedin interfaceClientGamePacketListener
 - 
handleDebugSample
- Specified by:
 handleDebugSamplein interfaceClientGamePacketListener
 - 
handlePongResponse
- Specified by:
 handlePongResponsein interfaceClientPongPacketListener
 - 
handleTestInstanceBlockStatus
- Specified by:
 handleTestInstanceBlockStatusin interfaceClientGamePacketListener
 - 
handleWaypoint
- Specified by:
 handleWaypointin interfaceClientGamePacketListener
 - 
handleDebugChunkValue
- Specified by:
 handleDebugChunkValuein interfaceClientGamePacketListener
 - 
handleDebugBlockValue
- Specified by:
 handleDebugBlockValuein interfaceClientGamePacketListener
 - 
handleDebugEntityValue
- Specified by:
 handleDebugEntityValuein interfaceClientGamePacketListener
 - 
handleDebugEvent
- Specified by:
 handleDebugEventin interfaceClientGamePacketListener
 - 
handleGameTestHighlightPos
- Specified by:
 handleGameTestHighlightPosin interfaceClientGamePacketListener
 - 
readSectionList
private void readSectionList(int pX, int pZ, LevelLightEngine pLightEngine, LightLayer pLightLayer, BitSet pSkyYMask, BitSet pEmptySkyYMask, Iterator<byte[]> pSkyUpdates, boolean pUpdate)  - 
getConnection
Description copied from interface:ICommonPacketListenerReturns the connection this listener is attached to.- Specified by:
 getConnectionin interfaceICommonPacketListener- Overrides:
 getConnectionin classClientCommonPacketListenerImpl- Returns:
 - the connection this listener is attached to
 
 - 
isAcceptingMessages
public boolean isAcceptingMessages()- Specified by:
 isAcceptingMessagesin interfacePacketListener
 - 
getListedOnlinePlayers
 - 
getOnlinePlayers
 - 
getOnlinePlayerIds
 - 
getPlayerInfo
 - 
getPlayerInfo
Gets the client's description information about another player on the server. - 
getSeenPlayers
 - 
getPlayerInfoIgnoreCase
 - 
getLocalGameProfile
public com.mojang.authlib.GameProfile getLocalGameProfile() - 
getAdvancements
 - 
getCommands
 - 
getLevel
 - 
getDebugQueryHandler
 - 
getId
 - 
levels
 - 
registryAccess
 - 
markMessageAsProcessed
 - 
sendChatAcknowledgement
private void sendChatAcknowledgement() - 
sendChat
 - 
sendCommand
 - 
sendUnattendedCommand
 - 
verifyCommand
 - 
isValidCommand
private static boolean isValidCommand(com.mojang.brigadier.ParseResults<?> pParseResults)  - 
openSendConfirmationWindow
 - 
openCommandSendConfirmationWindow
 - 
openSignedCommandSendConfirmationWindow
 - 
broadcastClientInformation
 - 
tick
public void tick()- Specified by:
 tickin interfaceTickablePacketListener
 - 
notifyPlayerLoaded
private void notifyPlayerLoaded() - 
prepareKeyPair
public void prepareKeyPair() - 
setKeyPair
 - 
createDialogAccess
- Specified by:
 createDialogAccessin classClientCommonPacketListenerImpl
 - 
getServerData
 - 
enabledFeatures
 - 
isFeatureEnabled
 - 
scoreboard
 - 
getConnectionType
Description copied from interface:ICommonPacketListenerReturns the connection type of this packet listener.- Specified by:
 getConnectionTypein interfaceICommonPacketListener- Returns:
 - the connection type of this packet listener
 
 - 
potionBrewing
 - 
fuelValues
 - 
updateSearchTrees
public void updateSearchTrees() - 
searchTrees
 - 
registerForCleaning
 - 
decoratedHashOpsGenenerator
 - 
getWaypointManager
 - 
createDebugValueAccess
 
 - 
 
startWaitingForNewLevel(LocalPlayer, ClientLevel, LevelLoadingScreen.Reason, ResourceKey, ResourceKey)instead.