pub struct HashedItemStack {
pub item_id: u32,
pub count: u32,
pub components_to_add: Vec<HashedDataComponent>,
pub components_to_remove: Vec<DataComponentType>,
}Expand description
A non-empty item stack carried by a HashedSlot.
Fields§
§item_id: u32Numeric ID in the minecraft:item registry.
count: u32Positive item count.
components_to_add: Vec<HashedDataComponent>Component types and CRC32C hashes added to the item defaults.
components_to_remove: Vec<DataComponentType>Component types removed from the item defaults.
Implementations§
Trait Implementations§
Source§impl Clone for HashedItemStack
impl Clone for HashedItemStack
Source§fn clone(&self) -> HashedItemStack
fn clone(&self) -> HashedItemStack
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HashedItemStack
impl Debug for HashedItemStack
impl Eq for HashedItemStack
Source§impl PartialEq for HashedItemStack
impl PartialEq for HashedItemStack
impl StructuralPartialEq for HashedItemStack
Auto Trait Implementations§
impl Freeze for HashedItemStack
impl RefUnwindSafe for HashedItemStack
impl Send for HashedItemStack
impl Sync for HashedItemStack
impl Unpin for HashedItemStack
impl UnsafeUnpin for HashedItemStack
impl UnwindSafe for HashedItemStack
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