pub struct ItemStack {
pub id: i16,
pub count: i8,
pub damage: i16,
pub nbt: Option<RawNbt>,
}Expand description
A non-empty item stack.
Fields§
§id: i16Numeric item id. Never -1 (that encodes an empty slot).
count: i8Stack size.
damage: i16Damage / metadata value.
nbt: Option<RawNbt>Item NBT, if any.
Trait Implementations§
impl Eq for ItemStack
impl StructuralPartialEq for ItemStack
Auto Trait Implementations§
impl !Freeze for ItemStack
impl Forget for ItemStack
impl RefUnwindSafe for ItemStack
impl Send for ItemStack
impl Sync for ItemStack
impl Unpin for ItemStack
impl UnsafeUnpin for ItemStack
impl UnwindSafe for ItemStack
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