#[non_exhaustive]pub enum EntityClass {
Player,
Item,
ExperienceOrb,
Mob,
Object,
Painting,
}Expand description
Version-independent classification of an entity.
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.
Player
A player.
Item
A dropped item (stack: Entity::item).
ExperienceOrb
An experience orb (value: Entity::data).
Mob
A living non-player entity (spawned with the mob-spawn packet).
Object
Any other spawned object (boats, minecarts, arrows, falling blocks, armor stands in 1.8, …).
Painting
Paintings.
Trait Implementations§
Source§impl Clone for EntityClass
impl Clone for EntityClass
impl Copy for EntityClass
Source§impl Debug for EntityClass
impl Debug for EntityClass
impl Eq for EntityClass
Source§impl Hash for EntityClass
impl Hash for EntityClass
Source§impl PartialEq for EntityClass
impl PartialEq for EntityClass
impl StructuralPartialEq for EntityClass
Auto Trait Implementations§
impl Forget for EntityClass
impl Freeze for EntityClass
impl RefUnwindSafe for EntityClass
impl Send for EntityClass
impl Sync for EntityClass
impl Unpin for EntityClass
impl UnsafeUnpin for EntityClass
impl UnwindSafe for EntityClass
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