pub struct SetCreativeSlot {
pub slot: i16,
pub item: Slot,
}Expand description
set_creative_slot (serverbound play, id 0x10).
Fields§
§slot: i16slot
item: Slotitem
Trait Implementations§
Source§impl Clone for SetCreativeSlot
impl Clone for SetCreativeSlot
Source§impl Debug for SetCreativeSlot
impl Debug for SetCreativeSlot
Source§impl Decode for SetCreativeSlot
impl Decode for SetCreativeSlot
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 SetCreativeSlot
impl Encode for SetCreativeSlot
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<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 Generate for SetCreativeSlot
Available on crate feature testgen only.
impl Generate for SetCreativeSlot
Available on crate feature
testgen only.Source§impl Packet for SetCreativeSlot
impl Packet for SetCreativeSlot
Source§impl PartialEq for SetCreativeSlot
impl PartialEq for SetCreativeSlot
impl StructuralPartialEq for SetCreativeSlot
Auto Trait Implementations§
impl !Freeze for SetCreativeSlot
impl RefUnwindSafe for SetCreativeSlot
impl Send for SetCreativeSlot
impl Sync for SetCreativeSlot
impl Unpin for SetCreativeSlot
impl UnsafeUnpin for SetCreativeSlot
impl UnwindSafe for SetCreativeSlot
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