Struct Stack
pub struct Stack {
pub item: ItemKey,
pub count: u32,
pub components: String,
}Expand description
An item the panel shows (panel_items): its id
(minecraft:diamond), a count (1 draws none) and its components beyond
the item’s own, in vanilla’s item syntax, or “”.
Fields§
§item: ItemKeyThe item identity, resolved once at load.
count: u32How many are in the stack.
components: StringThe stack’s data components, as the game’s JSON form.
Trait Implementations§
impl StructuralPartialEq for Stack
Auto Trait Implementations§
impl Freeze for Stack
impl RefUnwindSafe for Stack
impl Send for Stack
impl Sync for Stack
impl Unpin for Stack
impl UnsafeUnpin for Stack
impl UnwindSafe for Stack
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