Enum ozelot::clientbound::ClientboundPacket
source · pub enum ClientboundPacket {
Show 93 variants
StatusResponse(StatusResponse),
StatusPong(StatusPong),
LoginDisconnect(LoginDisconnect),
EncryptionRequest(EncryptionRequest),
LoginSuccess(LoginSuccess),
SetCompression(SetCompression),
LoginPluginRequest(LoginPluginRequest),
SpawnObject(SpawnObject),
SpawnExperienceOrb(SpawnExperienceOrb),
SpawnGlobalEntity(SpawnGlobalEntity),
SpawnMob(SpawnMob),
SpawnPainting(SpawnPainting),
SpawnPlayer(SpawnPlayer),
ClientboundAnimation(ClientboundAnimation),
Statistics(Statistics),
BlockBreakAnimation(BlockBreakAnimation),
UpdateBlockEntity(UpdateBlockEntity),
BlockAction(BlockAction),
BlockChange(BlockChange),
BossBar(BossBar),
ServerDifficulty(ServerDifficulty),
ChatMessage(ChatMessage),
MultiBlockChange(MultiBlockChange),
ClientboundTabComplete(ClientboundTabComplete),
DeclareCommands(DeclareCommands),
ClientboundConfirmTransaction(ClientboundConfirmTransaction),
ClientboundCloseWindow(ClientboundCloseWindow),
OpenWindow(OpenWindow),
WindowItems(WindowItems),
WindowProperty(WindowProperty),
SetSlot(SetSlot),
SetCooldown(SetCooldown),
ClientboundPluginMessage(ClientboundPluginMessage),
NamedSoundEffect(NamedSoundEffect),
PlayDisconnect(PlayDisconnect),
EntityStatus(EntityStatus),
NBTQueryResponse(NBTQueryResponse),
Explosion(Explosion),
UnloadChunk(UnloadChunk),
ChangeGameState(ChangeGameState),
KeepAlive(KeepAlive),
ChunkData(ChunkData),
Effect(Effect),
Particle(Particle),
JoinGame(JoinGame),
Map(Map),
Entity(Entity),
EntityRelativeMove(EntityRelativeMove),
EntityLookRelativeMove(EntityLookRelativeMove),
EntityLook(EntityLook),
ClientboundVehicleMove(ClientboundVehicleMove),
OpenSignEditor(OpenSignEditor),
CraftRecipeResponse(CraftRecipeResponse),
PlayerAbilities(PlayerAbilities),
CombatEvent(CombatEvent),
PlayerListItem(PlayerListItem),
FacePlayer(FacePlayer),
PlayerPositionAndLook(PlayerPositionAndLook),
UseBed(UseBed),
UnlockRecipes(UnlockRecipes),
DestroyEntities(DestroyEntities),
RemoveEntityEffect(RemoveEntityEffect),
ResourcePackSend(ResourcePackSend),
Respawn(Respawn),
EntityHeadLook(EntityHeadLook),
SelectAdvancementTab(SelectAdvancementTab),
WorldBorder(WorldBorder),
Camera(Camera),
ClientboundHeldItemChange(ClientboundHeldItemChange),
DisplayScoreboard(DisplayScoreboard),
EntityMetadata(EntityMetadata),
AttachEntity(AttachEntity),
EntityVelocity(EntityVelocity),
EntityEquipment(EntityEquipment),
SetExperience(SetExperience),
UpdateHealth(UpdateHealth),
ScoreboardObjective(ScoreboardObjective),
SetPassengers(SetPassengers),
Teams(Teams),
UpdateScore(UpdateScore),
SpawnPosition(SpawnPosition),
TimeUpdate(TimeUpdate),
Title(Title),
StopSound(StopSound),
SoundEffect(SoundEffect),
PlayerListHeaderFooter(PlayerListHeaderFooter),
CollectItem(CollectItem),
EntityTeleport(EntityTeleport),
Advancements(Advancements),
EntityProperties(EntityProperties),
EntityEffect(EntityEffect),
DeclareRecipes(DeclareRecipes),
Tags(Tags),
}
Expand description
Represents a single packet
Variants§
StatusResponse(StatusResponse)
StatusPong(StatusPong)
LoginDisconnect(LoginDisconnect)
EncryptionRequest(EncryptionRequest)
LoginSuccess(LoginSuccess)
SetCompression(SetCompression)
LoginPluginRequest(LoginPluginRequest)
SpawnObject(SpawnObject)
SpawnExperienceOrb(SpawnExperienceOrb)
SpawnGlobalEntity(SpawnGlobalEntity)
SpawnMob(SpawnMob)
SpawnPainting(SpawnPainting)
SpawnPlayer(SpawnPlayer)
ClientboundAnimation(ClientboundAnimation)
Statistics(Statistics)
BlockBreakAnimation(BlockBreakAnimation)
UpdateBlockEntity(UpdateBlockEntity)
BlockAction(BlockAction)
BlockChange(BlockChange)
BossBar(BossBar)
ServerDifficulty(ServerDifficulty)
ChatMessage(ChatMessage)
MultiBlockChange(MultiBlockChange)
ClientboundTabComplete(ClientboundTabComplete)
DeclareCommands(DeclareCommands)
ClientboundConfirmTransaction(ClientboundConfirmTransaction)
ClientboundCloseWindow(ClientboundCloseWindow)
OpenWindow(OpenWindow)
WindowItems(WindowItems)
WindowProperty(WindowProperty)
SetSlot(SetSlot)
SetCooldown(SetCooldown)
ClientboundPluginMessage(ClientboundPluginMessage)
NamedSoundEffect(NamedSoundEffect)
PlayDisconnect(PlayDisconnect)
EntityStatus(EntityStatus)
NBTQueryResponse(NBTQueryResponse)
Explosion(Explosion)
UnloadChunk(UnloadChunk)
ChangeGameState(ChangeGameState)
KeepAlive(KeepAlive)
ChunkData(ChunkData)
Effect(Effect)
Particle(Particle)
JoinGame(JoinGame)
Map(Map)
Entity(Entity)
EntityRelativeMove(EntityRelativeMove)
EntityLookRelativeMove(EntityLookRelativeMove)
EntityLook(EntityLook)
ClientboundVehicleMove(ClientboundVehicleMove)
OpenSignEditor(OpenSignEditor)
CraftRecipeResponse(CraftRecipeResponse)
PlayerAbilities(PlayerAbilities)
CombatEvent(CombatEvent)
PlayerListItem(PlayerListItem)
FacePlayer(FacePlayer)
PlayerPositionAndLook(PlayerPositionAndLook)
UseBed(UseBed)
UnlockRecipes(UnlockRecipes)
DestroyEntities(DestroyEntities)
RemoveEntityEffect(RemoveEntityEffect)
ResourcePackSend(ResourcePackSend)
Respawn(Respawn)
EntityHeadLook(EntityHeadLook)
SelectAdvancementTab(SelectAdvancementTab)
WorldBorder(WorldBorder)
Camera(Camera)
ClientboundHeldItemChange(ClientboundHeldItemChange)
DisplayScoreboard(DisplayScoreboard)
EntityMetadata(EntityMetadata)
AttachEntity(AttachEntity)
EntityVelocity(EntityVelocity)
EntityEquipment(EntityEquipment)
SetExperience(SetExperience)
UpdateHealth(UpdateHealth)
ScoreboardObjective(ScoreboardObjective)
SetPassengers(SetPassengers)
Teams(Teams)
UpdateScore(UpdateScore)
SpawnPosition(SpawnPosition)
TimeUpdate(TimeUpdate)
Title(Title)
StopSound(StopSound)
SoundEffect(SoundEffect)
CollectItem(CollectItem)
EntityTeleport(EntityTeleport)
Advancements(Advancements)
EntityProperties(EntityProperties)
EntityEffect(EntityEffect)
DeclareRecipes(DeclareRecipes)
Tags(Tags)
Trait Implementations§
source§impl Clone for ClientboundPacket
impl Clone for ClientboundPacket
source§fn clone(&self) -> ClientboundPacket
fn clone(&self) -> ClientboundPacket
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ClientboundPacket
impl Debug for ClientboundPacket
source§impl Display for ClientboundPacket
impl Display for ClientboundPacket
source§impl Packet for ClientboundPacket
impl Packet for ClientboundPacket
source§fn deserialize<R: Read>(r: &mut R, state: &ClientState) -> Result<Self>
fn deserialize<R: Read>(r: &mut R, state: &ClientState) -> Result<Self>
Deserializes a Read type into a packet. You usually won’t need to use this.
source§fn get_packet_name(&self) -> &str
fn get_packet_name(&self) -> &str
Returns the packet’s name
source§fn get_clientstate(&self) -> ClientState
fn get_clientstate(&self) -> ClientState
Returns the connection state in which the packet can be sent