pub struct TileEntityData {
pub location: BlockPos,
pub action: u8,
pub nbt_data: Option<RawNbt>,
}Expand description
tile_entity_data (clientbound play, id 0x35).
Fields§
§location: BlockPoslocation
action: u8action
nbt_data: Option<RawNbt>nbtData
Trait Implementations§
Source§impl Clone for TileEntityData
impl Clone for TileEntityData
Source§impl Debug for TileEntityData
impl Debug for TileEntityData
Source§impl Decode for TileEntityData
impl Decode for TileEntityData
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 TileEntityData
impl Encode for TileEntityData
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<TileEntityData> for ClientboundPlayPacket
impl From<TileEntityData> for ClientboundPlayPacket
Source§fn from(p: TileEntityData) -> Self
fn from(p: TileEntityData) -> Self
Converts to this type from the input type.
Source§impl Generate for TileEntityData
Available on crate feature testgen only.
impl Generate for TileEntityData
Available on crate feature
testgen only.Source§impl Packet for TileEntityData
impl Packet for TileEntityData
Source§impl PartialEq for TileEntityData
impl PartialEq for TileEntityData
impl StructuralPartialEq for TileEntityData
Auto Trait Implementations§
impl !Freeze for TileEntityData
impl RefUnwindSafe for TileEntityData
impl Send for TileEntityData
impl Sync for TileEntityData
impl Unpin for TileEntityData
impl UnsafeUnpin for TileEntityData
impl UnwindSafe for TileEntityData
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