pub enum ServerboundPlayPacket {
Show 26 variants
KeepAlive(KeepAlive),
Chat(Chat),
UseEntity(UseEntity),
Flying(Flying),
Position(Position),
Look(Look),
PositionLook(PositionLook),
BlockDig(BlockDig),
BlockPlace(BlockPlace),
HeldItemSlot(HeldItemSlot),
ArmAnimation(ArmAnimation),
EntityAction(EntityAction),
SteerVehicle(SteerVehicle),
CloseWindow(CloseWindow),
WindowClick(WindowClick),
Transaction(Transaction),
SetCreativeSlot(SetCreativeSlot),
EnchantItem(EnchantItem),
UpdateSign(UpdateSign),
Abilities(Abilities),
TabComplete(TabComplete),
Settings(Settings),
ClientCommand(ClientCommand),
CustomPayload(CustomPayload),
Spectate(Spectate),
ResourcePackReceive(ResourcePackReceive),
}Expand description
Every Serverbound packet of the Play state.
Variants§
KeepAlive(KeepAlive)
keep_alive
Chat(Chat)
chat
UseEntity(UseEntity)
use_entity
Flying(Flying)
flying
Position(Position)
position
Look(Look)
look
PositionLook(PositionLook)
position_look
BlockDig(BlockDig)
block_dig
BlockPlace(BlockPlace)
block_place
HeldItemSlot(HeldItemSlot)
held_item_slot
ArmAnimation(ArmAnimation)
arm_animation
EntityAction(EntityAction)
entity_action
SteerVehicle(SteerVehicle)
steer_vehicle
CloseWindow(CloseWindow)
close_window
WindowClick(WindowClick)
window_click
Transaction(Transaction)
transaction
SetCreativeSlot(SetCreativeSlot)
set_creative_slot
EnchantItem(EnchantItem)
enchant_item
UpdateSign(UpdateSign)
update_sign
Abilities(Abilities)
abilities
TabComplete(TabComplete)
tab_complete
Settings(Settings)
settings
ClientCommand(ClientCommand)
client_command
CustomPayload(CustomPayload)
custom_payload
Spectate(Spectate)
spectate
ResourcePackReceive(ResourcePackReceive)
resource_pack_receive
Implementations§
Trait Implementations§
Source§impl Clone for ServerboundPlayPacket
impl Clone for ServerboundPlayPacket
Source§impl Debug for ServerboundPlayPacket
impl Debug for ServerboundPlayPacket
Source§impl From<Abilities> for ServerboundPlayPacket
impl From<Abilities> for ServerboundPlayPacket
Source§impl From<ArmAnimation> for ServerboundPlayPacket
impl From<ArmAnimation> for ServerboundPlayPacket
Source§fn from(p: ArmAnimation) -> Self
fn from(p: ArmAnimation) -> Self
Converts to this type from the input type.
Source§impl From<BlockDig> for ServerboundPlayPacket
impl From<BlockDig> for ServerboundPlayPacket
Source§impl From<BlockPlace> for ServerboundPlayPacket
impl From<BlockPlace> for ServerboundPlayPacket
Source§fn from(p: BlockPlace) -> Self
fn from(p: BlockPlace) -> Self
Converts to this type from the input type.
Source§impl From<Chat> for ServerboundPlayPacket
impl From<Chat> for ServerboundPlayPacket
Source§impl From<ClientCommand> for ServerboundPlayPacket
impl From<ClientCommand> for ServerboundPlayPacket
Source§fn from(p: ClientCommand) -> Self
fn from(p: ClientCommand) -> Self
Converts to this type from the input type.
Source§impl From<CloseWindow> for ServerboundPlayPacket
impl From<CloseWindow> for ServerboundPlayPacket
Source§fn from(p: CloseWindow) -> Self
fn from(p: CloseWindow) -> Self
Converts to this type from the input type.
Source§impl From<CustomPayload> for ServerboundPlayPacket
impl From<CustomPayload> for ServerboundPlayPacket
Source§fn from(p: CustomPayload) -> Self
fn from(p: CustomPayload) -> Self
Converts to this type from the input type.
Source§impl From<EnchantItem> for ServerboundPlayPacket
impl From<EnchantItem> for ServerboundPlayPacket
Source§fn from(p: EnchantItem) -> Self
fn from(p: EnchantItem) -> Self
Converts to this type from the input type.
Source§impl From<EntityAction> for ServerboundPlayPacket
impl From<EntityAction> for ServerboundPlayPacket
Source§fn from(p: EntityAction) -> Self
fn from(p: EntityAction) -> Self
Converts to this type from the input type.
Source§impl From<Flying> for ServerboundPlayPacket
impl From<Flying> for ServerboundPlayPacket
Source§impl From<HeldItemSlot> for ServerboundPlayPacket
impl From<HeldItemSlot> for ServerboundPlayPacket
Source§fn from(p: HeldItemSlot) -> Self
fn from(p: HeldItemSlot) -> Self
Converts to this type from the input type.
Source§impl From<KeepAlive> for ServerboundPlayPacket
impl From<KeepAlive> for ServerboundPlayPacket
Source§impl From<Look> for ServerboundPlayPacket
impl From<Look> for ServerboundPlayPacket
Source§impl From<Position> for ServerboundPlayPacket
impl From<Position> for ServerboundPlayPacket
Source§impl From<PositionLook> for ServerboundPlayPacket
impl From<PositionLook> for ServerboundPlayPacket
Source§fn from(p: PositionLook) -> Self
fn from(p: PositionLook) -> Self
Converts to this type from the input type.
Source§impl From<ResourcePackReceive> for ServerboundPlayPacket
impl From<ResourcePackReceive> for ServerboundPlayPacket
Source§fn from(p: ResourcePackReceive) -> Self
fn from(p: ResourcePackReceive) -> Self
Converts to this type from the input type.
Source§impl From<SetCreativeSlot> for ServerboundPlayPacket
impl From<SetCreativeSlot> for ServerboundPlayPacket
Source§fn from(p: SetCreativeSlot) -> Self
fn from(p: SetCreativeSlot) -> Self
Converts to this type from the input type.
Source§impl From<Settings> for ServerboundPlayPacket
impl From<Settings> for ServerboundPlayPacket
Source§impl From<Spectate> for ServerboundPlayPacket
impl From<Spectate> for ServerboundPlayPacket
Source§impl From<SteerVehicle> for ServerboundPlayPacket
impl From<SteerVehicle> for ServerboundPlayPacket
Source§fn from(p: SteerVehicle) -> Self
fn from(p: SteerVehicle) -> Self
Converts to this type from the input type.
Source§impl From<TabComplete> for ServerboundPlayPacket
impl From<TabComplete> for ServerboundPlayPacket
Source§fn from(p: TabComplete) -> Self
fn from(p: TabComplete) -> Self
Converts to this type from the input type.
Source§impl From<Transaction> for ServerboundPlayPacket
impl From<Transaction> for ServerboundPlayPacket
Source§fn from(p: Transaction) -> Self
fn from(p: Transaction) -> Self
Converts to this type from the input type.
Source§impl From<UpdateSign> for ServerboundPlayPacket
impl From<UpdateSign> for ServerboundPlayPacket
Source§fn from(p: UpdateSign) -> Self
fn from(p: UpdateSign) -> Self
Converts to this type from the input type.
Source§impl From<UseEntity> for ServerboundPlayPacket
impl From<UseEntity> for ServerboundPlayPacket
Source§impl From<WindowClick> for ServerboundPlayPacket
impl From<WindowClick> for ServerboundPlayPacket
Source§fn from(p: WindowClick) -> Self
fn from(p: WindowClick) -> Self
Converts to this type from the input type.
Source§impl PacketSet for ServerboundPlayPacket
impl PacketSet for ServerboundPlayPacket
Source§fn decode_raw(raw: &RawPacket) -> DecodeResult<Self>
fn decode_raw(raw: &RawPacket) -> DecodeResult<Self>
Decodes a raw packet into the matching variant (strict: no trailing bytes).
Source§fn encode_body(&self, w: &mut BytesMut) -> EncodeResult
fn encode_body(&self, w: &mut BytesMut) -> EncodeResult
Encodes the packet body (without the id).
Source§impl PartialEq for ServerboundPlayPacket
impl PartialEq for ServerboundPlayPacket
impl StructuralPartialEq for ServerboundPlayPacket
Auto Trait Implementations§
impl !Freeze for ServerboundPlayPacket
impl RefUnwindSafe for ServerboundPlayPacket
impl Send for ServerboundPlayPacket
impl Sync for ServerboundPlayPacket
impl Unpin for ServerboundPlayPacket
impl UnsafeUnpin for ServerboundPlayPacket
impl UnwindSafe for ServerboundPlayPacket
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