pub struct Drop {
pub item: u16,
pub meta: Option<u8>,
pub min: u8,
pub max: u8,
}Expand description
A block’s item drop as listed by minecraft-data (no loot-table logic, no fortune).
Fields§
§item: u16Item id.
meta: Option<u8>Item metadata / damage (1.8 only); None = 0 / unspecified.
min: u8Minimum count.
max: u8Maximum count.
Trait Implementations§
impl Copy for Drop
impl Eq for Drop
impl StructuralPartialEq for Drop
Auto Trait Implementations§
impl Forget for Drop
impl Freeze for Drop
impl RefUnwindSafe for Drop
impl Send for Drop
impl Sync for Drop
impl Unpin for Drop
impl UnsafeUnpin for Drop
impl UnwindSafe for Drop
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