public class ClientPlayNetHandler extends java.lang.Object implements IClientPlayNetHandler
Modifier and Type | Field and Description |
---|---|
private ClientAdvancementManager |
advancementManager |
private java.util.Random |
avRandomizer |
private Minecraft |
client |
private ClientSuggestionProvider |
clientSuggestionProvider |
private com.mojang.brigadier.CommandDispatcher<ISuggestionProvider> |
commandDispatcher |
private boolean |
doneLoadingTerrain |
private Screen |
guiScreenServer |
private static org.apache.logging.log4j.Logger |
LOGGER |
private NBTQueryManager |
nbtQueryManager |
private NetworkManager |
netManager |
private NetworkTagManager |
networkTagManager |
private java.util.Map<java.util.UUID,NetworkPlayerInfo> |
playerInfoMap |
private com.mojang.authlib.GameProfile |
profile |
private RecipeManager |
recipeManager |
private java.util.UUID |
sessionId |
private int |
viewDistance |
private ClientWorld |
world |
Constructor and Description |
---|
ClientPlayNetHandler(Minecraft mcIn,
Screen previousGuiScreen,
NetworkManager networkManagerIn,
com.mojang.authlib.GameProfile profileIn) |
private static final org.apache.logging.log4j.Logger LOGGER
private final NetworkManager netManager
private final com.mojang.authlib.GameProfile profile
private final Screen guiScreenServer
private Minecraft client
private ClientWorld world
private boolean doneLoadingTerrain
private final java.util.Map<java.util.UUID,NetworkPlayerInfo> playerInfoMap
private final ClientAdvancementManager advancementManager
private final ClientSuggestionProvider clientSuggestionProvider
private NetworkTagManager networkTagManager
private final NBTQueryManager nbtQueryManager
private int viewDistance
private final java.util.Random avRandomizer
private com.mojang.brigadier.CommandDispatcher<ISuggestionProvider> commandDispatcher
private final RecipeManager recipeManager
private final java.util.UUID sessionId
public ClientPlayNetHandler(Minecraft mcIn, Screen previousGuiScreen, NetworkManager networkManagerIn, com.mojang.authlib.GameProfile profileIn)
public ClientSuggestionProvider getSuggestionProvider()
public void cleanup()
public RecipeManager getRecipeManager()
public void handleJoinGame(SJoinGamePacket packetIn)
handleJoinGame
in interface IClientPlayNetHandler
public void handleSpawnObject(SSpawnObjectPacket packetIn)
handleSpawnObject
in interface IClientPlayNetHandler
public void handleSpawnExperienceOrb(SSpawnExperienceOrbPacket packetIn)
handleSpawnExperienceOrb
in interface IClientPlayNetHandler
public void handleSpawnGlobalEntity(SSpawnGlobalEntityPacket packetIn)
handleSpawnGlobalEntity
in interface IClientPlayNetHandler
public void handleSpawnPainting(SSpawnPaintingPacket packetIn)
handleSpawnPainting
in interface IClientPlayNetHandler
public void handleEntityVelocity(SEntityVelocityPacket packetIn)
handleEntityVelocity
in interface IClientPlayNetHandler
public void handleEntityMetadata(SEntityMetadataPacket packetIn)
handleEntityMetadata
in interface IClientPlayNetHandler
public void handleSpawnPlayer(SSpawnPlayerPacket packetIn)
handleSpawnPlayer
in interface IClientPlayNetHandler
public void handleEntityTeleport(SEntityTeleportPacket packetIn)
handleEntityTeleport
in interface IClientPlayNetHandler
public void handleHeldItemChange(SHeldItemChangePacket packetIn)
handleHeldItemChange
in interface IClientPlayNetHandler
public void handleEntityMovement(SEntityPacket packetIn)
handleEntityMovement
in interface IClientPlayNetHandler
public void handleEntityHeadLook(SEntityHeadLookPacket packetIn)
handleEntityHeadLook
in interface IClientPlayNetHandler
public void handleDestroyEntities(SDestroyEntitiesPacket packetIn)
handleDestroyEntities
in interface IClientPlayNetHandler
public void handlePlayerPosLook(SPlayerPositionLookPacket packetIn)
handlePlayerPosLook
in interface IClientPlayNetHandler
public void handleMultiBlockChange(SMultiBlockChangePacket packetIn)
handleMultiBlockChange
in interface IClientPlayNetHandler
public void handleChunkData(SChunkDataPacket packetIn)
handleChunkData
in interface IClientPlayNetHandler
public void processChunkUnload(SUnloadChunkPacket packetIn)
processChunkUnload
in interface IClientPlayNetHandler
public void handleBlockChange(SChangeBlockPacket packetIn)
handleBlockChange
in interface IClientPlayNetHandler
public void handleDisconnect(SDisconnectPacket packetIn)
handleDisconnect
in interface IClientPlayNetHandler
public void onDisconnect(ITextComponent reason)
onDisconnect
in interface INetHandler
public void sendPacket(IPacket<?> packetIn)
public void handleCollectItem(SCollectItemPacket packetIn)
handleCollectItem
in interface IClientPlayNetHandler
public void handleChat(SChatPacket packetIn)
handleChat
in interface IClientPlayNetHandler
public void handleAnimation(SAnimateHandPacket packetIn)
handleAnimation
in interface IClientPlayNetHandler
public void handleSpawnMob(SSpawnMobPacket packetIn)
handleSpawnMob
in interface IClientPlayNetHandler
public void handleTimeUpdate(SUpdateTimePacket packetIn)
handleTimeUpdate
in interface IClientPlayNetHandler
public void handleSpawnPosition(SSpawnPositionPacket packetIn)
handleSpawnPosition
in interface IClientPlayNetHandler
public void handleSetPassengers(SSetPassengersPacket packetIn)
handleSetPassengers
in interface IClientPlayNetHandler
public void handleEntityAttach(SMountEntityPacket packetIn)
handleEntityAttach
in interface IClientPlayNetHandler
private static ItemStack func_217282_a(PlayerEntity p_217282_0_)
public void handleEntityStatus(SEntityStatusPacket packetIn)
handleEntityStatus
in interface IClientPlayNetHandler
public void handleUpdateHealth(SUpdateHealthPacket packetIn)
handleUpdateHealth
in interface IClientPlayNetHandler
public void handleSetExperience(SSetExperiencePacket packetIn)
handleSetExperience
in interface IClientPlayNetHandler
public void handleRespawn(SRespawnPacket packetIn)
handleRespawn
in interface IClientPlayNetHandler
public void handleExplosion(SExplosionPacket packetIn)
handleExplosion
in interface IClientPlayNetHandler
public void handleOpenHorseWindow(SOpenHorseWindowPacket packetIn)
handleOpenHorseWindow
in interface IClientPlayNetHandler
public void handleOpenWindowPacket(SOpenWindowPacket packetIn)
handleOpenWindowPacket
in interface IClientPlayNetHandler
public void handleSetSlot(SSetSlotPacket packetIn)
handleSetSlot
in interface IClientPlayNetHandler
public void handleConfirmTransaction(SConfirmTransactionPacket packetIn)
handleConfirmTransaction
in interface IClientPlayNetHandler
public void handleWindowItems(SWindowItemsPacket packetIn)
handleWindowItems
in interface IClientPlayNetHandler
public void handleSignEditorOpen(SOpenSignMenuPacket packetIn)
handleSignEditorOpen
in interface IClientPlayNetHandler
public void handleUpdateTileEntity(SUpdateTileEntityPacket packetIn)
handleUpdateTileEntity
in interface IClientPlayNetHandler
public void handleWindowProperty(SWindowPropertyPacket packetIn)
handleWindowProperty
in interface IClientPlayNetHandler
public void handleEntityEquipment(SEntityEquipmentPacket packetIn)
handleEntityEquipment
in interface IClientPlayNetHandler
public void handleCloseWindow(SCloseWindowPacket packetIn)
handleCloseWindow
in interface IClientPlayNetHandler
public void handleBlockAction(SBlockActionPacket packetIn)
handleBlockAction
in interface IClientPlayNetHandler
public void handleBlockBreakAnim(SAnimateBlockBreakPacket packetIn)
handleBlockBreakAnim
in interface IClientPlayNetHandler
public void handleChangeGameState(SChangeGameStatePacket packetIn)
handleChangeGameState
in interface IClientPlayNetHandler
public void handleMaps(SMapDataPacket packetIn)
handleMaps
in interface IClientPlayNetHandler
public void handleEffect(SPlaySoundEventPacket packetIn)
handleEffect
in interface IClientPlayNetHandler
public void handleAdvancementInfo(SAdvancementInfoPacket packetIn)
handleAdvancementInfo
in interface IClientPlayNetHandler
public void handleSelectAdvancementsTab(SSelectAdvancementsTabPacket packetIn)
handleSelectAdvancementsTab
in interface IClientPlayNetHandler
public void handleCommandList(SCommandListPacket packetIn)
handleCommandList
in interface IClientPlayNetHandler
public void handleStopSound(SStopSoundPacket packetIn)
handleStopSound
in interface IClientPlayNetHandler
public void handleTabComplete(STabCompletePacket packetIn)
handleTabComplete
in interface IClientPlayNetHandler
public void handleUpdateRecipes(SUpdateRecipesPacket packetIn)
handleUpdateRecipes
in interface IClientPlayNetHandler
public void handlePlayerLook(SPlayerLookPacket packetIn)
handlePlayerLook
in interface IClientPlayNetHandler
public void handleNBTQueryResponse(SQueryNBTResponsePacket packetIn)
handleNBTQueryResponse
in interface IClientPlayNetHandler
public void handleStatistics(SStatisticsPacket packetIn)
handleStatistics
in interface IClientPlayNetHandler
public void handleRecipeBook(SRecipeBookPacket packetIn)
handleRecipeBook
in interface IClientPlayNetHandler
public void handleEntityEffect(SPlayEntityEffectPacket packetIn)
handleEntityEffect
in interface IClientPlayNetHandler
public void handleTags(STagsListPacket packetIn)
handleTags
in interface IClientPlayNetHandler
public void handleCombatEvent(SCombatPacket packetIn)
handleCombatEvent
in interface IClientPlayNetHandler
public void handleServerDifficulty(SServerDifficultyPacket packetIn)
handleServerDifficulty
in interface IClientPlayNetHandler
public void handleCamera(SCameraPacket packetIn)
handleCamera
in interface IClientPlayNetHandler
public void handleWorldBorder(SWorldBorderPacket packetIn)
handleWorldBorder
in interface IClientPlayNetHandler
public void handleTitle(STitlePacket packetIn)
handleTitle
in interface IClientPlayNetHandler
public void handlePlayerListHeaderFooter(SPlayerListHeaderFooterPacket packetIn)
handlePlayerListHeaderFooter
in interface IClientPlayNetHandler
public void handleRemoveEntityEffect(SRemoveEntityEffectPacket packetIn)
handleRemoveEntityEffect
in interface IClientPlayNetHandler
public void handlePlayerListItem(SPlayerListItemPacket packetIn)
handlePlayerListItem
in interface IClientPlayNetHandler
public void handleKeepAlive(SKeepAlivePacket packetIn)
handleKeepAlive
in interface IClientPlayNetHandler
public void handlePlayerAbilities(SPlayerAbilitiesPacket packetIn)
handlePlayerAbilities
in interface IClientPlayNetHandler
public void handleSoundEffect(SPlaySoundEffectPacket packetIn)
handleSoundEffect
in interface IClientPlayNetHandler
public void handleSpawnMovingSoundEffect(SSpawnMovingSoundEffectPacket packetIn)
handleSpawnMovingSoundEffect
in interface IClientPlayNetHandler
public void handleCustomSound(SPlaySoundPacket packetIn)
handleCustomSound
in interface IClientPlayNetHandler
public void handleResourcePack(SSendResourcePackPacket packetIn)
handleResourcePack
in interface IClientPlayNetHandler
private boolean validateResourcePackUrl(java.lang.String url)
private void handlePackFuture(java.util.concurrent.CompletableFuture<?> futureIn)
private void sendResourcePackStatus(CResourcePackStatusPacket.Action action)
public void handleUpdateBossInfo(SUpdateBossInfoPacket packetIn)
handleUpdateBossInfo
in interface IClientPlayNetHandler
public void handleCooldown(SCooldownPacket packetIn)
handleCooldown
in interface IClientPlayNetHandler
public void handleMoveVehicle(SMoveVehiclePacket packetIn)
handleMoveVehicle
in interface IClientPlayNetHandler
public void handleOpenBookPacket(SOpenBookWindowPacket packetIn)
handleOpenBookPacket
in interface IClientPlayNetHandler
public void handleCustomPayload(SCustomPayloadPlayPacket packetIn)
handleCustomPayload
in interface IClientPlayNetHandler
public void handleScoreboardObjective(SScoreboardObjectivePacket packetIn)
handleScoreboardObjective
in interface IClientPlayNetHandler
public void handleUpdateScore(SUpdateScorePacket packetIn)
handleUpdateScore
in interface IClientPlayNetHandler
public void handleDisplayObjective(SDisplayObjectivePacket packetIn)
handleDisplayObjective
in interface IClientPlayNetHandler
public void handleTeams(STeamsPacket packetIn)
handleTeams
in interface IClientPlayNetHandler
public void handleParticles(SSpawnParticlePacket packetIn)
handleParticles
in interface IClientPlayNetHandler
public void handleEntityProperties(SEntityPropertiesPacket packetIn)
handleEntityProperties
in interface IClientPlayNetHandler
public void handlePlaceGhostRecipe(SPlaceGhostRecipePacket packetIn)
handlePlaceGhostRecipe
in interface IClientPlayNetHandler
public void handleUpdateLight(SUpdateLightPacket packetIn)
handleUpdateLight
in interface IClientPlayNetHandler
public void handleMerchantOffers(SMerchantOffersPacket packetIn)
handleMerchantOffers
in interface IClientPlayNetHandler
public void handleUpdateViewDistancePacket(SUpdateViewDistancePacket packetIn)
handleUpdateViewDistancePacket
in interface IClientPlayNetHandler
public void handleChunkPositionPacket(SUpdateChunkPositionPacket packetIn)
handleChunkPositionPacket
in interface IClientPlayNetHandler
public void handleAcknowledgePlayerDigging(SPlayerDiggingPacket packetIn)
handleAcknowledgePlayerDigging
in interface IClientPlayNetHandler
private void setLightData(int chunkX, int chunkZ, WorldLightManager lightManager, LightType type, int p_217284_5_, int p_217284_6_, java.util.Iterator<byte[]> p_217284_7_)
public NetworkManager getNetworkManager()
getNetworkManager
in interface INetHandler
public java.util.Collection<NetworkPlayerInfo> getPlayerInfoMap()
@Nullable public NetworkPlayerInfo getPlayerInfo(java.util.UUID uniqueId)
@Nullable public NetworkPlayerInfo getPlayerInfo(java.lang.String name)
public com.mojang.authlib.GameProfile getGameProfile()
public ClientAdvancementManager getAdvancementManager()
public com.mojang.brigadier.CommandDispatcher<ISuggestionProvider> getCommandDispatcher()
public ClientWorld getWorld()
public NetworkTagManager getTags()
public NBTQueryManager getNBTQueryManager()
public java.util.UUID getSessionId()