pub struct Item {
pub id: i32,
pub count: i8,
pub damage: i16,
pub nbt: Option<Bytes>,
}Expand description
An item stack (equipment, item entities, metadata).
damage is the 1.8 damage/metadata value (always 0 in 1.13+, where damage lives in NBT).
nbt is a private copy of the raw NBT bytes (never a view into a packet buffer).
Fields§
§id: i32Item id.
count: i8Stack size.
damage: i161.8 damage / metadata.
nbt: Option<Bytes>Raw NBT (None = no tag).
Trait Implementations§
impl Eq for Item
impl StructuralPartialEq for Item
Auto Trait Implementations§
impl !Freeze for Item
impl Forget for Item
impl RefUnwindSafe for Item
impl Send for Item
impl Sync for Item
impl Unpin for Item
impl UnsafeUnpin for Item
impl UnwindSafe for Item
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