PacketId

Enum PacketId 

Source
#[repr(u8)]
pub enum PacketId {
Show 28 variants AddEntity = 0, AddPlayer = 2, AnimateEntity = 3, BlockChangedAck = 5, BlockDestruction = 6, BlockUpdate = 9, Commands = 15, ContainerSetSlot = 19, CustomPayload = 22, GameEvent = 29, KeepAlive = 32, LevelChunkWithLight = 33, LevelEvent = 34, Login = 37, MoveEntityPos = 40, MoveEntityPosRot = 41, MoveEntityRot = 42, PlayerAbilities = 49, PlayerInfo = 55, PlayerPosition = 57, RemoveEntities = 59, RotateHead = 63, SetChunkCacheCenter = 75, SetEntityData = 80, SetEquipment = 83, SystemChat = 98, TeleportEntity = 102, UpdateTags = 107,
}

Variants§

§

AddEntity = 0

§

AddPlayer = 2

§

AnimateEntity = 3

§

BlockChangedAck = 5

§

BlockDestruction = 6

§

BlockUpdate = 9

§

Commands = 15

§

ContainerSetSlot = 19

§

CustomPayload = 22

§

GameEvent = 29

§

KeepAlive = 32

§

LevelChunkWithLight = 33

§

LevelEvent = 34

§

Login = 37

§

MoveEntityPos = 40

§

MoveEntityPosRot = 41

§

MoveEntityRot = 42

§

PlayerAbilities = 49

§

PlayerInfo = 55

§

PlayerPosition = 57

§

RemoveEntities = 59

§

RotateHead = 63

§

SetChunkCacheCenter = 75

§

SetEntityData = 80

§

SetEquipment = 83

§

SystemChat = 98

§

TeleportEntity = 102

§

UpdateTags = 107

Trait Implementations§

Source§

impl Debug for PacketId

Source§

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

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

impl IdentifiedPacket<PacketId> for AddEntity

Source§

const ID: PacketId = PacketId::AddEntity

Source§

fn get_packet_id(&self) -> PacketId

Source§

fn get_packet_id_as_u8(&self) -> u8

Source§

impl IdentifiedPacket<PacketId> for AddPlayer

Source§

const ID: PacketId = PacketId::AddPlayer

Source§

fn get_packet_id(&self) -> PacketId

Source§

fn get_packet_id_as_u8(&self) -> u8

Source§

impl IdentifiedPacket<PacketId> for AnimateEntity

Source§

const ID: PacketId = PacketId::AnimateEntity

Source§

fn get_packet_id(&self) -> PacketId

Source§

fn get_packet_id_as_u8(&self) -> u8

Source§

impl IdentifiedPacket<PacketId> for BlockChangedAck

Source§

const ID: PacketId = PacketId::BlockChangedAck

Source§

fn get_packet_id(&self) -> PacketId

Source§

fn get_packet_id_as_u8(&self) -> u8

Source§

impl IdentifiedPacket<PacketId> for BlockDestruction

Source§

const ID: PacketId = PacketId::BlockDestruction

Source§

fn get_packet_id(&self) -> PacketId

Source§

fn get_packet_id_as_u8(&self) -> u8

Source§

impl IdentifiedPacket<PacketId> for BlockUpdate

Source§

const ID: PacketId = PacketId::BlockUpdate

Source§

fn get_packet_id(&self) -> PacketId

Source§

fn get_packet_id_as_u8(&self) -> u8

Source§

impl IdentifiedPacket<PacketId> for Commands

Source§

const ID: PacketId = PacketId::Commands

Source§

fn get_packet_id(&self) -> PacketId

Source§

fn get_packet_id_as_u8(&self) -> u8

Source§

impl IdentifiedPacket<PacketId> for ContainerSetSlot<'_>

Source§

const ID: PacketId = PacketId::ContainerSetSlot

Source§

fn get_packet_id(&self) -> PacketId

Source§

fn get_packet_id_as_u8(&self) -> u8

Source§

impl IdentifiedPacket<PacketId> for CustomPayload<'_>

Source§

const ID: PacketId = PacketId::CustomPayload

Source§

fn get_packet_id(&self) -> PacketId

Source§

fn get_packet_id_as_u8(&self) -> u8

Source§

impl IdentifiedPacket<PacketId> for GameEvent

Source§

const ID: PacketId = PacketId::GameEvent

Source§

fn get_packet_id(&self) -> PacketId

Source§

fn get_packet_id_as_u8(&self) -> u8

Source§

impl IdentifiedPacket<PacketId> for KeepAlive

Source§

const ID: PacketId = PacketId::KeepAlive

Source§

fn get_packet_id(&self) -> PacketId

Source§

fn get_packet_id_as_u8(&self) -> u8

Source§

impl IdentifiedPacket<PacketId> for LevelChunkWithLight<'_>

Source§

const ID: PacketId = PacketId::LevelChunkWithLight

Source§

fn get_packet_id(&self) -> PacketId

