pub struct Entities {
pub pos: Point,
pub velocity: Point,
pub rotation: [f32; 2],
pub kind: Option<Atom>,
pub dimension: Option<Atom>,
pub health: f32,
pub uuid: [u64; 2],
}Expand description
Every live entity, by network id.
Fields§
§pos: Point§velocity: PointBlocks a tick.
rotation: [f32; 2]Yaw, pitch (degrees).
kind: Option<Atom>Its type.
dimension: Option<Atom>§health: f32Living ones’; others 0.
uuid: [u64; 2][high, low].
Implementations§
Trait Implementations§
Source§impl Mirror for Entities
impl Mirror for Entities
Source§fn read(row: &Row<'_, Self>) -> Self
fn read(row: &Row<'_, Self>) -> Self
The whole row (a field not asked for reads as its default).
fn spec() -> MirrorSpec
Source§fn declare(fields: u64, rate: Rate) -> Result<Mirrored<Self>, Diagnostic>
fn declare(fields: u64, rate: Rate) -> Result<Mirrored<Self>, Diagnostic>
Asks for
fields (its bit consts or-ed) at rate.Source§fn declare_in<S: Schema>(
member: &str,
scope: Option<&S>,
fields: u64,
rate: Rate,
) -> Result<Mirrored<Self>, Diagnostic>
fn declare_in<S: Schema>( member: &str, scope: Option<&S>, fields: u64, rate: Rate, ) -> Result<Mirrored<Self>, Diagnostic>
Mirror::declare in member member of its family (a dimension:
minecraft:overworld), covering scope (its scope type: a
BlockScope…).Auto Trait Implementations§
impl Freeze for Entities
impl RefUnwindSafe for Entities
impl Send for Entities
impl Sync for Entities
impl Unpin for Entities
impl UnsafeUnpin for Entities
impl UnwindSafe for Entities
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