pub struct EntityInfo {
pub type_id: String,
pub dimension: String,
pub pos: (f64, f64, f64),
pub eye_height: f64,
pub width: f64,
pub height: f64,
pub flags: u32,
pub name: String,
}Expand description
A loaded entity, as Server::entity_info
sees it.
Fields§
§type_id: StringRegistry id of its type, e.g. "minecraft:zombie".
dimension: StringDimension id, e.g. "minecraft:overworld".
pos: (f64, f64, f64)Feet position.
eye_height: f64Eye height above pos.
width: f64Bounding box width and height.
height: f64§flags: u32entity_flags bits.
name: StringDisplay name (custom name, player name, or the type’s name).
Implementations§
Trait Implementations§
Source§impl Clone for EntityInfo
impl Clone 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 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