pub struct EntityMetadata {
pub entity_id: i32,
pub metadata: Vec<EntityMetadataEntry>,
}Expand description
entity_metadata (clientbound play, id 0x1c).
Fields§
§entity_id: i32entityId
metadata: Vec<EntityMetadataEntry>metadata
Trait Implementations§
Source§impl Clone for EntityMetadata
impl Clone for EntityMetadata
Source§impl Debug for EntityMetadata
impl Debug for EntityMetadata
Source§impl Decode for EntityMetadata
impl Decode for EntityMetadata
Source§fn decode(r: &mut Reader<'_>) -> DecodeResult<Self>
fn decode(r: &mut Reader<'_>) -> DecodeResult<Self>
Decodes one value, advancing the reader past it.
Source§impl Encode for EntityMetadata
impl Encode for EntityMetadata
Source§fn encode(&self, w: &mut BytesMut) -> EncodeResult
fn encode(&self, w: &mut BytesMut) -> EncodeResult
Appends the encoding of
self to w.Source§impl From<EntityMetadata> for ClientboundPlayPacket
impl From<EntityMetadata> for ClientboundPlayPacket
Source§fn from(p: EntityMetadata) -> Self
fn from(p: EntityMetadata) -> Self
Converts to this type from the input type.
Source§impl Generate for EntityMetadata
Available on crate feature testgen only.
impl Generate for EntityMetadata
Available on crate feature
testgen only.Source§impl Packet for EntityMetadata
impl Packet for EntityMetadata
Source§impl PartialEq for EntityMetadata
impl PartialEq for EntityMetadata
impl StructuralPartialEq for EntityMetadata
Auto Trait Implementations§
impl Freeze for EntityMetadata
impl RefUnwindSafe for EntityMetadata
impl Send for EntityMetadata
impl Sync for EntityMetadata
impl Unpin for EntityMetadata
impl UnsafeUnpin for EntityMetadata
impl UnwindSafe for EntityMetadata
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