pub struct Entity {
pub uuid: String,
}Expand description
An entity, by its uuid: every action whose first field is uuid.
Fields§
§uuid: StringImplementations§
Source§impl Entity
impl Entity
Sourcepub fn body_track(&self, on: impl Arg<bool>) -> bool
pub fn body_track(&self, on: impl Arg<bool>) -> bool
Asks the mods about entity uuid’s body each frame (on) or not.
Source§impl Entity
impl Entity
Sourcepub fn set_velocity(&self, velocity: impl Arg<Point>) -> bool
pub fn set_velocity(&self, velocity: impl Arg<Point>) -> bool
Sets the entity’s velocity.
Source§impl Entity
impl Entity
Sourcepub fn add_velocity(&self, velocity: impl Arg<Point>) -> bool
pub fn add_velocity(&self, velocity: impl Arg<Point>) -> bool
Adds to the entity’s velocity.
Source§impl Entity
impl Entity
Sourcepub fn set_health(&self, health: impl Arg<f64>) -> bool
pub fn set_health(&self, health: impl Arg<f64>) -> bool
Sets a living entity’s health.
Source§impl Entity
impl Entity
Sourcepub fn remove_effect(&self, effect: impl Arg<String>) -> bool
pub fn remove_effect(&self, effect: impl Arg<String>) -> bool
Takes a mob effect off the entity.
Source§impl Entity
impl Entity
Sourcepub fn set_fire_ticks(&self, ticks: impl Arg<i32>) -> bool
pub fn set_fire_ticks(&self, ticks: impl Arg<i32>) -> bool
Sets the entity on fire for ticks.
Trait Implementations§
impl Eq for Entity
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 UnsafeUnpin 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