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