Enum ServerboundGamePacket

Source
pub enum ServerboundGamePacket
where Self: Sized,
{
Show 62 variants AcceptTeleportation(ServerboundAcceptTeleportation), BlockEntityTagQuery(ServerboundBlockEntityTagQuery), BundleItemSelected(ServerboundBundleItemSelected), ChangeDifficulty(ServerboundChangeDifficulty), ChatAck(ServerboundChatAck), ChatCommand(ServerboundChatCommand), ChatCommandSigned(ServerboundChatCommandSigned), Chat(ServerboundChat), ChatSessionUpdate(ServerboundChatSessionUpdate), ChunkBatchReceived(ServerboundChunkBatchReceived), ClientCommand(ServerboundClientCommand), ClientTickEnd(ServerboundClientTickEnd), ClientInformation(ServerboundClientInformation), CommandSuggestion(ServerboundCommandSuggestion), ConfigurationAcknowledged(ServerboundConfigurationAcknowledged), ContainerButtonClick(ServerboundContainerButtonClick), ContainerClick(ServerboundContainerClick), ContainerClose(ServerboundContainerClose), ContainerSlotStateChanged(ServerboundContainerSlotStateChanged), CookieResponse(ServerboundCookieResponse), CustomPayload(ServerboundCustomPayload), DebugSampleSubscription(ServerboundDebugSampleSubscription), EditBook(ServerboundEditBook), EntityTagQuery(ServerboundEntityTagQuery), Interact(ServerboundInteract), JigsawGenerate(ServerboundJigsawGenerate), KeepAlive(ServerboundKeepAlive), LockDifficulty(ServerboundLockDifficulty), MovePlayerPos(ServerboundMovePlayerPos), MovePlayerPosRot(ServerboundMovePlayerPosRot), MovePlayerRot(ServerboundMovePlayerRot), MovePlayerStatusOnly(ServerboundMovePlayerStatusOnly), MoveVehicle(ServerboundMoveVehicle), PaddleBoat(ServerboundPaddleBoat), PickItemFromBlock(ServerboundPickItemFromBlock), PickItemFromEntity(ServerboundPickItemFromEntity), PingRequest(ServerboundPingRequest), PlaceRecipe(ServerboundPlaceRecipe), PlayerAbilities(ServerboundPlayerAbilities), PlayerAction(ServerboundPlayerAction), PlayerCommand(ServerboundPlayerCommand), PlayerInput(ServerboundPlayerInput), PlayerLoaded(ServerboundPlayerLoaded), Pong(ServerboundPong), RecipeBookChangeSettings(ServerboundRecipeBookChangeSettings), RecipeBookSeenRecipe(ServerboundRecipeBookSeenRecipe), RenameItem(ServerboundRenameItem), ResourcePack(ServerboundResourcePack), SeenAdvancements(ServerboundSeenAdvancements), SelectTrade(ServerboundSelectTrade), SetBeacon(ServerboundSetBeacon), SetCarriedItem(ServerboundSetCarriedItem), SetCommandBlock(ServerboundSetCommandBlock), SetCommandMinecart(ServerboundSetCommandMinecart), SetCreativeModeSlot(ServerboundSetCreativeModeSlot), SetJigsawBlock(ServerboundSetJigsawBlock), SetStructureBlock(ServerboundSetStructureBlock), SignUpdate(ServerboundSignUpdate), Swing(ServerboundSwing), TeleportToEntity(ServerboundTeleportToEntity), UseItemOn(ServerboundUseItemOn), UseItem(ServerboundUseItem),
}

Variants§

§

AcceptTeleportation(ServerboundAcceptTeleportation)

§

BlockEntityTagQuery(ServerboundBlockEntityTagQuery)

§

BundleItemSelected(ServerboundBundleItemSelected)

§

ChangeDifficulty(ServerboundChangeDifficulty)

§

ChatAck(ServerboundChatAck)

§

ChatCommand(ServerboundChatCommand)

§

ChatCommandSigned(ServerboundChatCommandSigned)

§

Chat(ServerboundChat)

§

ChatSessionUpdate(ServerboundChatSessionUpdate)

§

ChunkBatchReceived(ServerboundChunkBatchReceived)

§

ClientCommand(ServerboundClientCommand)

§

ClientTickEnd(ServerboundClientTickEnd)

§

ClientInformation(ServerboundClientInformation)

§

CommandSuggestion(ServerboundCommandSuggestion)

§

ConfigurationAcknowledged(ServerboundConfigurationAcknowledged)

§

ContainerButtonClick(ServerboundContainerButtonClick)

§

ContainerClick(ServerboundContainerClick)

§

ContainerClose(ServerboundContainerClose)

§

ContainerSlotStateChanged(ServerboundContainerSlotStateChanged)

§

CookieResponse(ServerboundCookieResponse)

§

CustomPayload(ServerboundCustomPayload)

§

DebugSampleSubscription(ServerboundDebugSampleSubscription)

§

EditBook(ServerboundEditBook)

§

