pub struct SpawnEggConfig {
pub enabled: bool,
pub spawn_egg_drop_chance: f64,
}Expand description
Configuration for the spawn egg mechanics module.
Fields§
§enabled: boolWhether this module is active.
spawn_egg_drop_chance: f64Chance (0.0 - 1.0) for an entity to drop its spawn egg.
Trait Implementations§
Source§impl Clone for SpawnEggConfig
impl Clone for SpawnEggConfig
Source§fn clone(&self) -> SpawnEggConfig
fn clone(&self) -> SpawnEggConfig
Returns a duplicate 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 SpawnEggConfig
impl Debug for SpawnEggConfig
Source§impl Default for SpawnEggConfig
impl Default for SpawnEggConfig
Source§impl<'de> Deserialize<'de> for SpawnEggConfig
impl<'de> Deserialize<'de> for SpawnEggConfig
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 SpawnEggConfig
impl RefUnwindSafe for SpawnEggConfig
impl Send for SpawnEggConfig
impl Sync for SpawnEggConfig
impl Unpin for SpawnEggConfig
impl UnsafeUnpin for SpawnEggConfig
impl UnwindSafe for SpawnEggConfig
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