Package net.minecraft.client.network
Class NetHandlerPlayClient
- java.lang.Object
-
- net.zxmushroom63.plugins.BaseData
-
- net.zxmushroom63.plugins.PluginData
-
- net.minecraft.client.network.NetHandlerPlayClient
-
- All Implemented Interfaces:
INetHandler
,INetHandlerPlayClient
,org.teavm.jso.JSObject
public class NetHandlerPlayClient extends PluginData implements INetHandlerPlayClient
+ This portion of EaglercraftX contains deobfuscated Minecraft 1.8 source code. Minecraft 1.8.8 bytecode is (c) 2015 Mojang AB. "Do not distribute!" Mod Coder Pack v9.18 deobfuscation configs are (c) Copyright by the MCP Team EaglercraftX 1.8 patch files are (c) 2022-2023 LAX1DUDE. All Rights Reserved. WITH THE EXCEPTION OF PATCH FILES, MINIFIED JAVASCRIPT, AND ALL FILES NORMALLY FOUND IN AN UNMODIFIED MINECRAFT RESOURCE PACK, YOU ARE NOT ALLOWED TO SHARE, DISTRIBUTE, OR REPURPOSE ANY FILE USED BY OR PRODUCED BY THE SOFTWARE IN THIS REPOSITORY WITHOUT PRIOR PERMISSION FROM THE PROJECT AUTHOR. NOT FOR COMMERCIAL OR MALICIOUS USE (please read the 'LICENSE' file this repo's root directory for more info)
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class net.zxmushroom63.plugins.BaseData
BaseData.BooleanCallback, BaseData.BooleanCallbackArr, BaseData.DataBooleanCallback, BaseData.DataBooleanCallbackArr, BaseData.DataDoubleCallback, BaseData.DataDoubleCallbackArr, BaseData.DataFloatCallback, BaseData.DataFloatCallbackArr, BaseData.DataIntCallback, BaseData.DataIntCallbackArr, BaseData.DataObjectCallback, BaseData.DataObjectCallbackArr, BaseData.DataStringCallback, BaseData.DataStringCallbackArr, BaseData.DataVoidCallback, BaseData.DoubleCallback, BaseData.DoubleCallbackArr, BaseData.FloatCallback, BaseData.FloatCallbackArr, BaseData.IntCallback, BaseData.IntCallbackArr, BaseData.ObjectCallback, BaseData.ObjectCallbackArr, BaseData.StringCallback, BaseData.StringCallbackArr, BaseData.VoidCallback
-
-
Field Summary
Fields Modifier and Type Field Description int
currentServerMaxPlayers
-
Constructor Summary
Constructors Constructor Description NetHandlerPlayClient(Minecraft mcIn, GuiScreen parGuiScreen, EaglercraftNetworkManager parNetworkManager, GameProfile parGameProfile)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addToSendQueue(Packet parPacket)
void
cleanup()
+ Clears the WorldClient instance associated with this NetHandlerPlayClientGameProfile
getGameProfile()
EaglercraftNetworkManager
getNetworkManager()
+ Returns this the NetworkManager instance registered with this NetworkHandlerPlayClientNetworkPlayerInfo
getPlayerInfo(java.lang.String parString1)
+ Gets the client's description information about another player on the server.NetworkPlayerInfo
getPlayerInfo(EaglercraftUUID parUUID)
+ Gets the client's description information about another player on the server.java.util.Collection<NetworkPlayerInfo>
getPlayerInfoMap()
ServerSkinCache
getSkinCache()
void
handleAnimation(S0BPacketAnimation 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 meansvoid
handleBlockAction(S24PacketBlockAction 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)Chestvoid
handleBlockBreakAnim(S25PacketBlockBreakAnim packetIn)
+ Updates all registered IWorldAccess instances with destroyBlockInWorldPartiallyvoid
handleBlockChange(S23PacketBlockChange packetIn)
+ Updates the block and metadata and generates a blockupdate (and notify the clients)void
handleCamera(S43PacketCamera packetIn)
void
handleChangeGameState(S2BPacketChangeGameState packetIn)
void
handleChat(S02PacketChat packetIn)
+ Prints a chatmessage in the chat GUIvoid
handleChunkData(S21PacketChunkData packetIn)
+ Updates the specified chunk with the supplied data, marks it for re-rendering and lighting recalculationvoid
handleCloseWindow(S2EPacketCloseWindow packetIn)
+ Resets the ItemStack held in hand and closes the window that is openedvoid
handleCollectItem(S0DPacketCollectItem packetIn)
void
handleCombatEvent(S42PacketCombatEvent packetIn)
void
handleConfirmTransaction(S32PacketConfirmTransaction 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
handleCustomPayload(S3FPacketCustomPayload packetIn)
+ Handles packets that have room for a channel specification.void
handleDestroyEntities(S13PacketDestroyEntities packetIn)
+ Locally eliminates the entities.void
handleDisconnect(S40PacketDisconnect packetIn)
+ Closes the network channelvoid
handleDisplayScoreboard(S3DPacketDisplayScoreboard packetIn)
+ Removes or sets the ScoreObjective to be displayed at a particular scoreboard position (list, sidebar, below name)void
handleEffect(S28PacketEffect packetIn)
void
handleEntityAttach(S1BPacketEntityAttach packetIn)
void
handleEntityEffect(S1DPacketEntityEffect packetIn)
void
handleEntityEquipment(S04PacketEntityEquipment packetIn)
void
handleEntityHeadLook(S19PacketEntityHeadLook packetIn)
+ Updates the direction in which the specified entity is looking, normally this head rotation is independent of the rotation of the entity itselfvoid
handleEntityMetadata(S1CPacketEntityMetadata packetIn)
+ Invoked when the server registers new proximate objects in your watchlist or when objects in your watchlist have changed -> Registers any changes locallyvoid
handleEntityMovement(S14PacketEntity packetIn)
+ Updates the specified entity's position by the specified relative moment and absolute rotation.void
handleEntityNBT(S49PacketUpdateEntityNBT packetIn)
void
handleEntityProperties(S20PacketEntityProperties 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(S19PacketEntityStatus 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(S18PacketEntityTeleport packetIn)
+ Updates an entity's position and rotation as specified by the packetvoid
handleEntityVelocity(S12PacketEntityVelocity packetIn)
+ Sets the velocity of the specified entity to the specified valuevoid
handleExplosion(S27PacketExplosion packetIn)
+ Initiates a new explosion (sound, particles, drop spawn) for the affected blocks indicated by the packet.void
handleHeldItemChange(S09PacketHeldItemChange packetIn)
+ Updates which hotbar slot of the player is currently selectedvoid
handleJoinGame(S01PacketJoinGame packetIn)
+ Registers some server properties (gametype,hardcore-mode,terraintype,difficulty,player limit), creates a new WorldClient and sets the player initial dimensionvoid
handleKeepAlive(S00PacketKeepAlive packetIn)
void
handleMapChunkBulk(S26PacketMapChunkBulk packetIn)
void
handleMaps(S34PacketMaps packetIn)
+ Updates the worlds MapStorage with the specified MapData for the specified map-identifier and invokes a MapItemRenderer for itvoid
handleMultiBlockChange(S22PacketMultiBlockChange packetIn)
+ Received from the servers PlayerManager if between 1 and 64 blocks in a chunk are changed.void
handleOpenWindow(S2DPacketOpenWindow packetIn)
+ Displays a GUI by ID.void
handleParticles(S2APacketParticles packetIn)
+ Spawns a specified number of particles at the specified location with a randomized displacement according to specified boundsvoid
handlePlayerAbilities(S39PacketPlayerAbilities packetIn)
void
handlePlayerListHeaderFooter(S47PacketPlayerListHeaderFooter packetIn)
void
handlePlayerListItem(S38PacketPlayerListItem packetIn)
void
handlePlayerPosLook(S08PacketPlayerPosLook packetIn)
+ Handles changes in player positioning and rotation such as when travelling to a new dimension, (re)spawning, mounting horses etc.void
handleRemoveEntityEffect(S1EPacketRemoveEntityEffect packetIn)
void
handleResourcePack(S48PacketResourcePackSend packetIn)
void
handleRespawn(S07PacketRespawn packetIn)
void
handleScoreboardObjective(S3BPacketScoreboardObjective packetIn)
+ May create a scoreboard objective, remove an objective from the scoreboard or update an objectives' displaynamevoid
handleServerDifficulty(S41PacketServerDifficulty packetIn)
void
handleSetCompressionLevel(S46PacketSetCompressionLevel packetIn)
void
handleSetExperience(S1FPacketSetExperience packetIn)
void
handleSetSlot(S2FPacketSetSlot packetIn)
+ Handles pickin up an ItemStack or dropping one in your inventory or an open (non-creative) containervoid
handleSignEditorOpen(S36PacketSignEditorOpen packetIn)
+ Creates a sign in the specified location if it didn't exist and opens the GUI to edit its textvoid
handleSoundEffect(S29PacketSoundEffect packetIn)
void
handleSpawnExperienceOrb(S11PacketSpawnExperienceOrb packetIn)
+ Spawns an experience orb and sets its value (amount of XP)void
handleSpawnGlobalEntity(S2CPacketSpawnGlobalEntity packetIn)
+ Handles globally visible entities.void
handleSpawnMob(S0FPacketSpawnMob packetIn)
+ Spawns the mob entity at the specified location, with the specified rotation, momentum and type.void
handleSpawnObject(S0EPacketSpawnObject packetIn)
+ Spawns an instance of the objecttype indicated by the packet and sets its position and momentumvoid
handleSpawnPainting(S10PacketSpawnPainting packetIn)
+ Handles the spawning of a painting objectvoid
handleSpawnPlayer(S0CPacketSpawnPlayer packetIn)
+ Handles the creation of a nearby player entity, sets the position and held itemvoid
handleSpawnPosition(S05PacketSpawnPosition packetIn)
void
handleStatistics(S37PacketStatistics packetIn)
+ Updates the players statistics or achievementsvoid
handleTabComplete(S3APacketTabComplete packetIn)
+ Displays the available command-completion options the server knows ofvoid
handleTeams(S3EPacketTeams 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 enabledvoid
handleTimeUpdate(S03PacketTimeUpdate packetIn)
void
handleTitle(S45PacketTitle packetIn)
void
handleUpdateHealth(S06PacketUpdateHealth packetIn)
void
handleUpdateScore(S3CPacketUpdateScore packetIn)
+ Either updates the score with a specified value or removes the score for an objectivevoid
handleUpdateSign(S33PacketUpdateSign packetIn)
+ Updates a specified sign with the specified text linesvoid
handleUpdateTileEntity(S35PacketUpdateTileEntity packetIn)
+ Updates the NBTTagCompound metadata of instances of the following entitytypes: Mob spawners, command blocks, beacons, skulls, flowerpotvoid
handleUseBed(S0APacketUseBed packetIn)
+ Retrieves the player identified by the packet, puts him to sleep if possible (and flags whether all players are asleep)void
handleWindowItems(S30PacketWindowItems packetIn)
+ Handles the placement of a specified ItemStack in a specified container/inventory slotvoid
handleWindowProperty(S31PacketWindowProperty packetIn)
+ Sets the progressbar of the opened window to the specified valuevoid
handleWorldBorder(S44PacketWorldBorder packetIn)
void
loadPluginData(BaseData data)
PluginData
makePluginData()
void
onDisconnect(IChatComponent ichatcomponent)
+ Invoked when disconnecting, the parameter is a ChatComponent describing the reason for termination-
Methods inherited from class net.zxmushroom63.plugins.BaseData
execFuncBaseData, execFuncObject, execFuncString, getBaseData, getBaseDataArr, getBoolean, getBooleanArr, getByte, getByteArr, getChar, getCharArr, getDouble, getDoubleArr, getFloat, getFloatArr, getInt, getIntArr, getObject, getObjectArr, getShort, getShortArr, getString, getStringArr, has, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, setCallbackBoolean, setCallbackBooleanArr, setCallbackBooleanArrWithDataArg, setCallbackBooleanWithDataArg, setCallbackDouble, setCallbackDoubleArr, setCallbackDoubleArrWithDataArg, setCallbackDoubleWithDataArg, setCallbackFloat, setCallbackFloatArr, setCallbackFloatArrWithDataArg, setCallbackFloatWithDataArg, setCallbackInt, setCallbackIntArr, setCallbackIntArrWithDataArg, setCallbackIntWithDataArg, setCallbackObject, setCallbackObjectArr, setCallbackObjectArrWithDataArg, setCallbackObjectWithDataArg, setCallbackString, setCallbackStringArr, setCallbackStringArrWithDataArg, setCallbackStringWithDataArg, setCallbackVoid, setCallbackVoidWithDataArg, setNull
-
-
-
-
Constructor Detail
-
NetHandlerPlayClient
public NetHandlerPlayClient(Minecraft mcIn, GuiScreen parGuiScreen, EaglercraftNetworkManager parNetworkManager, GameProfile parGameProfile)
-
-
Method Detail
-
cleanup
public void cleanup()
+ Clears the WorldClient instance associated with this NetHandlerPlayClient
-
getSkinCache
public ServerSkinCache getSkinCache()
-
loadPluginData
public void loadPluginData(BaseData data)
-
makePluginData
public PluginData makePluginData()
-
handleJoinGame
public void handleJoinGame(S01PacketJoinGame packetIn)
+ Registers some server properties (gametype,hardcore-mode,terraintype,difficulty,player limit), creates a new WorldClient and sets the player initial dimension- Specified by:
handleJoinGame
in interfaceINetHandlerPlayClient
-
handleSpawnObject
public void handleSpawnObject(S0EPacketSpawnObject packetIn)
+ Spawns an instance of the objecttype indicated by the packet and sets its position and momentum- Specified by:
handleSpawnObject
in interfaceINetHandlerPlayClient
-
handleSpawnExperienceOrb
public void handleSpawnExperienceOrb(S11PacketSpawnExperienceOrb packetIn)
+ Spawns an experience orb and sets its value (amount of XP)- Specified by:
handleSpawnExperienceOrb
in interfaceINetHandlerPlayClient
-
handleSpawnGlobalEntity
public void handleSpawnGlobalEntity(S2CPacketSpawnGlobalEntity packetIn)
+ Handles globally visible entities. Used in vanilla for lightning bolts- Specified by:
handleSpawnGlobalEntity
in interfaceINetHandlerPlayClient
-
handleSpawnPainting
public void handleSpawnPainting(S10PacketSpawnPainting packetIn)
+ Handles the spawning of a painting object- Specified by:
handleSpawnPainting
in interfaceINetHandlerPlayClient
-
handleEntityVelocity
public void handleEntityVelocity(S12PacketEntityVelocity packetIn)
+ Sets the velocity of the specified entity to the specified value- Specified by:
handleEntityVelocity
in interfaceINetHandlerPlayClient
-
handleEntityMetadata
public void handleEntityMetadata(S1CPacketEntityMetadata packetIn)
+ Invoked when the server registers new proximate objects in your watchlist or when objects in your watchlist have changed -> Registers any changes locally- Specified by:
handleEntityMetadata
in interfaceINetHandlerPlayClient
-
handleSpawnPlayer
public void handleSpawnPlayer(S0CPacketSpawnPlayer packetIn)
+ Handles the creation of a nearby player entity, sets the position and held item- Specified by:
handleSpawnPlayer
in interfaceINetHandlerPlayClient
-
handleEntityTeleport
public void handleEntityTeleport(S18PacketEntityTeleport packetIn)
+ Updates an entity's position and rotation as specified by the packet- Specified by:
handleEntityTeleport
in interfaceINetHandlerPlayClient
-
handleHeldItemChange
public void handleHeldItemChange(S09PacketHeldItemChange packetIn)
+ Updates which hotbar slot of the player is currently selected- Specified by:
handleHeldItemChange
in interfaceINetHandlerPlayClient
-
handleEntityMovement
public void handleEntityMovement(S14PacketEntity packetIn)
+ Updates the specified entity's position by the specified relative moment and absolute rotation. Note that subclassing of the packet allows for the specification of a subset of this data (e.g. only rel. position, abs. rotation or both).- Specified by:
handleEntityMovement
in interfaceINetHandlerPlayClient
-
handleEntityHeadLook
public void handleEntityHeadLook(S19PacketEntityHeadLook packetIn)
+ Updates the direction in which the specified entity is looking, normally this head rotation is independent of the rotation of the entity itself- Specified by:
handleEntityHeadLook
in interfaceINetHandlerPlayClient
-
handleDestroyEntities
public void handleDestroyEntities(S13PacketDestroyEntities packetIn)
+ Locally eliminates the entities. Invoked by the server when the items are in fact destroyed, or the player is no longer registered as required to monitor them. The latter happens when distance between the player and item increases beyond a certain treshold (typically the viewing distance)- Specified by:
handleDestroyEntities
in interfaceINetHandlerPlayClient
-
handlePlayerPosLook
public void handlePlayerPosLook(S08PacketPlayerPosLook packetIn)
+ Handles changes in player positioning and rotation such as when travelling to a new dimension, (re)spawning, mounting horses etc. Seems to immediately reply to the server with the clients post-processing perspective on the player positioning- Specified by:
handlePlayerPosLook
in interfaceINetHandlerPlayClient
-
handleMultiBlockChange
public void handleMultiBlockChange(S22PacketMultiBlockChange packetIn)
+ Received from the servers PlayerManager if between 1 and 64 blocks in a chunk are changed. If only one block requires an update, the server sends S23PacketBlockChange and if 64 or more blocks are changed, the server sends S21PacketChunkData- Specified by:
handleMultiBlockChange
in interfaceINetHandlerPlayClient
-
handleChunkData
public void handleChunkData(S21PacketChunkData packetIn)
+ Updates the specified chunk with the supplied data, marks it for re-rendering and lighting recalculation- Specified by:
handleChunkData
in interfaceINetHandlerPlayClient
-
handleBlockChange
public void handleBlockChange(S23PacketBlockChange packetIn)
+ Updates the block and metadata and generates a blockupdate (and notify the clients)- Specified by:
handleBlockChange
in interfaceINetHandlerPlayClient
-
handleDisconnect
public void handleDisconnect(S40PacketDisconnect packetIn)
+ Closes the network channel- Specified by:
handleDisconnect
in interfaceINetHandlerPlayClient
-
onDisconnect
public void onDisconnect(IChatComponent ichatcomponent)
+ Invoked when disconnecting, the parameter is a ChatComponent describing the reason for termination- Specified by:
onDisconnect
in interfaceINetHandler
-
addToSendQueue
public void addToSendQueue(Packet parPacket)
-
handleCollectItem
public void handleCollectItem(S0DPacketCollectItem packetIn)
- Specified by:
handleCollectItem
in interfaceINetHandlerPlayClient
-
handleChat
public void handleChat(S02PacketChat packetIn)
+ Prints a chatmessage in the chat GUI- Specified by:
handleChat
in interfaceINetHandlerPlayClient
-
handleAnimation
public void handleAnimation(S0BPacketAnimation 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- Specified by:
handleAnimation
in interfaceINetHandlerPlayClient
-
handleUseBed
public void handleUseBed(S0APacketUseBed packetIn)
+ Retrieves the player identified by the packet, puts him to sleep if possible (and flags whether all players are asleep)- Specified by:
handleUseBed
in interfaceINetHandlerPlayClient
-
handleSpawnMob
public void handleSpawnMob(S0FPacketSpawnMob packetIn)
+ Spawns the mob entity at the specified location, with the specified rotation, momentum and type. Updates the entities Datawatchers with the entity metadata specified in the packet- Specified by:
handleSpawnMob
in interfaceINetHandlerPlayClient
-
handleTimeUpdate
public void handleTimeUpdate(S03PacketTimeUpdate packetIn)
- Specified by:
handleTimeUpdate
in interfaceINetHandlerPlayClient
-
handleSpawnPosition
public void handleSpawnPosition(S05PacketSpawnPosition packetIn)
- Specified by:
handleSpawnPosition
in interfaceINetHandlerPlayClient
-
handleEntityAttach
public void handleEntityAttach(S1BPacketEntityAttach packetIn)
- Specified by:
handleEntityAttach
in interfaceINetHandlerPlayClient
-
handleEntityStatus
public void handleEntityStatus(S19PacketEntityStatus 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 (...)- Specified by:
handleEntityStatus
in interfaceINetHandlerPlayClient
-
handleUpdateHealth
public void handleUpdateHealth(S06PacketUpdateHealth packetIn)
- Specified by:
handleUpdateHealth
in interfaceINetHandlerPlayClient
-
handleSetExperience
public void handleSetExperience(S1FPacketSetExperience packetIn)
- Specified by:
handleSetExperience
in interfaceINetHandlerPlayClient
-
handleRespawn
public void handleRespawn(S07PacketRespawn packetIn)
- Specified by:
handleRespawn
in interfaceINetHandlerPlayClient
-
handleExplosion
public void handleExplosion(S27PacketExplosion packetIn)
+ Initiates a new explosion (sound, particles, drop spawn) for the affected blocks indicated by the packet.- Specified by:
handleExplosion
in interfaceINetHandlerPlayClient
-
handleOpenWindow
public void handleOpenWindow(S2DPacketOpenWindow packetIn)
+ Displays a GUI by ID. In order starting from id 0: Chest, Workbench, Furnace, Dispenser, Enchanting table, Brewing stand, Villager merchant, Beacon, Anvil, Hopper, Dropper, Horse- Specified by:
handleOpenWindow
in interfaceINetHandlerPlayClient
-
handleSetSlot
public void handleSetSlot(S2FPacketSetSlot packetIn)
+ Handles pickin up an ItemStack or dropping one in your inventory or an open (non-creative) container- Specified by:
handleSetSlot
in interfaceINetHandlerPlayClient
-
handleConfirmTransaction
public void handleConfirmTransaction(S32PacketConfirmTransaction 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.- Specified by:
handleConfirmTransaction
in interfaceINetHandlerPlayClient
-
handleWindowItems
public void handleWindowItems(S30PacketWindowItems packetIn)
+ Handles the placement of a specified ItemStack in a specified container/inventory slot- Specified by:
handleWindowItems
in interfaceINetHandlerPlayClient
-
handleSignEditorOpen
public void handleSignEditorOpen(S36PacketSignEditorOpen packetIn)
+ Creates a sign in the specified location if it didn't exist and opens the GUI to edit its text- Specified by:
handleSignEditorOpen
in interfaceINetHandlerPlayClient
-
handleUpdateSign
public void handleUpdateSign(S33PacketUpdateSign packetIn)
+ Updates a specified sign with the specified text lines- Specified by:
handleUpdateSign
in interfaceINetHandlerPlayClient
-
handleUpdateTileEntity
public void handleUpdateTileEntity(S35PacketUpdateTileEntity packetIn)
+ Updates the NBTTagCompound metadata of instances of the following entitytypes: Mob spawners, command blocks, beacons, skulls, flowerpot- Specified by:
handleUpdateTileEntity
in interfaceINetHandlerPlayClient
-
handleWindowProperty
public void handleWindowProperty(S31PacketWindowProperty packetIn)
+ Sets the progressbar of the opened window to the specified value- Specified by:
handleWindowProperty
in interfaceINetHandlerPlayClient
-
handleEntityEquipment
public void handleEntityEquipment(S04PacketEntityEquipment packetIn)
- Specified by:
handleEntityEquipment
in interfaceINetHandlerPlayClient
-
handleCloseWindow
public void handleCloseWindow(S2EPacketCloseWindow packetIn)
+ Resets the ItemStack held in hand and closes the window that is opened- Specified by:
handleCloseWindow
in interfaceINetHandlerPlayClient
-
handleBlockAction
public void handleBlockAction(S24PacketBlockAction 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- Specified by:
handleBlockAction
in interfaceINetHandlerPlayClient
-
handleBlockBreakAnim
public void handleBlockBreakAnim(S25PacketBlockBreakAnim packetIn)
+ Updates all registered IWorldAccess instances with destroyBlockInWorldPartially- Specified by:
handleBlockBreakAnim
in interfaceINetHandlerPlayClient
-
handleMapChunkBulk
public void handleMapChunkBulk(S26PacketMapChunkBulk packetIn)
- Specified by:
handleMapChunkBulk
in interfaceINetHandlerPlayClient
-
handleChangeGameState
public void handleChangeGameState(S2BPacketChangeGameState packetIn)
- Specified by:
handleChangeGameState
in interfaceINetHandlerPlayClient
-
handleMaps
public void handleMaps(S34PacketMaps packetIn)
+ Updates the worlds MapStorage with the specified MapData for the specified map-identifier and invokes a MapItemRenderer for it- Specified by:
handleMaps
in interfaceINetHandlerPlayClient
-
handleEffect
public void handleEffect(S28PacketEffect packetIn)
- Specified by:
handleEffect
in interfaceINetHandlerPlayClient
-
handleStatistics
public void handleStatistics(S37PacketStatistics packetIn)
+ Updates the players statistics or achievements- Specified by:
handleStatistics
in interfaceINetHandlerPlayClient
-
handleEntityEffect
public void handleEntityEffect(S1DPacketEntityEffect packetIn)
- Specified by:
handleEntityEffect
in interfaceINetHandlerPlayClient
-
handleCombatEvent
public void handleCombatEvent(S42PacketCombatEvent packetIn)
- Specified by:
handleCombatEvent
in interfaceINetHandlerPlayClient
-
handleServerDifficulty
public void handleServerDifficulty(S41PacketServerDifficulty packetIn)
- Specified by:
handleServerDifficulty
in interfaceINetHandlerPlayClient
-
handleCamera
public void handleCamera(S43PacketCamera packetIn)
- Specified by:
handleCamera
in interfaceINetHandlerPlayClient
-
handleWorldBorder
public void handleWorldBorder(S44PacketWorldBorder packetIn)
- Specified by:
handleWorldBorder
in interfaceINetHandlerPlayClient
-
handleTitle
public void handleTitle(S45PacketTitle packetIn)
- Specified by:
handleTitle
in interfaceINetHandlerPlayClient
-
handleSetCompressionLevel
public void handleSetCompressionLevel(S46PacketSetCompressionLevel packetIn)
- Specified by:
handleSetCompressionLevel
in interfaceINetHandlerPlayClient
-
handlePlayerListHeaderFooter
public void handlePlayerListHeaderFooter(S47PacketPlayerListHeaderFooter packetIn)
- Specified by:
handlePlayerListHeaderFooter
in interfaceINetHandlerPlayClient
-
handleRemoveEntityEffect
public void handleRemoveEntityEffect(S1EPacketRemoveEntityEffect packetIn)
- Specified by:
handleRemoveEntityEffect
in interfaceINetHandlerPlayClient
-
handlePlayerListItem
public void handlePlayerListItem(S38PacketPlayerListItem packetIn)
- Specified by:
handlePlayerListItem
in interfaceINetHandlerPlayClient
-
handleKeepAlive
public void handleKeepAlive(S00PacketKeepAlive packetIn)
- Specified by:
handleKeepAlive
in interfaceINetHandlerPlayClient
-
handlePlayerAbilities
public void handlePlayerAbilities(S39PacketPlayerAbilities packetIn)
- Specified by:
handlePlayerAbilities
in interfaceINetHandlerPlayClient
-
handleTabComplete
public void handleTabComplete(S3APacketTabComplete packetIn)
+ Displays the available command-completion options the server knows of- Specified by:
handleTabComplete
in interfaceINetHandlerPlayClient
-
handleSoundEffect
public void handleSoundEffect(S29PacketSoundEffect packetIn)
- Specified by:
handleSoundEffect
in interfaceINetHandlerPlayClient
-
handleResourcePack
public void handleResourcePack(S48PacketResourcePackSend packetIn)
- Specified by:
handleResourcePack
in interfaceINetHandlerPlayClient
-
handleEntityNBT
public void handleEntityNBT(S49PacketUpdateEntityNBT packetIn)
- Specified by:
handleEntityNBT
in interfaceINetHandlerPlayClient
-
handleCustomPayload
public void handleCustomPayload(S3FPacketCustomPayload packetIn)
+ Handles packets that have room for a channel specification. Vanilla implemented channels are "MC|TrList" to acquire a MerchantRecipeList trades for a villager merchant, "MC|Brand" which sets the server brand? on the player instance and finally "MC|RPack" which the server uses to communicate the identifier of the default server resourcepack for the client to load.- Specified by:
handleCustomPayload
in interfaceINetHandlerPlayClient
-
handleScoreboardObjective
public void handleScoreboardObjective(S3BPacketScoreboardObjective packetIn)
+ May create a scoreboard objective, remove an objective from the scoreboard or update an objectives' displayname- Specified by:
handleScoreboardObjective
in interfaceINetHandlerPlayClient
-
handleUpdateScore
public void handleUpdateScore(S3CPacketUpdateScore packetIn)
+ Either updates the score with a specified value or removes the score for an objective- Specified by:
handleUpdateScore
in interfaceINetHandlerPlayClient
-
handleDisplayScoreboard
public void handleDisplayScoreboard(S3DPacketDisplayScoreboard packetIn)
+ Removes or sets the ScoreObjective to be displayed at a particular scoreboard position (list, sidebar, below name)- Specified by:
handleDisplayScoreboard
in interfaceINetHandlerPlayClient
-
handleTeams
public void handleTeams(S3EPacketTeams 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- Specified by:
handleTeams
in interfaceINetHandlerPlayClient
-
handleParticles
public void handleParticles(S2APacketParticles packetIn)
+ Spawns a specified number of particles at the specified location with a randomized displacement according to specified bounds- Specified by:
handleParticles
in interfaceINetHandlerPlayClient
-
handleEntityProperties
public void handleEntityProperties(S20PacketEntityProperties 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.- Specified by:
handleEntityProperties
in interfaceINetHandlerPlayClient
-
getNetworkManager
public EaglercraftNetworkManager getNetworkManager()
+ Returns this the NetworkManager instance registered with this NetworkHandlerPlayClient
-
getPlayerInfoMap
public java.util.Collection<NetworkPlayerInfo> getPlayerInfoMap()
-
getPlayerInfo
public NetworkPlayerInfo getPlayerInfo(EaglercraftUUID parUUID)
+ Gets the client's description information about another player on the server.
-
getPlayerInfo
public NetworkPlayerInfo getPlayerInfo(java.lang.String parString1)
+ Gets the client's description information about another player on the server.
-
getGameProfile
public GameProfile getGameProfile()
-
-