Class ClientPlayNetHandler
java.lang.Object
net.minecraft.client.network.play.ClientPlayNetHandler
- All Implemented Interfaces:
IClientPlayNetHandler
,INetHandler
-
Field Summary
Modifier and TypeFieldDescriptionprivate final ClientAdvancementManager
private final Screen
private com.mojang.brigadier.CommandDispatcher<ISuggestionProvider>
private final NetworkManager
private final NBTQueryManager
private static final ITextComponent
private final UUID
private ClientWorld
private ClientWorld.ClientWorldInfo
private Set<RegistryKey<World>>
private final com.mojang.authlib.GameProfile
private static final org.apache.logging.log4j.Logger
private Minecraft
private final Map<UUID,
NetworkPlayerInfo> private final Random
private final RecipeManager
private DynamicRegistries
private int
private boolean
private final ClientSuggestionProvider
private ITagCollectionSupplier
-
Constructor Summary
ConstructorDescriptionClientPlayNetHandler
(Minecraft p_i46300_1_, Screen p_i46300_2_, NetworkManager p_i46300_3_, com.mojang.authlib.GameProfile p_i46300_4_) -
Method Summary
Modifier and TypeMethodDescriptionvoid
cleanup()
private void
downloadCallback
(CompletableFuture<?> p_217279_1_) private static ItemStack
findTotem
(PlayerEntity p_217282_0_) com.mojang.brigadier.CommandDispatcher<ISuggestionProvider>
getId()
getLevel()
com.mojang.authlib.GameProfile
getPlayerInfo
(String p_175104_1_) getPlayerInfo
(UUID p_175102_1_) getTags()
void
handleAddEntity
(SSpawnObjectPacket p_147235_1_) void
handleAddExperienceOrb
(SSpawnExperienceOrbPacket p_147286_1_) void
handleAddMob
(SSpawnMobPacket p_147281_1_) void
handleAddObjective
(SScoreboardObjectivePacket p_147291_1_) void
handleAddOrRemoveRecipes
(SRecipeBookPacket p_191980_1_) void
handleAddPainting
(SSpawnPaintingPacket p_147288_1_) void
handleAddPlayer
(SSpawnPlayerPacket p_147237_1_) void
handleAnimate
(SAnimateHandPacket p_147279_1_) void
handleAwardStats
(SStatisticsPacket p_147293_1_) void
handleBlockBreakAck
(SPlayerDiggingPacket p_225312_1_) void
handleBlockDestruction
(SAnimateBlockBreakPacket p_147294_1_) void
handleBlockEntityData
(SUpdateTileEntityPacket p_147273_1_) void
handleBlockEvent
(SBlockActionPacket p_147261_1_) void
handleBlockUpdate
(SChangeBlockPacket p_147234_1_) void
handleBossUpdate
(SUpdateBossInfoPacket p_184325_1_) void
handleChangeDifficulty
(SServerDifficultyPacket p_175101_1_) void
handleChat
(SChatPacket p_147251_1_) void
handleChunkBlocksUpdate
(SMultiBlockChangePacket p_147287_1_) void
handleCommands
(SCommandListPacket p_195511_1_) void
handleCommandSuggestions
(STabCompletePacket p_195510_1_) void
handleContainerAck
(SConfirmTransactionPacket p_147239_1_) void
handleContainerClose
(SCloseWindowPacket p_147276_1_) void
handleContainerContent
(SWindowItemsPacket p_147241_1_) void
handleContainerSetData
(SWindowPropertyPacket p_147245_1_) void
handleContainerSetSlot
(SSetSlotPacket p_147266_1_) void
handleCustomPayload
(SCustomPayloadPlayPacket p_147240_1_) void
handleCustomSoundEvent
(SPlaySoundPacket p_184329_1_) void
handleDisconnect
(SDisconnectPacket p_147253_1_) void
handleEntityEvent
(SEntityStatusPacket p_147236_1_) void
handleEntityLinkPacket
(SMountEntityPacket p_147243_1_) void
handleExplosion
(SExplosionPacket p_147283_1_) void
handleForgetLevelChunk
(SUnloadChunkPacket p_184326_1_) void
handleGameEvent
(SChangeGameStatePacket p_147252_1_) void
handleHorseScreenOpen
(SOpenHorseWindowPacket p_217271_1_) void
handleItemCooldown
(SCooldownPacket p_184324_1_) void
handleKeepAlive
(SKeepAlivePacket p_147272_1_) void
handleLevelChunk
(SChunkDataPacket p_147263_1_) void
handleLevelEvent
(SPlaySoundEventPacket p_147277_1_) void
handleLightUpdatePacked
(SUpdateLightPacket p_217269_1_) void
handleLogin
(SJoinGamePacket p_147282_1_) void
handleLookAt
(SPlayerLookPacket p_200232_1_) void
handleMapItemData
(SMapDataPacket p_147264_1_) void
handleMerchantOffers
(SMerchantOffersPacket p_217273_1_) void
handleMoveEntity
(SEntityPacket p_147259_1_) void
handleMovePlayer
(SPlayerPositionLookPacket p_184330_1_) void
handleMoveVehicle
(SMoveVehiclePacket p_184323_1_) void
handleOpenBook
(SOpenBookWindowPacket p_217268_1_) void
handleOpenScreen
(SOpenWindowPacket p_217272_1_) void
handleOpenSignEditor
(SOpenSignMenuPacket p_147268_1_) void
handleParticleEvent
(SSpawnParticlePacket p_147289_1_) void
handlePlaceRecipe
(SPlaceGhostRecipePacket p_194307_1_) void
handlePlayerAbilities
(SPlayerAbilitiesPacket p_147270_1_) void
handlePlayerCombat
(SCombatPacket p_175098_1_) void
handlePlayerInfo
(SPlayerListItemPacket p_147256_1_) void
handleRemoveEntity
(SDestroyEntitiesPacket p_147238_1_) void
handleRemoveMobEffect
(SRemoveEntityEffectPacket p_147262_1_) void
handleResourcePack
(SSendResourcePackPacket p_175095_1_) void
handleRespawn
(SRespawnPacket p_147280_1_) void
handleRotateMob
(SEntityHeadLookPacket p_147267_1_) void
handleSelectAdvancementsTab
(SSelectAdvancementsTabPacket p_194022_1_) void
handleSetBorder
(SWorldBorderPacket p_175093_1_) void
handleSetCamera
(SCameraPacket p_175094_1_) void
handleSetCarriedItem
(SHeldItemChangePacket p_147257_1_) void
handleSetChunkCacheCenter
(SUpdateChunkPositionPacket p_217267_1_) void
handleSetChunkCacheRadius
(SUpdateViewDistancePacket p_217270_1_) void
handleSetDisplayObjective
(SDisplayObjectivePacket p_147254_1_) void
handleSetEntityData
(SEntityMetadataPacket p_147284_1_) void
handleSetEntityMotion
(SEntityVelocityPacket p_147244_1_) void
handleSetEntityPassengersPacket
(SSetPassengersPacket p_184328_1_) void
handleSetEquipment
(SEntityEquipmentPacket p_147242_1_) void
handleSetExperience
(SSetExperiencePacket p_147295_1_) void
handleSetHealth
(SUpdateHealthPacket p_147249_1_) void
handleSetPlayerTeamPacket
(STeamsPacket p_147247_1_) void
handleSetScore
(SUpdateScorePacket p_147250_1_) void
handleSetSpawn
(SWorldSpawnChangedPacket p_230488_1_) void
handleSetTime
(SUpdateTimePacket p_147285_1_) void
handleSetTitles
(STitlePacket p_175099_1_) void
handleSoundEntityEvent
(SSpawnMovingSoundEffectPacket p_217266_1_) void
handleSoundEvent
(SPlaySoundEffectPacket p_184327_1_) void
handleStopSoundEvent
(SStopSoundPacket p_195512_1_) void
handleTabListCustomisation
(SPlayerListHeaderFooterPacket p_175096_1_) void
handleTagQueryPacket
(SQueryNBTResponsePacket p_211522_1_) void
handleTakeItemEntity
(SCollectItemPacket p_147246_1_) void
handleTeleportEntity
(SEntityTeleportPacket p_147275_1_) void
handleUpdateAdvancementsPacket
(SAdvancementInfoPacket p_191981_1_) void
handleUpdateAttributes
(SEntityPropertiesPacket p_147290_1_) void
handleUpdateMobEffect
(SPlayEntityEffectPacket p_147260_1_) void
handleUpdateRecipes
(SUpdateRecipesPacket p_199525_1_) void
handleUpdateTags
(STagsListPacket p_199723_1_) levels()
void
onDisconnect
(ITextComponent p_147231_1_) private void
readSectionList
(int p_217284_1_, int p_217284_2_, WorldLightManager p_217284_3_, LightType p_217284_4_, int p_217284_5_, int p_217284_6_, Iterator<byte[]> p_217284_7_, boolean p_217284_8_) void
private void
send
(CResourcePackStatusPacket.Action p_217283_1_) private boolean
validateResourcePackUrl
(String p_189688_1_)
-
Field Details
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER -
GENERIC_DISCONNECT_MESSAGE
-
connection
-
localGameProfile
private final com.mojang.authlib.GameProfile localGameProfile -
callbackScreen
-
minecraft
-
level
-
levelData
-
started
private boolean started -
playerInfoMap
-
advancements
-
suggestionsProvider
-
tags
-
debugQueryHandler
-
serverChunkRadius
private int serverChunkRadius -
random
-
commands
-
recipeManager
-
id
-
levels
-
registryAccess
-
-
Constructor Details
-
ClientPlayNetHandler
public ClientPlayNetHandler(Minecraft p_i46300_1_, Screen p_i46300_2_, NetworkManager p_i46300_3_, com.mojang.authlib.GameProfile p_i46300_4_)
-
-
Method Details
-
getSuggestionsProvider
-
cleanup
public void cleanup() -
getRecipeManager
-
handleLogin
- Specified by:
handleLogin
in interfaceIClientPlayNetHandler
-
handleAddEntity
- Specified by:
handleAddEntity
in interfaceIClientPlayNetHandler
-
handleAddExperienceOrb
- Specified by:
handleAddExperienceOrb
in interfaceIClientPlayNetHandler
-
handleAddPainting
- Specified by:
handleAddPainting
in interfaceIClientPlayNetHandler
-
handleSetEntityMotion
- Specified by:
handleSetEntityMotion
in interfaceIClientPlayNetHandler
-
handleSetEntityData
- Specified by:
handleSetEntityData
in interfaceIClientPlayNetHandler
-
handleAddPlayer
- Specified by:
handleAddPlayer
in interfaceIClientPlayNetHandler
-
handleTeleportEntity
- Specified by:
handleTeleportEntity
in interfaceIClientPlayNetHandler
-
handleSetCarriedItem
- Specified by:
handleSetCarriedItem
in interfaceIClientPlayNetHandler
-
handleMoveEntity
- Specified by:
handleMoveEntity
in interfaceIClientPlayNetHandler
-
handleRotateMob
- Specified by:
handleRotateMob
in interfaceIClientPlayNetHandler
-
handleRemoveEntity
- Specified by:
handleRemoveEntity
in interfaceIClientPlayNetHandler
-
handleMovePlayer
- Specified by:
handleMovePlayer
in interfaceIClientPlayNetHandler
-
handleChunkBlocksUpdate
- Specified by:
handleChunkBlocksUpdate
in interfaceIClientPlayNetHandler
-
handleLevelChunk
- Specified by:
handleLevelChunk
in interfaceIClientPlayNetHandler
-
handleForgetLevelChunk
- Specified by:
handleForgetLevelChunk
in interfaceIClientPlayNetHandler
-
handleBlockUpdate
- Specified by:
handleBlockUpdate
in interfaceIClientPlayNetHandler
-
handleDisconnect
- Specified by:
handleDisconnect
in interfaceIClientPlayNetHandler
-
onDisconnect
- Specified by:
onDisconnect
in interfaceINetHandler
-
send
-
handleTakeItemEntity
- Specified by:
handleTakeItemEntity
in interfaceIClientPlayNetHandler
-
handleChat
- Specified by:
handleChat
in interfaceIClientPlayNetHandler
-
handleAnimate
- Specified by:
handleAnimate
in interfaceIClientPlayNetHandler
-
handleAddMob
- Specified by:
handleAddMob
in interfaceIClientPlayNetHandler
-
handleSetTime
- Specified by:
handleSetTime
in interfaceIClientPlayNetHandler
-
handleSetSpawn
- Specified by:
handleSetSpawn
in interfaceIClientPlayNetHandler
-
handleSetEntityPassengersPacket
- Specified by:
handleSetEntityPassengersPacket
in interfaceIClientPlayNetHandler
-
handleEntityLinkPacket
- Specified by:
handleEntityLinkPacket
in interfaceIClientPlayNetHandler
-
findTotem
-
handleEntityEvent
- Specified by:
handleEntityEvent
in interfaceIClientPlayNetHandler
-
handleSetHealth
- Specified by:
handleSetHealth
in interfaceIClientPlayNetHandler
-
handleSetExperience
- Specified by:
handleSetExperience
in interfaceIClientPlayNetHandler
-
handleRespawn
- Specified by:
handleRespawn
in interfaceIClientPlayNetHandler
-
handleExplosion
- Specified by:
handleExplosion
in interfaceIClientPlayNetHandler
-
handleHorseScreenOpen
- Specified by:
handleHorseScreenOpen
in interfaceIClientPlayNetHandler
-
handleOpenScreen
- Specified by:
handleOpenScreen
in interfaceIClientPlayNetHandler
-
handleContainerSetSlot
- Specified by:
handleContainerSetSlot
in interfaceIClientPlayNetHandler
-
handleContainerAck
- Specified by:
handleContainerAck
in interfaceIClientPlayNetHandler
-
handleContainerContent
- Specified by:
handleContainerContent
in interfaceIClientPlayNetHandler
-
handleOpenSignEditor
- Specified by:
handleOpenSignEditor
in interfaceIClientPlayNetHandler
-
handleBlockEntityData
- Specified by:
handleBlockEntityData
in interfaceIClientPlayNetHandler
-
handleContainerSetData
- Specified by:
handleContainerSetData
in interfaceIClientPlayNetHandler
-
handleSetEquipment
- Specified by:
handleSetEquipment
in interfaceIClientPlayNetHandler
-
handleContainerClose
- Specified by:
handleContainerClose
in interfaceIClientPlayNetHandler
-
handleBlockEvent
- Specified by:
handleBlockEvent
in interfaceIClientPlayNetHandler
-
handleBlockDestruction
- Specified by:
handleBlockDestruction
in interfaceIClientPlayNetHandler
-
handleGameEvent
- Specified by:
handleGameEvent
in interfaceIClientPlayNetHandler
-
handleMapItemData
- Specified by:
handleMapItemData
in interfaceIClientPlayNetHandler
-
handleLevelEvent
- Specified by:
handleLevelEvent
in interfaceIClientPlayNetHandler
-
handleUpdateAdvancementsPacket
- Specified by:
handleUpdateAdvancementsPacket
in interfaceIClientPlayNetHandler
-
handleSelectAdvancementsTab
- Specified by:
handleSelectAdvancementsTab
in interfaceIClientPlayNetHandler
-
handleCommands
- Specified by:
handleCommands
in interfaceIClientPlayNetHandler
-
handleStopSoundEvent
- Specified by:
handleStopSoundEvent
in interfaceIClientPlayNetHandler
-
handleCommandSuggestions
- Specified by:
handleCommandSuggestions
in interfaceIClientPlayNetHandler
-
handleUpdateRecipes
- Specified by:
handleUpdateRecipes
in interfaceIClientPlayNetHandler
-
handleLookAt
- Specified by:
handleLookAt
in interfaceIClientPlayNetHandler
-
handleTagQueryPacket
- Specified by:
handleTagQueryPacket
in interfaceIClientPlayNetHandler
-
handleAwardStats
- Specified by:
handleAwardStats
in interfaceIClientPlayNetHandler
-
handleAddOrRemoveRecipes
- Specified by:
handleAddOrRemoveRecipes
in interfaceIClientPlayNetHandler
-
handleUpdateMobEffect
- Specified by:
handleUpdateMobEffect
in interfaceIClientPlayNetHandler
-
handleUpdateTags
- Specified by:
handleUpdateTags
in interfaceIClientPlayNetHandler
-
handlePlayerCombat
- Specified by:
handlePlayerCombat
in interfaceIClientPlayNetHandler
-
handleChangeDifficulty
- Specified by:
handleChangeDifficulty
in interfaceIClientPlayNetHandler
-
handleSetCamera
- Specified by:
handleSetCamera
in interfaceIClientPlayNetHandler
-
handleSetBorder
- Specified by:
handleSetBorder
in interfaceIClientPlayNetHandler
-
handleSetTitles
- Specified by:
handleSetTitles
in interfaceIClientPlayNetHandler
-
handleRemoveMobEffect
- Specified by:
handleRemoveMobEffect
in interfaceIClientPlayNetHandler
-
handlePlayerInfo
- Specified by:
handlePlayerInfo
in interfaceIClientPlayNetHandler
-
handleKeepAlive
- Specified by:
handleKeepAlive
in interfaceIClientPlayNetHandler
-
handlePlayerAbilities
- Specified by:
handlePlayerAbilities
in interfaceIClientPlayNetHandler
-
handleSoundEvent
- Specified by:
handleSoundEvent
in interfaceIClientPlayNetHandler
-
handleSoundEntityEvent
- Specified by:
handleSoundEntityEvent
in interfaceIClientPlayNetHandler
-
handleCustomSoundEvent
- Specified by:
handleCustomSoundEvent
in interfaceIClientPlayNetHandler
-
handleResourcePack
- Specified by:
handleResourcePack
in interfaceIClientPlayNetHandler
-
validateResourcePackUrl
-
downloadCallback
-
send
-
handleBossUpdate
- Specified by:
handleBossUpdate
in interfaceIClientPlayNetHandler
-
handleItemCooldown
- Specified by:
handleItemCooldown
in interfaceIClientPlayNetHandler
-
handleMoveVehicle
- Specified by:
handleMoveVehicle
in interfaceIClientPlayNetHandler
-
handleOpenBook
- Specified by:
handleOpenBook
in interfaceIClientPlayNetHandler
-
handleCustomPayload
- Specified by:
handleCustomPayload
in interfaceIClientPlayNetHandler
-
handleAddObjective
- Specified by:
handleAddObjective
in interfaceIClientPlayNetHandler
-
handleSetScore
- Specified by:
handleSetScore
in interfaceIClientPlayNetHandler
-
handleSetDisplayObjective
- Specified by:
handleSetDisplayObjective
in interfaceIClientPlayNetHandler
-
handleSetPlayerTeamPacket
- Specified by:
handleSetPlayerTeamPacket
in interfaceIClientPlayNetHandler
-
handleParticleEvent
- Specified by:
handleParticleEvent
in interfaceIClientPlayNetHandler
-
handleUpdateAttributes
- Specified by:
handleUpdateAttributes
in interfaceIClientPlayNetHandler
-
handlePlaceRecipe
- Specified by:
handlePlaceRecipe
in interfaceIClientPlayNetHandler
-
handleLightUpdatePacked
- Specified by:
handleLightUpdatePacked
in interfaceIClientPlayNetHandler
-
handleMerchantOffers
- Specified by:
handleMerchantOffers
in interfaceIClientPlayNetHandler
-
handleSetChunkCacheRadius
- Specified by:
handleSetChunkCacheRadius
in interfaceIClientPlayNetHandler
-
handleSetChunkCacheCenter
- Specified by:
handleSetChunkCacheCenter
in interfaceIClientPlayNetHandler
-
handleBlockBreakAck
- Specified by:
handleBlockBreakAck
in interfaceIClientPlayNetHandler
-
readSectionList
private void readSectionList(int p_217284_1_, int p_217284_2_, WorldLightManager p_217284_3_, LightType p_217284_4_, int p_217284_5_, int p_217284_6_, Iterator<byte[]> p_217284_7_, boolean p_217284_8_) -
getConnection
- Specified by:
getConnection
in interfaceINetHandler
-
getOnlinePlayers
-
getOnlinePlayerIds
-
getPlayerInfo
-
getPlayerInfo
-
getLocalGameProfile
public com.mojang.authlib.GameProfile getLocalGameProfile() -
getAdvancements
-
getCommands
-
getLevel
-
getTags
-
getDebugQueryHandler
-
getId
-
levels
-
registryAccess
-