EntityTagQuery(ServerboundEntityTagQuery)

§

Interact(ServerboundInteract)

§

JigsawGenerate(ServerboundJigsawGenerate)

§

KeepAlive(ServerboundKeepAlive)

§

LockDifficulty(ServerboundLockDifficulty)

§

MovePlayerPos(ServerboundMovePlayerPos)

§

MovePlayerPosRot(ServerboundMovePlayerPosRot)

§

MovePlayerRot(ServerboundMovePlayerRot)

§

MovePlayerStatusOnly(ServerboundMovePlayerStatusOnly)

§

MoveVehicle(ServerboundMoveVehicle)

§

PaddleBoat(ServerboundPaddleBoat)

§

PickItemFromBlock(ServerboundPickItemFromBlock)

§

PickItemFromEntity(ServerboundPickItemFromEntity)

§

PingRequest(ServerboundPingRequest)

§

PlaceRecipe(ServerboundPlaceRecipe)

§

PlayerAbilities(ServerboundPlayerAbilities)

§

PlayerAction(ServerboundPlayerAction)

§

PlayerCommand(ServerboundPlayerCommand)

§

PlayerInput(ServerboundPlayerInput)

§

PlayerLoaded(ServerboundPlayerLoaded)

§

Pong(ServerboundPong)

§

RecipeBookChangeSettings(ServerboundRecipeBookChangeSettings)

§

RecipeBookSeenRecipe(ServerboundRecipeBookSeenRecipe)

§

RenameItem(ServerboundRenameItem)

§

ResourcePack(ServerboundResourcePack)

§

SeenAdvancements(ServerboundSeenAdvancements)

§

SelectTrade(ServerboundSelectTrade)

§

SetBeacon(ServerboundSetBeacon)

§

SetCarriedItem(ServerboundSetCarriedItem)

§

SetCommandBlock(ServerboundSetCommandBlock)

§

SetCommandMinecart(ServerboundSetCommandMinecart)

§

SetCreativeModeSlot(ServerboundSetCreativeModeSlot)

§

SetJigsawBlock(ServerboundSetJigsawBlock)

§

SetStructureBlock(ServerboundSetStructureBlock)

§

SignUpdate(ServerboundSignUpdate)

§

Swing(ServerboundSwing)

§

TeleportToEntity(ServerboundTeleportToEntity)

§

UseItemOn(ServerboundUseItemOn)

§

UseItem(ServerboundUseItem)

Trait Implementations§

Source§

impl Clone for ServerboundGamePacket
where Self: Sized,

Source§

fn clone(&self) -> ServerboundGamePacket

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for ServerboundGamePacket
where Self: Sized,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Packet<ServerboundGamePacket> for ServerboundAcceptTeleportation

Source§

impl Packet<ServerboundGamePacket> for ServerboundBlockEntityTagQuery

Source§

impl Packet<ServerboundGamePacket> for ServerboundBundleItemSelected

Source§

impl Packet<ServerboundGamePacket> for ServerboundChangeDifficulty

Source§

impl Packet<ServerboundGamePacket> for ServerboundChat

Source§

impl Packet<ServerboundGamePacket> for ServerboundChatAck

Source§

impl Packet<ServerboundGamePacket> for ServerboundChatCommand

Source§

impl Packet<ServerboundGamePacket> for ServerboundChatCommandSigned

Source§

impl Packet<ServerboundGamePacket> for ServerboundChatSessionUpdate

Source§

impl Packet<ServerboundGamePacket> for ServerboundChunkBatchReceived

Source§

impl Packet<ServerboundGamePacket> for ServerboundClientCommand

Source§

impl Packet<ServerboundGamePacket> for ServerboundClientInformation

Source§

impl Packet<ServerboundGamePacket> for ServerboundClientTickEnd

Source§

impl Packet<ServerboundGamePacket> for ServerboundCommandSuggestion

Source§

impl Packet<ServerboundGamePacket> for ServerboundConfigurationAcknowledged

Source§

impl Packet<ServerboundGamePacket> for ServerboundContainerButtonClick

Source§

impl Packet<ServerboundGamePacket> for ServerboundContainerClick

Source§

impl Packet<ServerboundGamePacket> for ServerboundContainerClose

Source§

impl Packet<ServerboundGamePacket> for ServerboundContainerSlotStateChanged

Source§

impl Packet<ServerboundGamePacket> for ServerboundCookieResponse

Source§

impl Packet<ServerboundGamePacket> for ServerboundCustomPayload

Source§

impl Packet<ServerboundGamePacket> for ServerboundDebugSampleSubscription

Source§

impl Packet<ServerboundGamePacket> for ServerboundEditBook

Source§

impl Packet<ServerboundGamePacket> for ServerboundEntityTagQuery

Source§

impl Packet<ServerboundGamePacket> for ServerboundGamePacket

Source§

fn into_variant(self) -> ServerboundGamePacket

No-op, exists so you can pass a packet enum when a Packet<> is expected.

Source§

