pub struct Entity {Show 19 fields
pub air: i16,
pub custom_name: Option<Cow<'static, str>>,
pub custom_name_visible: Option<bool>,
pub fall_distance: f32,
pub fire: i16,
pub glowing: Option<bool>,
pub has_visual_fire: Option<bool>,
pub invulnerable: bool,
pub motion: Vec<f64>,
pub no_gravity: Option<bool>,
pub on_ground: bool,
pub passengers: Option<Vec<Box<Entity>>>,
pub portal_cooldown: i32,
pub pos: Option<Vec<f64>>,
pub rotation: Vec<f32>,
pub silent: Option<bool>,
pub tags: Option<Vec<Cow<'static, str>>>,
pub ticks_frozen: Option<i32>,
pub uuid: u128,
}Available on crate features
1.18 and entities only.Fields§
§air: i16"Air"
custom_name: Option<Cow<'static, str>>"CustomName"
custom_name_visible: Option<bool>"CustomNameVisible"
fall_distance: f32"FallDistance"
fire: i16"Fire"
glowing: Option<bool>"Glowing"
has_visual_fire: Option<bool>"HasVisualFire"
invulnerable: bool"Invulnerable"
motion: Vec<f64>"Motion"
no_gravity: Option<bool>"NoGravity"
on_ground: bool"OnGround"
passengers: Option<Vec<Box<Entity>>>"Passengers"
portal_cooldown: i32"PortalCooldown"
pos: Option<Vec<f64>>"Pos"
rotation: Vec<f32>"Rotation"
silent: Option<bool>"Silent"
"Tags"
ticks_frozen: Option<i32>"TicksFrozen"
uuid: u128"UUID"
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Entity
Available on crate feature serde only.
impl<'de> Deserialize<'de> for Entity
Available on crate feature
serde only.Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Entity
Auto Trait Implementations§
impl Freeze for Entity
impl RefUnwindSafe for Entity
impl Send for Entity
impl Sync for Entity
impl Unpin for Entity
impl UnwindSafe for Entity
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more