pub struct EntityLootDrop {
pub item: String,
pub drop_chance: f32,
pub stack_size_range: Vec<u32>,
pub player_kill: Option<bool>,
}
Fields§
§item: String
§drop_chance: f32
§stack_size_range: Vec<u32>
§player_kill: Option<bool>
Trait Implementations§
Source§impl Clone for EntityLootDrop
impl Clone for EntityLootDrop
Source§fn clone(&self) -> EntityLootDrop
fn clone(&self) -> EntityLootDrop
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 EntityLootDrop
impl Debug for EntityLootDrop
Source§impl<'de> Deserialize<'de> for EntityLootDrop
impl<'de> Deserialize<'de> for EntityLootDrop
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 EntityLootDrop
impl RefUnwindSafe for EntityLootDrop
impl Send for EntityLootDrop
impl Sync for EntityLootDrop
impl Unpin for EntityLootDrop
impl UnwindSafe for EntityLootDrop
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