pub struct BlockLootDrop {
pub item: String,
pub drop_chance: f32,
pub stack_size_range: Vec<Option<i32>>,
pub silk_touch: Option<bool>,
pub no_silk_touch: Option<bool>,
pub block_age: Option<i32>,
}
Fields§
§item: String
§drop_chance: f32
§stack_size_range: Vec<Option<i32>>
§silk_touch: Option<bool>
§no_silk_touch: Option<bool>
§block_age: Option<i32>
Trait Implementations§
Source§impl Clone for BlockLootDrop
impl Clone for BlockLootDrop
Source§fn clone(&self) -> BlockLootDrop
fn clone(&self) -> BlockLootDrop
Returns a copy of the value. Read more
1.0.0 · 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 BlockLootDrop
impl Debug for BlockLootDrop
Source§impl<'de> Deserialize<'de> for BlockLootDrop
impl<'de> Deserialize<'de> for BlockLootDrop
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for BlockLootDrop
impl RefUnwindSafe for BlockLootDrop
impl Send for BlockLootDrop
impl Sync for BlockLootDrop
impl Unpin for BlockLootDrop
impl UnwindSafe for BlockLootDrop
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