public class NetHandlerPlayClient extends java.lang.Object implements INetHandlerPlayClient
Modifier and Type | Field and Description |
---|---|
int |
currentServerMaxPlayers |
MapStorage |
mapStorageOrigin
Origin of the central MapStorage serving as a public reference for WorldClient.
|
java.util.List |
playerInfoList
An ArrayList of GuiPlayerInfo (includes all the players' GuiPlayerInfo on the current server)
|
Constructor and Description |
---|
NetHandlerPlayClient(Minecraft p_i45061_1_,
GuiScreen p_i45061_2_,
NetworkManager p_i45061_3_) |
Modifier and Type | Method and Description |
---|---|
void |
addToSendQueue(Packet p_147297_1_) |
void |
cleanup()
Clears the WorldClient instance associated with this NetHandlerPlayClient
|
NetworkManager |
getNetworkManager()
Returns this the NetworkManager instance registered with this NetworkHandlerPlayClient
|
void |
handleAnimation(S0BPacketAnimation p_147279_1_)
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
|
void |
handleBlockAction(S24PacketBlockAction p_147261_1_)
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
|
void |
handleBlockBreakAnim(S25PacketBlockBreakAnim p_147294_1_)
Updates all registered IWorldAccess instances with destroyBlockInWorldPartially
|
void |
handleBlockChange(S23PacketBlockChange p_147234_1_)
Updates the block and metadata and generates a blockupdate (and notify the clients)
|
void |
handleChangeGameState(S2BPacketChangeGameState p_147252_1_) |
void |
handleChat(S02PacketChat p_147251_1_)
Prints a chatmessage in the chat GUI
|
void |
handleChunkData(S21PacketChunkData p_147263_1_)
Updates the specified chunk with the supplied data, marks it for re-rendering and lighting recalculation
|
void |
handleCloseWindow(S2EPacketCloseWindow p_147276_1_)
Resets the ItemStack held in hand and closes the window that is opened
|
void |
handleCollectItem(S0DPacketCollectItem p_147246_1_) |
void |
handleConfirmTransaction(S32PacketConfirmTransaction p_147239_1_)
Verifies that the server and client are synchronized with respect to the inventory/container opened by the player
and confirms if it is the case.
|
void |
handleCustomPayload(S3FPacketCustomPayload p_147240_1_)
Handles packets that have room for a channel specification.
|
void |
handleDestroyEntities(S13PacketDestroyEntities p_147238_1_)
Locally eliminates the entities.
|
void |
handleDisconnect(S40PacketDisconnect p_147253_1_)
Closes the network channel
|
void |
handleDisplayScoreboard(S3DPacketDisplayScoreboard p_147254_1_)
Removes or sets the ScoreObjective to be displayed at a particular scoreboard position (list, sidebar, below
name)
|
void |
handleEffect(S28PacketEffect p_147277_1_) |
void |
handleEntityAttach(S1BPacketEntityAttach p_147243_1_) |
void |
handleEntityEffect(S1DPacketEntityEffect p_147260_1_) |
void |
handleEntityEquipment(S04PacketEntityEquipment p_147242_1_) |
void |
handleEntityHeadLook(S19PacketEntityHeadLook p_147267_1_)
Updates the direction in which the specified entity is looking, normally this head rotation is independent of the
rotation of the entity itself
|
void |
handleEntityMetadata(S1CPacketEntityMetadata p_147284_1_)
Invoked when the server registers new proximate objects in your watchlist or when objects in your watchlist have
changed -> Registers any changes locally
|
void |
handleEntityMovement(S14PacketEntity p_147259_1_)
Updates the specified entity's position by the specified relative moment and absolute rotation.
|
void |
handleEntityProperties(S20PacketEntityProperties p_147290_1_)
Updates en entity's attributes and their respective modifiers, which are used for speed bonusses (player
sprinting, animals fleeing, baby speed), weapon/tool attackDamage, hostiles followRange randomization, zombie
maxHealth and knockback resistance as well as reinforcement spawning chance.
|
void |
handleEntityStatus(S19PacketEntityStatus p_147236_1_)
Invokes the entities' handleUpdateHealth method which is implemented in LivingBase (hurt/death),
MinecartMobSpawner (spawn delay), FireworkRocket & 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 (...)
|
void |
handleEntityTeleport(S18PacketEntityTeleport p_147275_1_)
Updates an entity's position and rotation as specified by the packet
|
void |
handleEntityVelocity(S12PacketEntityVelocity p_147244_1_)
Sets the velocity of the specified entity to the specified value
|
void |
handleExplosion(S27PacketExplosion p_147283_1_)
Initiates a new explosion (sound, particles, drop spawn) for the affected blocks indicated by the packet.
|
void |
handleHeldItemChange(S09PacketHeldItemChange p_147257_1_)
Updates which hotbar slot of the player is currently selected
|
void |
handleJoinGame(S01PacketJoinGame p_147282_1_)
Registers some server properties (gametype,hardcore-mode,terraintype,difficulty,player limit), creates a new
WorldClient and sets the player initial dimension
|
void |
handleKeepAlive(S00PacketKeepAlive p_147272_1_) |
void |
handleMapChunkBulk(S26PacketMapChunkBulk p_147269_1_) |
void |
handleMaps(S34PacketMaps p_147264_1_)
Updates the worlds MapStorage with the specified MapData for the specified map-identifier and invokes a
MapItemRenderer for it
|
void |
handleMultiBlockChange(S22PacketMultiBlockChange p_147287_1_)
Received from the servers PlayerManager if between 1 and 64 blocks in a chunk are changed.
|
void |
handleOpenWindow(S2DPacketOpenWindow p_147265_1_)
Displays a GUI by ID.
|
void |
handleParticles(S2APacketParticles p_147289_1_)
Spawns a specified number of particles at the specified location with a randomized displacement according to
specified bounds
|
void |
handlePlayerAbilities(S39PacketPlayerAbilities p_147270_1_) |
void |
handlePlayerListItem(S38PacketPlayerListItem p_147256_1_) |
void |
handlePlayerPosLook(S08PacketPlayerPosLook p_147258_1_)
Handles changes in player positioning and rotation such as when travelling to a new dimension, (re)spawning,
mounting horses etc.
|
void |
handleRemoveEntityEffect(S1EPacketRemoveEntityEffect p_147262_1_)
Handle a remove entity effect packet.
|
void |
handleRespawn(S07PacketRespawn p_147280_1_)
respawns the player
|
void |
handleScoreboardObjective(S3BPacketScoreboardObjective p_147291_1_)
May create a scoreboard objective, remove an objective from the scoreboard or update an objectives' displayname
|
void |
handleSetExperience(S1FPacketSetExperience p_147295_1_) |
void |
handleSetSlot(S2FPacketSetSlot p_147266_1_)
Handles pickin up an ItemStack or dropping one in your inventory or an open (non-creative) container
|
void |
handleSignEditorOpen(S36PacketSignEditorOpen p_147268_1_)
Creates a sign in the specified location if it didn't exist and opens the GUI to edit its text
|
void |
handleSoundEffect(S29PacketSoundEffect p_147255_1_) |
void |
handleSpawnExperienceOrb(S11PacketSpawnExperienceOrb p_147286_1_)
Spawns an experience orb and sets its value (amount of XP)
|
void |
handleSpawnGlobalEntity(S2CPacketSpawnGlobalEntity p_147292_1_)
Handles globally visible entities.
|
void |
handleSpawnMob(S0FPacketSpawnMob p_147281_1_)
Spawns the mob entity at the specified location, with the specified rotation, momentum and type.
|
void |
handleSpawnObject(S0EPacketSpawnObject p_147235_1_)
Spawns an instance of the objecttype indicated by the packet and sets its position and momentum
|
void |
handleSpawnPainting(S10PacketSpawnPainting p_147288_1_)
Handles the spawning of a painting object
|
void |
handleSpawnPlayer(S0CPacketSpawnPlayer p_147237_1_)
Handles the creation of a nearby player entity, sets the position and held item
|
void |
handleSpawnPosition(S05PacketSpawnPosition p_147271_1_) |
void |
handleStatistics(S37PacketStatistics p_147293_1_)
Updates the players statistics or achievements
|
void |
handleTabComplete(S3APacketTabComplete p_147274_1_)
Displays the available command-completion options the server knows of
|
void |
handleTeams(S3EPacketTeams p_147247_1_)
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
|
void |
handleTimeUpdate(S03PacketTimeUpdate p_147285_1_) |
void |
handleUpdateHealth(S06PacketUpdateHealth p_147249_1_)
Recieves player health from the server and then proceeds to set it locally on the client.
|
void |
handleUpdateScore(S3CPacketUpdateScore p_147250_1_)
Either updates the score with a specified value or removes the score for an objective
|
void |
handleUpdateSign(S33PacketUpdateSign p_147248_1_)
Updates a specified sign with the specified text lines
|
void |
handleUpdateTileEntity(S35PacketUpdateTileEntity p_147273_1_)
Updates the NBTTagCompound metadata of instances of the following entitytypes: Mob spawners, command blocks,
beacons, skulls, flowerpot
|
void |
handleUseBed(S0APacketUseBed p_147278_1_)
Retrieves the player identified by the packet, puts him to sleep if possible (and flags whether all players are
asleep)
|
void |
handleWindowItems(S30PacketWindowItems p_147241_1_)
Handles the placement of a specified ItemStack in a specified container/inventory slot
|
void |
handleWindowProperty(S31PacketWindowProperty p_147245_1_)
Sets the progressbar of the opened window to the specified value
|
void |
onConnectionStateTransition(EnumConnectionState p_147232_1_,
EnumConnectionState p_147232_2_)
Allows validation of the connection state transition.
|
void |
onDisconnect(IChatComponent p_147231_1_)
Invoked when disconnecting, the parameter is a ChatComponent describing the reason for termination
|
void |
onNetworkTick()
For scheduled network tasks.
|
public MapStorage mapStorageOrigin
public java.util.List playerInfoList
public int currentServerMaxPlayers
public NetHandlerPlayClient(Minecraft p_i45061_1_, GuiScreen p_i45061_2_, NetworkManager p_i45061_3_)
public void cleanup()
public void onNetworkTick()
onNetworkTick
in interface INetHandler
public void handleJoinGame(S01PacketJoinGame p_147282_1_)
handleJoinGame
in interface INetHandlerPlayClient
public void handleSpawnObject(S0EPacketSpawnObject p_147235_1_)
handleSpawnObject
in interface INetHandlerPlayClient
public void handleSpawnExperienceOrb(S11PacketSpawnExperienceOrb p_147286_1_)
handleSpawnExperienceOrb
in interface INetHandlerPlayClient
public void handleSpawnGlobalEntity(S2CPacketSpawnGlobalEntity p_147292_1_)
handleSpawnGlobalEntity
in interface INetHandlerPlayClient
public void handleSpawnPainting(S10PacketSpawnPainting p_147288_1_)
handleSpawnPainting
in interface INetHandlerPlayClient
public void handleEntityVelocity(S12PacketEntityVelocity p_147244_1_)
handleEntityVelocity
in interface INetHandlerPlayClient
public void handleEntityMetadata(S1CPacketEntityMetadata p_147284_1_)
handleEntityMetadata
in interface INetHandlerPlayClient
public void handleSpawnPlayer(S0CPacketSpawnPlayer p_147237_1_)
handleSpawnPlayer
in interface INetHandlerPlayClient
public void handleEntityTeleport(S18PacketEntityTeleport p_147275_1_)
handleEntityTeleport
in interface INetHandlerPlayClient
public void handleHeldItemChange(S09PacketHeldItemChange p_147257_1_)
handleHeldItemChange
in interface INetHandlerPlayClient
public void handleEntityMovement(S14PacketEntity p_147259_1_)
handleEntityMovement
in interface INetHandlerPlayClient
public void handleEntityHeadLook(S19PacketEntityHeadLook p_147267_1_)
handleEntityHeadLook
in interface INetHandlerPlayClient
public void handleDestroyEntities(S13PacketDestroyEntities p_147238_1_)
handleDestroyEntities
in interface INetHandlerPlayClient
public void handlePlayerPosLook(S08PacketPlayerPosLook p_147258_1_)
handlePlayerPosLook
in interface INetHandlerPlayClient
public void handleMultiBlockChange(S22PacketMultiBlockChange p_147287_1_)
handleMultiBlockChange
in interface INetHandlerPlayClient
public void handleChunkData(S21PacketChunkData p_147263_1_)
handleChunkData
in interface INetHandlerPlayClient
public void handleBlockChange(S23PacketBlockChange p_147234_1_)
handleBlockChange
in interface INetHandlerPlayClient
public void handleDisconnect(S40PacketDisconnect p_147253_1_)
handleDisconnect
in interface INetHandlerPlayClient
public void onDisconnect(IChatComponent p_147231_1_)
onDisconnect
in interface INetHandler
public void addToSendQueue(Packet p_147297_1_)
public void handleCollectItem(S0DPacketCollectItem p_147246_1_)
handleCollectItem
in interface INetHandlerPlayClient
public void handleChat(S02PacketChat p_147251_1_)
handleChat
in interface INetHandlerPlayClient
public void handleAnimation(S0BPacketAnimation p_147279_1_)
handleAnimation
in interface INetHandlerPlayClient
public void handleUseBed(S0APacketUseBed p_147278_1_)
handleUseBed
in interface INetHandlerPlayClient
public void handleSpawnMob(S0FPacketSpawnMob p_147281_1_)
handleSpawnMob
in interface INetHandlerPlayClient
public void handleTimeUpdate(S03PacketTimeUpdate p_147285_1_)
handleTimeUpdate
in interface INetHandlerPlayClient
public void handleSpawnPosition(S05PacketSpawnPosition p_147271_1_)
handleSpawnPosition
in interface INetHandlerPlayClient
public void handleEntityAttach(S1BPacketEntityAttach p_147243_1_)
handleEntityAttach
in interface INetHandlerPlayClient
public void handleEntityStatus(S19PacketEntityStatus p_147236_1_)
handleEntityStatus
in interface INetHandlerPlayClient
public void handleUpdateHealth(S06PacketUpdateHealth p_147249_1_)
handleUpdateHealth
in interface INetHandlerPlayClient
public void handleSetExperience(S1FPacketSetExperience p_147295_1_)
handleSetExperience
in interface INetHandlerPlayClient
public void handleRespawn(S07PacketRespawn p_147280_1_)
handleRespawn
in interface INetHandlerPlayClient
public void handleExplosion(S27PacketExplosion p_147283_1_)
handleExplosion
in interface INetHandlerPlayClient
public void handleOpenWindow(S2DPacketOpenWindow p_147265_1_)
handleOpenWindow
in interface INetHandlerPlayClient
public void handleSetSlot(S2FPacketSetSlot p_147266_1_)
handleSetSlot
in interface INetHandlerPlayClient
public void handleConfirmTransaction(S32PacketConfirmTransaction p_147239_1_)
handleConfirmTransaction
in interface INetHandlerPlayClient
public void handleWindowItems(S30PacketWindowItems p_147241_1_)
handleWindowItems
in interface INetHandlerPlayClient
public void handleSignEditorOpen(S36PacketSignEditorOpen p_147268_1_)
handleSignEditorOpen
in interface INetHandlerPlayClient
public void handleUpdateSign(S33PacketUpdateSign p_147248_1_)
handleUpdateSign
in interface INetHandlerPlayClient
public void handleUpdateTileEntity(S35PacketUpdateTileEntity p_147273_1_)
handleUpdateTileEntity
in interface INetHandlerPlayClient
public void handleWindowProperty(S31PacketWindowProperty p_147245_1_)
handleWindowProperty
in interface INetHandlerPlayClient
public void handleEntityEquipment(S04PacketEntityEquipment p_147242_1_)
handleEntityEquipment
in interface INetHandlerPlayClient
public void handleCloseWindow(S2EPacketCloseWindow p_147276_1_)
handleCloseWindow
in interface INetHandlerPlayClient
public void handleBlockAction(S24PacketBlockAction p_147261_1_)
handleBlockAction
in interface INetHandlerPlayClient
public void handleBlockBreakAnim(S25PacketBlockBreakAnim p_147294_1_)
handleBlockBreakAnim
in interface INetHandlerPlayClient
public void handleMapChunkBulk(S26PacketMapChunkBulk p_147269_1_)
handleMapChunkBulk
in interface INetHandlerPlayClient
public void handleChangeGameState(S2BPacketChangeGameState p_147252_1_)
handleChangeGameState
in interface INetHandlerPlayClient
public void handleMaps(S34PacketMaps p_147264_1_)
handleMaps
in interface INetHandlerPlayClient
public void handleEffect(S28PacketEffect p_147277_1_)
handleEffect
in interface INetHandlerPlayClient
public void handleStatistics(S37PacketStatistics p_147293_1_)
handleStatistics
in interface INetHandlerPlayClient
public void handleEntityEffect(S1DPacketEntityEffect p_147260_1_)
handleEntityEffect
in interface INetHandlerPlayClient
public void handleRemoveEntityEffect(S1EPacketRemoveEntityEffect p_147262_1_)
handleRemoveEntityEffect
in interface INetHandlerPlayClient
public void handlePlayerListItem(S38PacketPlayerListItem p_147256_1_)
handlePlayerListItem
in interface INetHandlerPlayClient
public void handleKeepAlive(S00PacketKeepAlive p_147272_1_)
handleKeepAlive
in interface INetHandlerPlayClient
public void onConnectionStateTransition(EnumConnectionState p_147232_1_, EnumConnectionState p_147232_2_)
onConnectionStateTransition
in interface INetHandler
public void handlePlayerAbilities(S39PacketPlayerAbilities p_147270_1_)
handlePlayerAbilities
in interface INetHandlerPlayClient
public void handleTabComplete(S3APacketTabComplete p_147274_1_)
handleTabComplete
in interface INetHandlerPlayClient
public void handleSoundEffect(S29PacketSoundEffect p_147255_1_)
handleSoundEffect
in interface INetHandlerPlayClient
public void handleCustomPayload(S3FPacketCustomPayload p_147240_1_)
handleCustomPayload
in interface INetHandlerPlayClient
public void handleScoreboardObjective(S3BPacketScoreboardObjective p_147291_1_)
handleScoreboardObjective
in interface INetHandlerPlayClient
public void handleUpdateScore(S3CPacketUpdateScore p_147250_1_)
handleUpdateScore
in interface INetHandlerPlayClient
public void handleDisplayScoreboard(S3DPacketDisplayScoreboard p_147254_1_)
handleDisplayScoreboard
in interface INetHandlerPlayClient
public void handleTeams(S3EPacketTeams p_147247_1_)
handleTeams
in interface INetHandlerPlayClient
public void handleParticles(S2APacketParticles p_147289_1_)
handleParticles
in interface INetHandlerPlayClient
public void handleEntityProperties(S20PacketEntityProperties p_147290_1_)
handleEntityProperties
in interface INetHandlerPlayClient
public NetworkManager getNetworkManager()