impl Packet<ServerboundGamePacket> for ServerboundInteract

Source§

impl Packet<ServerboundGamePacket> for ServerboundJigsawGenerate

Source§

impl Packet<ServerboundGamePacket> for ServerboundKeepAlive

Source§

impl Packet<ServerboundGamePacket> for ServerboundLockDifficulty

Source§

impl Packet<ServerboundGamePacket> for ServerboundMovePlayerPos

Source§

impl Packet<ServerboundGamePacket> for ServerboundMovePlayerPosRot

Source§

impl Packet<ServerboundGamePacket> for ServerboundMovePlayerRot

Source§

impl Packet<ServerboundGamePacket> for ServerboundMovePlayerStatusOnly

Source§

impl Packet<ServerboundGamePacket> for ServerboundMoveVehicle

Source§

impl Packet<ServerboundGamePacket> for ServerboundPaddleBoat

Source§

impl Packet<ServerboundGamePacket> for ServerboundPickItemFromBlock

Source§

impl Packet<ServerboundGamePacket> for ServerboundPickItemFromEntity

Source§

impl Packet<ServerboundGamePacket> for ServerboundPingRequest

Source§

impl Packet<ServerboundGamePacket> for ServerboundPlaceRecipe

Source§

impl Packet<ServerboundGamePacket> for ServerboundPlayerAbilities

Source§

impl Packet<ServerboundGamePacket> for ServerboundPlayerAction

Source§

impl Packet<ServerboundGamePacket> for ServerboundPlayerCommand

Source§

impl Packet<ServerboundGamePacket> for ServerboundPlayerInput

Source§

impl Packet<ServerboundGamePacket> for ServerboundPlayerLoaded

Source§

impl Packet<ServerboundGamePacket> for ServerboundPong

Source§

impl Packet<ServerboundGamePacket> for ServerboundRecipeBookChangeSettings

Source§

impl Packet<ServerboundGamePacket> for ServerboundRecipeBookSeenRecipe

Source§

impl Packet<ServerboundGamePacket> for ServerboundRenameItem

Source§

impl Packet<ServerboundGamePacket> for ServerboundResourcePack

Source§

impl Packet<ServerboundGamePacket> for ServerboundSeenAdvancements

Source§

impl Packet<ServerboundGamePacket> for ServerboundSelectTrade

Source§

impl Packet<ServerboundGamePacket> for ServerboundSetBeacon

Source§

impl Packet<ServerboundGamePacket> for ServerboundSetCarriedItem

Source§

impl Packet<ServerboundGamePacket> for ServerboundSetCommandBlock

Source§

impl Packet<ServerboundGamePacket> for ServerboundSetCommandMinecart

Source§

impl Packet<ServerboundGamePacket> for ServerboundSetCreativeModeSlot

Source§

impl Packet<ServerboundGamePacket> for ServerboundSetJigsawBlock

Source§

impl Packet<ServerboundGamePacket> for ServerboundSetStructureBlock

Source§

impl Packet<ServerboundGamePacket> for ServerboundSignUpdate

Source§

impl Packet<ServerboundGamePacket> for ServerboundSwing

Source§

impl Packet<ServerboundGamePacket> for ServerboundTeleportToEntity

Source§

impl Packet<ServerboundGamePacket> for ServerboundUseItem

Source§

impl Packet<ServerboundGamePacket> for ServerboundUseItemOn

Source§

impl ProtocolPacket for ServerboundGamePacket

Source§

fn read( id: u32, buf: &mut Cursor<&[u8]>, ) -> Result<ServerboundGamePacket, Box<ReadPacketError>>
where Self: Sized,

Read a packet by its id, ConnectionProtocol, and flow.

Source§

fn id(&self) -> u32

Source§

fn name(&self) -> &'static str

Returns Mojang’s resource name for the packet. Read more
Source§

fn write(&self, buf: &mut impl Write) -> Result<(), Error>

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dst: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<T> Downcast for T
where T: Any,

§

fn into_any(self: Box<T>) -> Box<dyn Any>

Convert Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.
§

fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>

Convert Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be further downcast into Rc<ConcreteType> where ConcreteType implements Trait.
§

fn as_any(&self) -> &(dyn Any + 'static)

Convert &Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &Any’s vtable from &Trait’s.
§

fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)

Convert &mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &mut Any’s vtable from &mut Trait’s.
§

impl<T> DowncastSync for T
where T: Any + Send + Sync,

§

fn into_any_arc(self: Arc<T>) -> Arc<dyn Any + Send + Sync>

Convert Arc<Trait> (where Trait: Downcast) to Arc<Any>. Arc<Any> can then be further downcast into Arc<ConcreteType> where ConcreteType implements Trait.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<T> TypeData for T
where T: 'static + Send + Sync + Clone,

§

fn clone_type_data(&self) -> Box<dyn TypeData>

§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

impl<T> ConditionalSend for T
where T: Send,

§

impl<T> ErasedDestructor for T
where T: 'static,

§

impl<T> MaybeSendSync for T