pub struct ItemInfo {
pub id: u16,
pub name: &'static str,
pub display_name: &'static str,
pub stack_size: u8,
pub max_durability: Option<u16>,
pub variations: &'static [(u8, &'static str)],
}Expand description
An item.
Fields§
§id: u16Item id.
name: &'static strRegistry name without namespace.
display_name: &'static strEnglish display name.
stack_size: u8Max stack size.
max_durability: Option<u16>Durability for damageable items.
variations: &'static [(u8, &'static str)]1.8 metadata variants (meta, display name); empty for 1.16.
Trait Implementations§
impl Copy for ItemInfo
impl Eq for ItemInfo
impl StructuralPartialEq for ItemInfo
Auto Trait Implementations§
impl Forget for ItemInfo
impl Freeze for ItemInfo
impl RefUnwindSafe for ItemInfo
impl Send for ItemInfo
impl Sync for ItemInfo
impl Unpin for ItemInfo
impl UnsafeUnpin for ItemInfo
impl UnwindSafe for ItemInfo
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