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
|
void |
func_194307_a(SPacketPlaceGhostRecipe p_194307_1_) |
ClientAdvancementManager |
getAdvancementManager() |
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 |
handleAdvancementInfo(SPacketAdvancementInfo packetIn) |
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 |
handleRecipeBook(SPacketRecipeBook 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 |
handleSelectAdvancementsTab(SPacketSelectAdvancementsTab packetIn) |
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 INetHandlerPlayClientpublic void handleSpawnObject(SPacketSpawnObject packetIn)
handleSpawnObject in interface INetHandlerPlayClientpublic void handleSpawnExperienceOrb(SPacketSpawnExperienceOrb packetIn)
handleSpawnExperienceOrb in interface INetHandlerPlayClientpublic void handleSpawnGlobalEntity(SPacketSpawnGlobalEntity packetIn)
handleSpawnGlobalEntity in interface INetHandlerPlayClientpublic void handleSpawnPainting(SPacketSpawnPainting packetIn)
handleSpawnPainting in interface INetHandlerPlayClientpublic void handleEntityVelocity(SPacketEntityVelocity packetIn)
handleEntityVelocity in interface INetHandlerPlayClientpublic void handleEntityMetadata(SPacketEntityMetadata packetIn)
handleEntityMetadata in interface INetHandlerPlayClientpublic void handleSpawnPlayer(SPacketSpawnPlayer packetIn)
handleSpawnPlayer in interface INetHandlerPlayClientpublic void handleEntityTeleport(SPacketEntityTeleport packetIn)
handleEntityTeleport in interface INetHandlerPlayClientpublic void handleHeldItemChange(SPacketHeldItemChange packetIn)
handleHeldItemChange in interface INetHandlerPlayClientpublic void handleEntityMovement(SPacketEntity packetIn)
handleEntityMovement in interface INetHandlerPlayClientpublic void handleEntityHeadLook(SPacketEntityHeadLook packetIn)
handleEntityHeadLook in interface INetHandlerPlayClientpublic void handleDestroyEntities(SPacketDestroyEntities packetIn)
handleDestroyEntities in interface INetHandlerPlayClientpublic void handlePlayerPosLook(SPacketPlayerPosLook packetIn)
handlePlayerPosLook in interface INetHandlerPlayClientpublic void handleMultiBlockChange(SPacketMultiBlockChange packetIn)
handleMultiBlockChange in interface INetHandlerPlayClientpublic void handleChunkData(SPacketChunkData packetIn)
handleChunkData in interface INetHandlerPlayClientpublic void processChunkUnload(SPacketUnloadChunk packetIn)
processChunkUnload in interface INetHandlerPlayClientpublic void handleBlockChange(SPacketBlockChange packetIn)
handleBlockChange in interface INetHandlerPlayClientpublic void handleDisconnect(SPacketDisconnect packetIn)
handleDisconnect in interface INetHandlerPlayClientpublic void onDisconnect(ITextComponent reason)
onDisconnect in interface INetHandlerpublic void sendPacket(Packet<?> packetIn)
public void handleCollectItem(SPacketCollectItem packetIn)
handleCollectItem in interface INetHandlerPlayClientpublic void handleChat(SPacketChat packetIn)
handleChat in interface INetHandlerPlayClientpublic void handleAnimation(SPacketAnimation packetIn)
handleAnimation in interface INetHandlerPlayClientpublic void handleUseBed(SPacketUseBed packetIn)
handleUseBed in interface INetHandlerPlayClientpublic void handleSpawnMob(SPacketSpawnMob packetIn)
handleSpawnMob in interface INetHandlerPlayClientpublic void handleTimeUpdate(SPacketTimeUpdate packetIn)
handleTimeUpdate in interface INetHandlerPlayClientpublic void handleSpawnPosition(SPacketSpawnPosition packetIn)
handleSpawnPosition in interface INetHandlerPlayClientpublic void handleSetPassengers(SPacketSetPassengers packetIn)
handleSetPassengers in interface INetHandlerPlayClientpublic void handleEntityAttach(SPacketEntityAttach packetIn)
handleEntityAttach in interface INetHandlerPlayClientpublic void handleEntityStatus(SPacketEntityStatus packetIn)
handleEntityStatus in interface INetHandlerPlayClientpublic void handleUpdateHealth(SPacketUpdateHealth packetIn)
handleUpdateHealth in interface INetHandlerPlayClientpublic void handleSetExperience(SPacketSetExperience packetIn)
handleSetExperience in interface INetHandlerPlayClientpublic void handleRespawn(SPacketRespawn packetIn)
handleRespawn in interface INetHandlerPlayClientpublic void handleExplosion(SPacketExplosion packetIn)
handleExplosion in interface INetHandlerPlayClientpublic void handleOpenWindow(SPacketOpenWindow packetIn)
handleOpenWindow in interface INetHandlerPlayClientpublic void handleSetSlot(SPacketSetSlot packetIn)
handleSetSlot in interface INetHandlerPlayClientpublic void handleConfirmTransaction(SPacketConfirmTransaction packetIn)
handleConfirmTransaction in interface INetHandlerPlayClientpublic void handleWindowItems(SPacketWindowItems packetIn)
handleWindowItems in interface INetHandlerPlayClientpublic void handleSignEditorOpen(SPacketSignEditorOpen packetIn)
handleSignEditorOpen in interface INetHandlerPlayClientpublic void handleUpdateTileEntity(SPacketUpdateTileEntity packetIn)
handleUpdateTileEntity in interface INetHandlerPlayClientpublic void handleWindowProperty(SPacketWindowProperty packetIn)
handleWindowProperty in interface INetHandlerPlayClientpublic void handleEntityEquipment(SPacketEntityEquipment packetIn)
handleEntityEquipment in interface INetHandlerPlayClientpublic void handleCloseWindow(SPacketCloseWindow packetIn)
handleCloseWindow in interface INetHandlerPlayClientpublic void handleBlockAction(SPacketBlockAction packetIn)
handleBlockAction in interface INetHandlerPlayClientpublic void handleBlockBreakAnim(SPacketBlockBreakAnim packetIn)
handleBlockBreakAnim in interface INetHandlerPlayClientpublic void handleChangeGameState(SPacketChangeGameState packetIn)
handleChangeGameState in interface INetHandlerPlayClientpublic void handleMaps(SPacketMaps packetIn)
handleMaps in interface INetHandlerPlayClientpublic void handleEffect(SPacketEffect packetIn)
handleEffect in interface INetHandlerPlayClientpublic void handleAdvancementInfo(SPacketAdvancementInfo packetIn)
handleAdvancementInfo in interface INetHandlerPlayClientpublic void handleSelectAdvancementsTab(SPacketSelectAdvancementsTab packetIn)
handleSelectAdvancementsTab in interface INetHandlerPlayClientpublic void handleStatistics(SPacketStatistics packetIn)
handleStatistics in interface INetHandlerPlayClientpublic void handleRecipeBook(SPacketRecipeBook packetIn)
handleRecipeBook in interface INetHandlerPlayClientpublic void handleEntityEffect(SPacketEntityEffect packetIn)
handleEntityEffect in interface INetHandlerPlayClientpublic void handleCombatEvent(SPacketCombatEvent packetIn)
handleCombatEvent in interface INetHandlerPlayClientpublic void handleServerDifficulty(SPacketServerDifficulty packetIn)
handleServerDifficulty in interface INetHandlerPlayClientpublic void handleCamera(SPacketCamera packetIn)
handleCamera in interface INetHandlerPlayClientpublic void handleWorldBorder(SPacketWorldBorder packetIn)
handleWorldBorder in interface INetHandlerPlayClientpublic void handleTitle(SPacketTitle packetIn)
handleTitle in interface INetHandlerPlayClientpublic void handlePlayerListHeaderFooter(SPacketPlayerListHeaderFooter packetIn)
handlePlayerListHeaderFooter in interface INetHandlerPlayClientpublic void handleRemoveEntityEffect(SPacketRemoveEntityEffect packetIn)
handleRemoveEntityEffect in interface INetHandlerPlayClientpublic void handlePlayerListItem(SPacketPlayerListItem packetIn)
handlePlayerListItem in interface INetHandlerPlayClientpublic void handleKeepAlive(SPacketKeepAlive packetIn)
handleKeepAlive in interface INetHandlerPlayClientpublic void handlePlayerAbilities(SPacketPlayerAbilities packetIn)
handlePlayerAbilities in interface INetHandlerPlayClientpublic void handleTabComplete(SPacketTabComplete packetIn)
handleTabComplete in interface INetHandlerPlayClientpublic void handleSoundEffect(SPacketSoundEffect packetIn)
handleSoundEffect in interface INetHandlerPlayClientpublic void handleCustomSound(SPacketCustomSound packetIn)
handleCustomSound in interface INetHandlerPlayClientpublic void handleResourcePack(SPacketResourcePackSend packetIn)
handleResourcePack in interface INetHandlerPlayClientpublic void handleUpdateBossInfo(SPacketUpdateBossInfo packetIn)
handleUpdateBossInfo in interface INetHandlerPlayClientpublic void handleCooldown(SPacketCooldown packetIn)
handleCooldown in interface INetHandlerPlayClientpublic void handleMoveVehicle(SPacketMoveVehicle packetIn)
handleMoveVehicle in interface INetHandlerPlayClientpublic void handleCustomPayload(SPacketCustomPayload packetIn)
handleCustomPayload in interface INetHandlerPlayClientpublic void handleScoreboardObjective(SPacketScoreboardObjective packetIn)
handleScoreboardObjective in interface INetHandlerPlayClientpublic void handleUpdateScore(SPacketUpdateScore packetIn)
handleUpdateScore in interface INetHandlerPlayClientpublic void handleDisplayObjective(SPacketDisplayObjective packetIn)
handleDisplayObjective in interface INetHandlerPlayClientpublic void handleTeams(SPacketTeams packetIn)
handleTeams in interface INetHandlerPlayClientpublic void handleParticles(SPacketParticles packetIn)
handleParticles in interface INetHandlerPlayClientpublic void handleEntityProperties(SPacketEntityProperties packetIn)
handleEntityProperties in interface INetHandlerPlayClientpublic void func_194307_a(SPacketPlaceGhostRecipe p_194307_1_)
func_194307_a in interface INetHandlerPlayClientpublic 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()
public ClientAdvancementManager getAdvancementManager()