pub struct EntityInfo {
pub id: u16,
pub name: &'static str,
pub display_name: &'static str,
pub kind: EntityKind,
pub category: &'static str,
pub width: Option<f32>,
pub height: Option<f32>,
}Expand description
An entity type.
Fields§
§id: u16Network type id (in 1.8 mob and object ids are separate spaces, see EntityKind).
name: &'static strName as listed by minecraft-data (1.8: legacy CamelCase names such as "PigZombie").
display_name: &'static strEnglish display name.
kind: EntityKindMob / object.
category: &'static strminecraft-data category ("Hostile mobs", …).
width: Option<f32>Box width; None when unknown. From minecraft-data, NOT verified float-exact.
height: Option<f32>Box height; None when unknown. From minecraft-data, NOT verified float-exact.
Trait Implementations§
Source§impl Clone for EntityInfo
impl Clone for EntityInfo
impl Copy for EntityInfo
Source§impl Debug for EntityInfo
impl Debug for EntityInfo
Source§impl PartialEq for EntityInfo
impl PartialEq for EntityInfo
impl StructuralPartialEq for EntityInfo
Auto Trait Implementations§
impl Forget for EntityInfo
impl Freeze for EntityInfo
impl RefUnwindSafe for EntityInfo
impl Send for EntityInfo
impl Sync for EntityInfo
impl Unpin for EntityInfo
impl UnsafeUnpin for EntityInfo
impl UnwindSafe for EntityInfo
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