#[non_exhaustive]pub struct EntityInfo {
pub id: i32,
pub name: &'static str,
pub class: EntityClass,
pub pos: Vec3,
pub player_name: Option<String>,
pub item: Option<(i32, i32)>,
}Expand description
A snapshot of a tracked entity.
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.id: i32Entity id.
name: &'static strRegistry / minecraft-data name ("player", "zombie", "item", "arrow", …;
1.8 names as minecraft-data has them), "" when unknown.
class: EntityClassBroad class.
pos: Vec3Position (the server’s, feet).
player_name: Option<String>A player’s tab-list name (ghast_client::Interests::PLAYER_LIST).
item: Option<(i32, i32)>An item entity’s stack: item id and count.
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 Forget for EntityInfo
impl Freeze for EntityInfo
impl Move 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