pub enum ClientboundPacket {
Show 100 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),
AcknowledgePlayerDigging(AcknowledgePlayerDigging),
BlockBreakAnimation(BlockBreakAnimation),
UpdateBlockEntity(UpdateBlockEntity),
BlockAction(BlockAction),
BlockChange(BlockChange),
BossBar(BossBar),
ServerDifficulty(ServerDifficulty),
ChatMessage(ChatMessage),
MultiBlockChange(MultiBlockChange),
ClientboundTabComplete(ClientboundTabComplete),
DeclareCommands(DeclareCommands),
ClientboundConfirmTransaction(ClientboundConfirmTransaction),
ClientboundCloseWindow(ClientboundCloseWindow),
WindowItems(WindowItems),
WindowProperty(WindowProperty),
SetSlot(SetSlot),
SetCooldown(SetCooldown),
ClientboundPluginMessage(ClientboundPluginMessage),
NamedSoundEffect(NamedSoundEffect),
PlayDisconnect(PlayDisconnect),
EntityStatus(EntityStatus),
Explosion(Explosion),
UnloadChunk(UnloadChunk),
ChangeGameState(ChangeGameState),
OpenHorseWindow(OpenHorseWindow),
KeepAlive(KeepAlive),
ChunkData(ChunkData),
Effect(Effect),
Particle(Particle),
UpdateLight(UpdateLight),
JoinGame(JoinGame),
Map(Map),
TradeList(TradeList),
EntityRelativeMove(EntityRelativeMove),
EntityLookRelativeMove(EntityLookRelativeMove),
EntityLook(EntityLook),
Entity(Entity),
ClientboundVehicleMove(ClientboundVehicleMove),
OpenBook(OpenBook),
OpenWindow(OpenWindow),
OpenSignEditor(OpenSignEditor),
CraftRecipeResponse(CraftRecipeResponse),
PlayerAbilities(PlayerAbilities),
CombatEvent(CombatEvent),
PlayerListItem(PlayerListItem),
FacePlayer(FacePlayer),
PlayerPositionAndLook(PlayerPositionAndLook),
UnlockRecipes(UnlockRecipes),
DestroyEntities(DestroyEntities),
RemoveEntityEffect(RemoveEntityEffect),
ResourcePackSend(ResourcePackSend),
Respawn(Respawn),
EntityHeadLook(EntityHeadLook),
SelectAdvancementTab(SelectAdvancementTab),
WorldBorder(WorldBorder),
Camera(Camera),
ClientboundHeldItemChange(ClientboundHeldItemChange),
UpdateViewPosition(UpdateViewPosition),
UpdateViewDistance(UpdateViewDistance),
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),
EntitySoundEffect(EntitySoundEffect),
SoundEffect(SoundEffect),
StopSound(StopSound),
PlayerListHeaderFooter(PlayerListHeaderFooter),
NBTQueryResponse(NBTQueryResponse),
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)
AcknowledgePlayerDigging(AcknowledgePlayerDigging)
BlockBreakAnimation(BlockBreakAnimation)
UpdateBlockEntity(UpdateBlockEntity)
BlockAction(BlockAction)
BlockChange(BlockChange)
BossBar(BossBar)
ServerDifficulty(ServerDifficulty)
ChatMessage(ChatMessage)
MultiBlockChange(MultiBlockChange)
ClientboundTabComplete(ClientboundTabComplete)
DeclareCommands(DeclareCommands)
ClientboundConfirmTransaction(ClientboundConfirmTransaction)
ClientboundCloseWindow(ClientboundCloseWindow)
WindowItems(WindowItems)
WindowProperty(WindowProperty)
SetSlot(SetSlot)
SetCooldown(SetCooldown)
ClientboundPluginMessage(ClientboundPluginMessage)
NamedSoundEffect(NamedSoundEffect)
PlayDisconnect(PlayDisconnect)
EntityStatus(EntityStatus)
Explosion(Explosion)
UnloadChunk(UnloadChunk)
ChangeGameState(ChangeGameState)
OpenHorseWindow(OpenHorseWindow)
KeepAlive(KeepAlive)
ChunkData(ChunkData)
Effect(Effect)
Particle(Particle)
UpdateLight(UpdateLight)
JoinGame(JoinGame)
Map(Map)
TradeList(TradeList)
EntityRelativeMove(EntityRelativeMove)
EntityLookRelativeMove(EntityLookRelativeMove)
EntityLook(EntityLook)
Entity(Entity)
ClientboundVehicleMove(ClientboundVehicleMove)
OpenBook(OpenBook)
OpenWindow(OpenWindow)
OpenSignEditor(OpenSignEditor)
CraftRecipeResponse(CraftRecipeResponse)
PlayerAbilities(PlayerAbilities)
CombatEvent(CombatEvent)
PlayerListItem(PlayerListItem)
FacePlayer(FacePlayer)
PlayerPositionAndLook(PlayerPositionAndLook)
UnlockRecipes(UnlockRecipes)
DestroyEntities(DestroyEntities)
RemoveEntityEffect(RemoveEntityEffect)
ResourcePackSend(ResourcePackSend)
Respawn(Respawn)
EntityHeadLook(EntityHeadLook)
SelectAdvancementTab(SelectAdvancementTab)
WorldBorder(WorldBorder)
Camera(Camera)
ClientboundHeldItemChange(ClientboundHeldItemChange)
UpdateViewPosition(UpdateViewPosition)
UpdateViewDistance(UpdateViewDistance)
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)
EntitySoundEffect(EntitySoundEffect)
SoundEffect(SoundEffect)
StopSound(StopSound)
NBTQueryResponse(NBTQueryResponse)
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 duplicate 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
Source§impl PartialEq for ClientboundPacket
impl PartialEq for ClientboundPacket
impl StructuralPartialEq for ClientboundPacket
Auto Trait Implementations§
impl Freeze for ClientboundPacket
impl RefUnwindSafe for ClientboundPacket
impl Send for ClientboundPacket
impl Sync for ClientboundPacket
impl Unpin for ClientboundPacket
impl UnsafeUnpin for ClientboundPacket
impl UnwindSafe for ClientboundPacket
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more