sul.protocol.pocket102.play

Packets related to the gameplay. Network-related packets (encapsulation, acks, nacks) are managed by RakNet and every packet in this section is encapsualted in an Encapsualted packet.

Members

Aliases

Packets
alias Packets = TypeTuple!(Login, PlayStatus, ServerToClientHandshake, ClientToServerHandshake, Disconnect, Batch, ResourcePacksInfo, ResourcePacksStackPacket, ResourcePackClientResponse, Text, SetTime, StartGame, AddPlayer, AddEntity, RemoveEntity, AddItemEntity, AddHangingEntity, TakeItemEntity, MoveEntity, MovePlayer, RiderJump, RemoveBlock, UpdateBlock, AddPainting, Explode, LevelSoundEvent, LevelEvent, BlockEvent, EntityEvent, MobEffect, UpdateAttributes, MobEquipment, MobArmorEquipment, Interact, UseItem, PlayerAction, PlayerFall, HurtArmor, SetEntityData, SetEntityMotion, SetEntityLink, SetHealth, SetSpawnPosition, Animate, Respawn, DropItem, InventoryAction, ContainerOpen, ContainerClose, ContainerSetSlot, ContainerSetData, ContainerSetContent, CraftingData, CraftingEvent, AdventureSettings, BlockEntityData, PlayerInput, FullChunkData, SetCommandsEnabled, SetDifficulty, ChangeDimension, SetPlayerGameType, PlayerList, TelemetryEvent, SpawnExperienceOrb, ClientboundMapItemData, MapInfoRequest, RequestChunkRadius, ChunkRadiusUpdated, ItemFrameDropItem, ReplaceSelectedItem, GameRulesChanged, Camera, AddItem, BossEvent, ShowCredits, AvailableCommands, CommandStep, UpdateTrade, ResourcePackDataInfo, ResourcePackChunkData, ResourcePackChunkRequest, Transfer)
Undocumented in source.

Classes

AddEntity
class AddEntity
Undocumented in source.
AddHangingEntity
class AddHangingEntity
Undocumented in source.
AddItem
class AddItem
Undocumented in source.
AddItemEntity
class AddItemEntity

Spawns a dropped item.

AddPainting
class AddPainting

Spawns a painting entity in the world.

AddPlayer
class AddPlayer

Spawns a player after adding it to the player's list using PlayerList. If PlayerList is sent after this packet the player will appear to have the same skin as the player who receives this packet. Spawning a player to itself (using the same entity id given in the StartGame packet) will crash the client's game.

AdventureSettings
class AdventureSettings

Updates the world's settings and client's permissions.

Animate
class Animate
Undocumented in source.
AvailableCommands
class AvailableCommands

Sends a list of the commands that the player can use through the CommandStep packet.

Batch
class Batch

One ore more packet, each prefixed with their varuint-encoded length, compressed with zlib's deflate algorithm.

BlockEntityData
class BlockEntityData

Sets a block entity's nbt tag, block's additional data that cannot be indicated in the block's meta. More informations about block entities and their tag format can be found on Minecraft Wiki.

BlockEvent
class BlockEvent
Undocumented in source.
BossEvent
class BossEvent

Adds, removes or modifies an entity's boss bar. The percentage of the bar is calculated using the entity's attributes for the health and the max health, updated with UpdateAttributes.

Camera
class Camera
Undocumented in source.
ChangeDimension
class ChangeDimension
Undocumented in source.
ChunkRadiusUpdated
class ChunkRadiusUpdated

Packet sent always and only in response to RequestChunkRadius to change the client's view distance.

ClientToServerHandshake
class ClientToServerHandshake
Undocumented in source.
ClientboundMapItemData
class ClientboundMapItemData
Undocumented in source.
CommandStep
class CommandStep
Undocumented in source.
ContainerClose
class ContainerClose
Undocumented in source.
ContainerOpen
class ContainerOpen
Undocumented in source.
ContainerSetContent
class ContainerSetContent
Undocumented in source.
ContainerSetData
class ContainerSetData
Undocumented in source.
ContainerSetSlot
class ContainerSetSlot
Undocumented in source.
CraftingData
class CraftingData
Undocumented in source.
CraftingEvent
class CraftingEvent
Undocumented in source.
Disconnect
class Disconnect

Disconnects the player from the server.

DropItem
class DropItem
Undocumented in source.
EntityEvent
class EntityEvent
Undocumented in source.
Explode
class Explode
Undocumented in source.
FullChunkData
class FullChunkData

Sends a 16x16 chunk to the client with its blocks, lights and block entities (tiles).

GameRulesChanged
class GameRulesChanged

Updates client's game rules. This packet is ignored if the game is not launched as Education Edition and should be avoid in favour of AdventureSettings, with which the same result can be obtained with less data.

