Enum MobCategory
#[non_exhaustive]pub enum MobCategory {
Monster,
Creature,
Ambient,
Axolotls,
UndergroundWaterCreature,
WaterCreature,
WaterAmbient,
Misc,
}Expand description
The category of an entity’s type (MobCategory, EntityType.getCategory):
what natural spawning counts it as. Every kind that isn’t a mob is Misc,
except the ender dragon, a Monster.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Monster
MONSTER.
Creature
CREATURE.
Ambient
AMBIENT.
Axolotls
AXOLOTLS.
UndergroundWaterCreature
UNDERGROUND_WATER_CREATURE.
WaterCreature
WATER_CREATURE.
WaterAmbient
WATER_AMBIENT.
Misc
MISC.
Trait Implementations§
§impl Clone for MobCategory
impl Clone for MobCategory
§fn clone(&self) -> MobCategory
fn clone(&self) -> MobCategory
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 moreimpl Copy for MobCategory
§impl Debug for MobCategory
impl Debug for MobCategory
impl Eq for MobCategory
§impl Hash for MobCategory
impl Hash for MobCategory
§impl PartialEq for MobCategory
impl PartialEq for MobCategory
impl StructuralPartialEq for MobCategory
Auto Trait Implementations§
impl Freeze for MobCategory
impl RefUnwindSafe for MobCategory
impl Send for MobCategory
impl Sync for MobCategory
impl Unpin for MobCategory
impl UnsafeUnpin for MobCategory
impl UnwindSafe for MobCategory
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