Source§

fn get_packet_id_as_u8(&self) -> u8

Source§

impl IdentifiedPacket<PacketId> for LevelEvent

Source§

const ID: PacketId = PacketId::LevelEvent

Source§

fn get_packet_id(&self) -> PacketId

Source§

fn get_packet_id_as_u8(&self) -> u8

Source§

impl IdentifiedPacket<PacketId> for Login<'_>

Source§

const ID: PacketId = PacketId::Login

Source§

fn get_packet_id(&self) -> PacketId

Source§

fn get_packet_id_as_u8(&self) -> u8

Source§

impl IdentifiedPacket<PacketId> for MoveEntityPos

Source§

const ID: PacketId = PacketId::MoveEntityPos

Source§

fn get_packet_id(&self) -> PacketId

Source§

fn get_packet_id_as_u8(&self) -> u8

Source§

impl IdentifiedPacket<PacketId> for MoveEntityPosRot

Source§

const ID: PacketId = PacketId::MoveEntityPosRot

Source§

fn get_packet_id(&self) -> PacketId

Source§

fn get_packet_id_as_u8(&self) -> u8

Source§

impl IdentifiedPacket<PacketId> for MoveEntityRot

Source§

const ID: PacketId = PacketId::MoveEntityRot

Source§

fn get_packet_id(&self) -> PacketId

Source§

fn get_packet_id_as_u8(&self) -> u8

Source§

impl IdentifiedPacket<PacketId> for PlayerAbilities

Source§

const ID: PacketId = PacketId::PlayerAbilities

Source§

fn get_packet_id(&self) -> PacketId

Source§

fn get_packet_id_as_u8(&self) -> u8

Source§

impl IdentifiedPacket<PacketId> for PlayerInfo<'_>

Source§

const ID: PacketId = PacketId::PlayerInfo

Source§

fn get_packet_id(&self) -> PacketId

Source§

fn get_packet_id_as_u8(&self) -> u8

Source§

impl IdentifiedPacket<PacketId> for PlayerPosition

Source§

const ID: PacketId = PacketId::PlayerPosition

Source§

fn get_packet_id(&self) -> PacketId

Source§

fn get_packet_id_as_u8(&self) -> u8

Source§

impl IdentifiedPacket<PacketId> for RemoveEntities

Source§

const ID: PacketId = PacketId::RemoveEntities

Source§

fn get_packet_id(&self) -> PacketId

Source§

fn get_packet_id_as_u8(&self) -> u8

Source§

impl IdentifiedPacket<PacketId> for RotateHead

Source§

const ID: PacketId = PacketId::RotateHead

Source§

fn get_packet_id(&self) -> PacketId

Source§

fn get_packet_id_as_u8(&self) -> u8

Source§

impl IdentifiedPacket<PacketId> for SetChunkCacheCenter

Source§

const ID: PacketId = PacketId::SetChunkCacheCenter

Source§

fn get_packet_id(&self) -> PacketId

Source§

fn get_packet_id_as_u8(&self) -> u8

Source§

impl IdentifiedPacket<PacketId> for SetEntityData<'_>

Source§

const ID: PacketId = PacketId::SetEntityData

Source§

fn get_packet_id(&self) -> PacketId

Source§

fn get_packet_id_as_u8(&self) -> u8

Source§

impl IdentifiedPacket<PacketId> for SetEquipment<'_>

Source§

const ID: PacketId = PacketId::SetEquipment

Source§

fn get_packet_id(&self) -> PacketId

Source§

fn get_packet_id_as_u8(&self) -> u8

Source§

impl IdentifiedPacket<PacketId> for SystemChat<'_>

Source§

const ID: PacketId = PacketId::SystemChat

Source§

fn get_packet_id(&self) -> PacketId

Source§

fn get_packet_id_as_u8(&self) -> u8

Source§

impl IdentifiedPacket<PacketId> for TeleportEntity

Source§

const ID: PacketId = PacketId::TeleportEntity

Source§

fn get_packet_id(&self) -> PacketId

Source§

fn get_packet_id_as_u8(&self) -> u8

Source§

impl IdentifiedPacket<PacketId> for UpdateTags<'_>

Source§

const ID: PacketId = PacketId::UpdateTags

Source§

fn get_packet_id(&self) -> PacketId

Source§

fn get_packet_id_as_u8(&self) -> u8

Source§

impl PartialEq for PacketId

Source§

fn eq(&self, other: &PacketId) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl TryFrom<u8> for PacketId

Source§

type Error = TryFromPrimitiveError<PacketId>

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

fn try_from(number: u8) -> Result<Self, TryFromPrimitiveError<Self>>

Performs the conversion.
Source§

impl TryFromPrimitive for PacketId

Source§

const NAME: &'static str = "PacketId"

Source§

type Primitive = u8

Source§

fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>

Source§

impl Eq for PacketId

Source§

impl StructuralPartialEq for PacketId

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> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

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, 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.