Struct HeldItemSlot
pub struct HeldItemSlot {
pub id: ItemKey,
pub count: u32,
pub slot: u32,
pub custom_name: Option<String>,
pub custom_data: Option<String>,
}Expand description
A stack as a client mod’s use events carry it.
Fields§
§id: ItemKey§count: u32§slot: u32The inventory slot: 0 to 8, the hotbar (a mod use is the main hand’s).
custom_name: Option<String>minecraft:custom_name as SNBT, when the stack has one.
custom_data: Option<String>minecraft:custom_data as SNBT, when the stack has some.
Trait Implementations§
§impl Clone for HeldItemSlot
impl Clone for HeldItemSlot
§fn clone(&self) -> HeldItemSlot
fn clone(&self) -> HeldItemSlot
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 more§impl Debug for HeldItemSlot
impl Debug for HeldItemSlot
§impl PartialEq for HeldItemSlot
impl PartialEq for HeldItemSlot
impl StructuralPartialEq for HeldItemSlot
Auto Trait Implementations§
impl Freeze for HeldItemSlot
impl RefUnwindSafe for HeldItemSlot
impl Send for HeldItemSlot
impl Sync for HeldItemSlot
impl Unpin for HeldItemSlot
impl UnsafeUnpin for HeldItemSlot
impl UnwindSafe for HeldItemSlot
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