Struct LootEntity
#[non_exhaustive]pub struct LootEntity {
pub kind: String,
pub living: bool,
pub on_fire: bool,
pub baby: bool,
pub vehicle: Option<Box<LootEntity>>,
pub cube_size: Option<i32>,
pub sheep: Option<(String, bool)>,
pub captain: Option<bool>,
pub frog_variant: Option<String>,
pub chicken_variant: Option<String>,
pub powered: bool,
pub equipment: Vec<(String, LootStack)>,
}Expand description
Entity predicate facts captured for a loot roll, not a live entity handle.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.kind: StringEntity type identifier.
living: boolWhether the entity is living.
on_fire: boolWhether the entity is on fire.
baby: boolWhether the entity is a baby.
vehicle: Option<Box<LootEntity>>Its vehicle at the moment of the roll.
cube_size: Option<i32>Cube mob size, if applicable.
sheep: Option<(String, bool)>Sheep colour and sheared state, if applicable.
captain: Option<bool>Raider captain state, if applicable.
frog_variant: Option<String>Frog variant identifier, if applicable.
chicken_variant: Option<String>Chicken variant identifier, if applicable.
powered: boolCharged creeper state.
equipment: Vec<(String, LootStack)>Equipment slot names and their intermediate loot candidates.
Trait Implementations§
§impl Clone for LootEntity
impl Clone for LootEntity
§fn clone(&self) -> LootEntity
fn clone(&self) -> LootEntity
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for LootEntity
impl Debug for LootEntity
§impl Default for LootEntity
impl Default for LootEntity
§fn default() -> LootEntity
fn default() -> LootEntity
Returns the “default value” for a type. Read more
§impl PartialEq for LootEntity
impl PartialEq for LootEntity
impl StructuralPartialEq for LootEntity
Auto Trait Implementations§
impl Freeze for LootEntity
impl RefUnwindSafe for LootEntity
impl Send for LootEntity
impl Sync for LootEntity
impl Unpin for LootEntity
impl UnsafeUnpin for LootEntity
impl UnwindSafe for LootEntity
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