HurtArmor
class HurtArmor
Undocumented in source.
Interact
class Interact
Undocumented in source.
InventoryAction
class InventoryAction
Undocumented in source.
ItemFrameDropItem
class ItemFrameDropItem
Undocumented in source.
LevelEvent
class LevelEvent
Undocumented in source.
LevelSoundEvent
class LevelSoundEvent

Plays a sound at a certain position.

Login
class Login

First MCPE packet sent after the establishment of the connection through raknet. It contains informations about the player.

MapInfoRequest
class MapInfoRequest
Undocumented in source.
MobArmorEquipment
class MobArmorEquipment
Undocumented in source.
MobEffect
class MobEffect
Undocumented in source.
MobEquipment
class MobEquipment

Sent when the client puts an item in its hotbar or selects a new hotbar slot.

MoveEntity
class MoveEntity
Undocumented in source.
MovePlayer
class MovePlayer
Undocumented in source.
PlayStatus
class PlayStatus

Packet sent as response to Login to indicate whether the connection has been accepted and when the player is ready to spawn in the world.

PlayerAction
class PlayerAction
Undocumented in source.
PlayerFall
class PlayerFall

Sent by the player when it falls from a distance that causes damage, that can be influenced by its armour and its effects.

PlayerInput
class PlayerInput
Undocumented in source.
PlayerList
class PlayerList

Adds or removes a player from the player's list displayed in the pause menu. This packet should be sent before spawning a player with AddPlayer, otherwise the skin is not applied.

RemoveBlock
class RemoveBlock

Instantly removes a block, either because the player is in creative mode or because the target block's hardness is 0 or lower (after all enchantments are applied).

RemoveEntity
class RemoveEntity

Despawns an entity or a player.

ReplaceSelectedItem
class ReplaceSelectedItem
Undocumented in source.
RequestChunkRadius
class RequestChunkRadius

Packet sent by the client when its view-distance is updated and when it spawns for the first time a world. A ChunkRadiusUpdate should always be sent in response, otherwise the player will not update its view distance.

ResourcePackChunkData
class ResourcePackChunkData
Undocumented in source.
ResourcePackChunkRequest
class ResourcePackChunkRequest
Undocumented in source.
ResourcePackClientResponse
class ResourcePackClientResponse
Undocumented in source.
ResourcePackDataInfo
class ResourcePackDataInfo
Undocumented in source.
ResourcePacksInfo
class ResourcePacksInfo
Undocumented in source.
ResourcePacksStackPacket
class ResourcePacksStackPacket
Undocumented in source.
Respawn
class Respawn
Undocumented in source.
RiderJump
class RiderJump
Undocumented in source.
ServerToClientHandshake
class ServerToClientHandshake
Undocumented in source.
SetCommandsEnabled
class SetCommandsEnabled

Indicates whether the cheats are enabled. If not the client cannot send commands.

SetDifficulty
class SetDifficulty

Sets the world's difficulty.

SetEntityData
class SetEntityData

Updates an entity's metadata.

SetEntityLink
class SetEntityLink
Undocumented in source.
SetEntityMotion
class SetEntityMotion

Updates an entity's motion.

SetHealth
class SetHealth
Undocumented in source.
SetPlayerGameType
class SetPlayerGameType

Sets the player's gamemode. This packet is sent by the player when it has the operator status (set in AdventureSettings.permissions) and it changes the gamemode in the settings screen.

SetSpawnPosition
class SetSpawnPosition
Undocumented in source.
SetTime
class SetTime

Sets the time.

ShowCredits
class ShowCredits
Undocumented in source.
SpawnExperienceOrb
class SpawnExperienceOrb
Undocumented in source.
StartGame
class StartGame
Undocumented in source.
TakeItemEntity
class TakeItemEntity

Plays the collection animation and despawns the entity that has been collected.

TelemetryEvent
class TelemetryEvent
Undocumented in source.
Text
class Text

Sends or receives a message from the player. Every variant's field can contain Minecraft's formatting codes. Every packet sent in the same game tick should be joined together with \n§r (line break and reset formatting), otherwise the messages will be displayed multiple times on the client's chat (see MCPE-17631).

Transfer
class Transfer

Transfers the player to another server. Once transferred the player will immediately close the connection with the transferring server, try to resolve the ip and join the new server starting a new raknet session.

UpdateAttributes
class UpdateAttributes

Updates an entity's attributes. This packet should be used when a value must be modified but it cannot be done using another packet (for example controlling the player's experience and level).

UpdateBlock
class UpdateBlock
Undocumented in source.
UpdateTrade
class UpdateTrade
Undocumented in source.
UseItem
class UseItem
Undocumented in source.

Meta