public class NetHandlerPlayClient extends java.lang.Object implements INetHandlerPlayClient
Modifier and Type | Field and Description |
---|---|
int |
currentServerMaxPlayers |
Constructor and Description |
---|
NetHandlerPlayClient(Minecraft mcIn,
GuiScreen p_i46300_2_,
NetworkManager networkManagerIn,
GameProfile profileIn) |
Modifier and Type | Method and Description |
---|---|
void |
cleanup()
Clears the WorldClient instance associated with this NetHandlerPlayClient
|
GameProfile |
getGameProfile() |
NetworkManager |
getNetworkManager()
Returns this the NetworkManager instance registered with this NetworkHandlerPlayClient
|
NetworkPlayerInfo |
getPlayerInfo(java.lang.String name)
Gets the client's description information about another player on the server.
|
NetworkPlayerInfo |
getPlayerInfo(java.util.UUID uniqueId) |
java.util.Collection<NetworkPlayerInfo> |
getPlayerInfoMap() |
void |
handleAnimation(SPacketAnimation packetIn)
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(SPacketBlockAction packetIn)
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(SPacketBlockBreakAnim packetIn)
Updates all registered IWorldAccess instances with destroyBlockInWorldPartially
|
void |
handleBlockChange(SPacketBlockChange packetIn)
Updates the block and metadata and generates a blockupdate (and notify the clients)
|
void |
handleCamera(SPacketCamera packetIn) |
void |
handleChangeGameState(SPacketChangeGameState packetIn) |
void |
handleChat(SPacketChat packetIn)
Prints a chatmessage in the chat GUI
|
void |
handleChunkData(SPacketChunkData packetIn)
Updates the specified chunk with the supplied data, marks it for re-rendering and lighting recalculation
|
void |
handleCloseWindow(SPacketCloseWindow packetIn)
Resets the ItemStack held in hand and closes the window that is opened
|
void |
handleCollectItem(SPacketCollectItem packetIn) |
void |
handleCombatEvent(SPacketCombatEvent packetIn) |
void |
handleConfirmTransaction(SPacketConfirmTransaction packetIn)
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 |
handleCooldown(SPacketCooldown packetIn) |
void |
handleCustomPayload(SPacketCustomPayload packetIn)
Handles packets that have room for a channel specification.
|
void |
handleCustomSound(SPacketCustomSound packetIn) |
void |
handleDestroyEntities(SPacketDestroyEntities packetIn)
Locally eliminates the entities.
|
void |
handleDisconnect(SPacketDisconnect packetIn)
Closes the network channel
|
void |
handleDisplayObjective(SPacketDisplayObjective packetIn)
Removes or sets the ScoreObjective to be displayed at a particular scoreboard position (list, sidebar, below
name)
|
void |
handleEffect(SPacketEffect packetIn) |
void |
handleEntityAttach(SPacketEntityAttach packetIn) |
void |
handleEntityEffect(SPacketEntityEffect packetIn) |
void |
handleEntityEquipment(SPacketEntityEquipment packetIn) |
void |
handleEntityHeadLook(SPacketEntityHeadLook packetIn)
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(SPacketEntityMetadata packetIn)
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(SPacketEntity packetIn)
Updates the specified entity's position by the specified relative moment and absolute rotation.
|
void |
handleEntityProperties(SPacketEntityProperties packetIn)
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(SPacketEntityStatus packetIn)
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(SPacketEntityTeleport packetIn)
Updates an entity's position and rotation as specified by the packet
|
void |
handleEntityVelocity(SPacketEntityVelocity packetIn)
Sets the velocity of the specified entity to the specified value
|
void |
handleExplosion(SPacketExplosion packetIn)
Initiates a new explosion (sound, particles, drop spawn) for the affected blocks indicated by the packet.
|
void |
handleHeldItemChange(SPacketHeldItemChange packetIn)
Updates which hotbar slot of the player is currently selected
|
void |
handleJoinGame(SPacketJoinGame packetIn)
Registers some server properties (gametype,hardcore-mode,terraintype,difficulty,player limit), creates a new
WorldClient and sets the player initial dimension
|
void |
handleKeepAlive(SPacketKeepAlive packetIn) |
void |
handleMaps(SPacketMaps packetIn)
Updates the worlds MapStorage with the specified MapData for the specified map-identifier and invokes a
MapItemRenderer for it
|
void |
handleMoveVehicle(SPacketMoveVehicle packetIn) |
void |
handleMultiBlockChange(SPacketMultiBlockChange packetIn)
Received from the servers PlayerManager if between 1 and 64 blocks in a chunk are changed.
|
void |
handleOpenWindow(SPacketOpenWindow packetIn)
Displays a GUI by ID.
|
void |
handleParticles(SPacketParticles packetIn)
Spawns a specified number of particles at the specified location with a randomized displacement according to
specified bounds
|
void |
handlePlayerAbilities(SPacketPlayerAbilities packetIn) |
void |
handlePlayerListHeaderFooter(SPacketPlayerListHeaderFooter packetIn) |
void |
handlePlayerListItem(SPacketPlayerListItem packetIn) |
void |
handlePlayerPosLook(SPacketPlayerPosLook packetIn) |
void |
handleRemoveEntityEffect(SPacketRemoveEntityEffect packetIn) |
void |
handleResourcePack(SPacketResourcePackSend packetIn) |
void |
handleRespawn(SPacketRespawn packetIn) |
void |
handleScoreboardObjective(SPacketScoreboardObjective packetIn)
May create a scoreboard objective, remove an objective from the scoreboard or update an objectives' displayname
|
void |
handleServerDifficulty(SPacketServerDifficulty packetIn) |
void |
handleSetExperience(SPacketSetExperience packetIn) |
void |
handleSetPassengers(SPacketSetPassengers packetIn) |
void |
handleSetSlot(SPacketSetSlot packetIn)
Handles pickin up an ItemStack or dropping one in your inventory or an open (non-creative) container
|
void |
handleSignEditorOpen(SPacketSignEditorOpen packetIn)
Creates a sign in the specified location if it didn't exist and opens the GUI to edit its text
|
void |
handleSoundEffect(SPacketSoundEffect packetIn) |
void |
handleSpawnExperienceOrb(SPacketSpawnExperienceOrb packetIn)
Spawns an experience orb and sets its value (amount of XP)
|
void |
handleSpawnGlobalEntity(SPacketSpawnGlobalEntity packetIn)
Handles globally visible entities.
|
void |
handleSpawnMob(SPacketSpawnMob packetIn)
Spawns the mob entity at the specified location, with the specified rotation, momentum and type.
|
void |
handleSpawnObject(SPacketSpawnObject packetIn)
Spawns an instance of the objecttype indicated by the packet and sets its position and momentum
|
void |
handleSpawnPainting(SPacketSpawnPainting packetIn)
Handles the spawning of a painting object
|
void |
handleSpawnPlayer(SPacketSpawnPlayer packetIn)
Handles the creation of a nearby player entity, sets the position and held item
|
void |
handleSpawnPosition(SPacketSpawnPosition packetIn) |
void |
handleStatistics(SPacketStatistics packetIn)
Updates the players statistics or achievements
|
void |
handleTabComplete(SPacketTabComplete packetIn)
Displays the available command-completion options the server knows of
|
void |
handleTeams(SPacketTeams packetIn)
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(SPacketTimeUpdate packetIn) |
void |
handleTitle(SPacketTitle packetIn) |
void |
handleUpdateBossInfo(SPacketUpdateBossInfo packetIn) |
void |
handleUpdateHealth(SPacketUpdateHealth packetIn) |
void |
handleUpdateScore(SPacketUpdateScore packetIn)
Either updates the score with a specified value or removes the score for an objective
|
void |
handleUpdateTileEntity(SPacketUpdateTileEntity packetIn)
Updates the NBTTagCompound metadata of instances of the following entitytypes: Mob spawners, command blocks,
beacons, skulls, flowerpot
|
void |
handleUseBed(SPacketUseBed packetIn)
Retrieves the player identified by the packet, puts him to sleep if possible (and flags whether all players are
asleep)
|
void |
handleWindowItems(SPacketWindowItems packetIn)
Handles the placement of a specified ItemStack in a specified container/inventory slot
|
void |
handleWindowProperty(SPacketWindowProperty packetIn)
Sets the progressbar of the opened window to the specified value
|
void |
handleWorldBorder(SPacketWorldBorder packetIn) |
void |
onDisconnect(ITextComponent reason)
Invoked when disconnecting, the parameter is a ChatComponent describing the reason for termination
|
void |
processChunkUnload(SPacketUnloadChunk packetIn) |
void |
sendPacket(Packet<?> packetIn) |
public NetHandlerPlayClient(Minecraft mcIn, GuiScreen p_i46300_2_, NetworkManager networkManagerIn, GameProfile profileIn)
public void cleanup()
public void handleJoinGame(SPacketJoinGame packetIn)
handleJoinGame
in interface INetHandlerPlayClient
public void handleSpawnObject(SPacketSpawnObject packetIn)
handleSpawnObject
in interface INetHandlerPlayClient
public void handleSpawnExperienceOrb(SPacketSpawnExperienceOrb packetIn)
handleSpawnExperienceOrb
in interface INetHandlerPlayClient
public void handleSpawnGlobalEntity(SPacketSpawnGlobalEntity packetIn)
handleSpawnGlobalEntity
in interface INetHandlerPlayClient
public void handleSpawnPainting(SPacketSpawnPainting packetIn)
handleSpawnPainting
in interface INetHandlerPlayClient
public void handleEntityVelocity(SPacketEntityVelocity packetIn)
handleEntityVelocity
in interface INetHandlerPlayClient
public void handleEntityMetadata(SPacketEntityMetadata packetIn)
handleEntityMetadata
in interface INetHandlerPlayClient
public void handleSpawnPlayer(SPacketSpawnPlayer packetIn)
handleSpawnPlayer
in interface INetHandlerPlayClient
public void handleEntityTeleport(SPacketEntityTeleport packetIn)
handleEntityTeleport
in interface INetHandlerPlayClient
public void handleHeldItemChange(SPacketHeldItemChange packetIn)
handleHeldItemChange
in interface INetHandlerPlayClient
public void handleEntityMovement(SPacketEntity packetIn)
handleEntityMovement
in interface INetHandlerPlayClient
public void handleEntityHeadLook(SPacketEntityHeadLook packetIn)
handleEntityHeadLook
in interface INetHandlerPlayClient
public void handleDestroyEntities(SPacketDestroyEntities packetIn)
handleDestroyEntities
in interface INetHandlerPlayClient
public void handlePlayerPosLook(SPacketPlayerPosLook packetIn)
handlePlayerPosLook
in interface INetHandlerPlayClient
public void handleMultiBlockChange(SPacketMultiBlockChange packetIn)
handleMultiBlockChange
in interface INetHandlerPlayClient
public void handleChunkData(SPacketChunkData packetIn)
handleChunkData
in interface INetHandlerPlayClient
public void processChunkUnload(SPacketUnloadChunk packetIn)
processChunkUnload
in interface INetHandlerPlayClient
public void handleBlockChange(SPacketBlockChange packetIn)
handleBlockChange
in interface INetHandlerPlayClient
public void handleDisconnect(SPacketDisconnect packetIn)
handleDisconnect
in interface INetHandlerPlayClient
public void onDisconnect(ITextComponent reason)
onDisconnect
in interface INetHandler
public void sendPacket(Packet<?> packetIn)
public void handleCollectItem(SPacketCollectItem packetIn)
handleCollectItem
in interface INetHandlerPlayClient
public void handleChat(SPacketChat packetIn)
handleChat
in interface INetHandlerPlayClient
public void handleAnimation(SPacketAnimation packetIn)
handleAnimation
in interface INetHandlerPlayClient
public void handleUseBed(SPacketUseBed packetIn)
handleUseBed
in interface INetHandlerPlayClient
public void handleSpawnMob(SPacketSpawnMob packetIn)
handleSpawnMob
in interface INetHandlerPlayClient
public void handleTimeUpdate(SPacketTimeUpdate packetIn)
handleTimeUpdate
in interface INetHandlerPlayClient
public void handleSpawnPosition(SPacketSpawnPosition packetIn)
handleSpawnPosition
in interface INetHandlerPlayClient
public void handleSetPassengers(SPacketSetPassengers packetIn)
handleSetPassengers
in interface INetHandlerPlayClient
public void handleEntityAttach(SPacketEntityAttach packetIn)
handleEntityAttach
in interface INetHandlerPlayClient
public void handleEntityStatus(SPacketEntityStatus packetIn)
handleEntityStatus
in interface INetHandlerPlayClient
public void handleUpdateHealth(SPacketUpdateHealth packetIn)
handleUpdateHealth
in interface INetHandlerPlayClient
public void handleSetExperience(SPacketSetExperience packetIn)
handleSetExperience
in interface INetHandlerPlayClient
public void handleRespawn(SPacketRespawn packetIn)
handleRespawn
in interface INetHandlerPlayClient
public void handleExplosion(SPacketExplosion packetIn)
handleExplosion
in interface INetHandlerPlayClient
public void handleOpenWindow(SPacketOpenWindow packetIn)
handleOpenWindow
in interface INetHandlerPlayClient
public void handleSetSlot(SPacketSetSlot packetIn)
handleSetSlot
in interface INetHandlerPlayClient
public void handleConfirmTransaction(SPacketConfirmTransaction packetIn)
handleConfirmTransaction
in interface INetHandlerPlayClient
public void handleWindowItems(SPacketWindowItems packetIn)
handleWindowItems
in interface INetHandlerPlayClient
public void handleSignEditorOpen(SPacketSignEditorOpen packetIn)
handleSignEditorOpen
in interface INetHandlerPlayClient
public void handleUpdateTileEntity(SPacketUpdateTileEntity packetIn)
handleUpdateTileEntity
in interface INetHandlerPlayClient
public void handleWindowProperty(SPacketWindowProperty packetIn)
handleWindowProperty
in interface INetHandlerPlayClient
public void handleEntityEquipment(SPacketEntityEquipment packetIn)
handleEntityEquipment
in interface INetHandlerPlayClient
public void handleCloseWindow(SPacketCloseWindow packetIn)
handleCloseWindow
in interface INetHandlerPlayClient
public void handleBlockAction(SPacketBlockAction packetIn)
handleBlockAction
in interface INetHandlerPlayClient
public void handleBlockBreakAnim(SPacketBlockBreakAnim packetIn)
handleBlockBreakAnim
in interface INetHandlerPlayClient
public void handleChangeGameState(SPacketChangeGameState packetIn)
handleChangeGameState
in interface INetHandlerPlayClient
public void handleMaps(SPacketMaps packetIn)
handleMaps
in interface INetHandlerPlayClient
public void handleEffect(SPacketEffect packetIn)
handleEffect
in interface INetHandlerPlayClient
public void handleStatistics(SPacketStatistics packetIn)
handleStatistics
in interface INetHandlerPlayClient
public void handleEntityEffect(SPacketEntityEffect packetIn)
handleEntityEffect
in interface INetHandlerPlayClient
public void handleCombatEvent(SPacketCombatEvent packetIn)
handleCombatEvent
in interface INetHandlerPlayClient
public void handleServerDifficulty(SPacketServerDifficulty packetIn)
handleServerDifficulty
in interface INetHandlerPlayClient
public void handleCamera(SPacketCamera packetIn)
handleCamera
in interface INetHandlerPlayClient
public void handleWorldBorder(SPacketWorldBorder packetIn)
handleWorldBorder
in interface INetHandlerPlayClient
public void handleTitle(SPacketTitle packetIn)
handleTitle
in interface INetHandlerPlayClient
public void handlePlayerListHeaderFooter(SPacketPlayerListHeaderFooter packetIn)
handlePlayerListHeaderFooter
in interface INetHandlerPlayClient
public void handleRemoveEntityEffect(SPacketRemoveEntityEffect packetIn)
handleRemoveEntityEffect
in interface INetHandlerPlayClient
public void handlePlayerListItem(SPacketPlayerListItem packetIn)
handlePlayerListItem
in interface INetHandlerPlayClient
public void handleKeepAlive(SPacketKeepAlive packetIn)
handleKeepAlive
in interface INetHandlerPlayClient
public void handlePlayerAbilities(SPacketPlayerAbilities packetIn)
handlePlayerAbilities
in interface INetHandlerPlayClient
public void handleTabComplete(SPacketTabComplete packetIn)
handleTabComplete
in interface INetHandlerPlayClient
public void handleSoundEffect(SPacketSoundEffect packetIn)
handleSoundEffect
in interface INetHandlerPlayClient
public void handleCustomSound(SPacketCustomSound packetIn)
handleCustomSound
in interface INetHandlerPlayClient
public void handleResourcePack(SPacketResourcePackSend packetIn)
handleResourcePack
in interface INetHandlerPlayClient
public void handleUpdateBossInfo(SPacketUpdateBossInfo packetIn)
handleUpdateBossInfo
in interface INetHandlerPlayClient
public void handleCooldown(SPacketCooldown packetIn)
handleCooldown
in interface INetHandlerPlayClient
public void handleMoveVehicle(SPacketMoveVehicle packetIn)
handleMoveVehicle
in interface INetHandlerPlayClient
public void handleCustomPayload(SPacketCustomPayload packetIn)
handleCustomPayload
in interface INetHandlerPlayClient
public void handleScoreboardObjective(SPacketScoreboardObjective packetIn)
handleScoreboardObjective
in interface INetHandlerPlayClient
public void handleUpdateScore(SPacketUpdateScore packetIn)
handleUpdateScore
in interface INetHandlerPlayClient
public void handleDisplayObjective(SPacketDisplayObjective packetIn)
handleDisplayObjective
in interface INetHandlerPlayClient
public void handleTeams(SPacketTeams packetIn)
handleTeams
in interface INetHandlerPlayClient
public void handleParticles(SPacketParticles packetIn)
handleParticles
in interface INetHandlerPlayClient
public void handleEntityProperties(SPacketEntityProperties packetIn)
handleEntityProperties
in interface INetHandlerPlayClient
public NetworkManager getNetworkManager()
public java.util.Collection<NetworkPlayerInfo> getPlayerInfoMap()
public NetworkPlayerInfo getPlayerInfo(java.util.UUID uniqueId)
public NetworkPlayerInfo getPlayerInfo(java.lang.String name)
public GameProfile getGameProfile()