pub struct ClientEntities {
pub pos: Point,
pub velocity: Point,
pub rotation: [f32; 2],
pub kind: Option<Atom>,
pub health: f32,
pub uuid: [u64; 2],
pub eye_height: f32,
pub hostile: u8,
pub name: Option<Atom>,
}Expand description
The entities this client sees, by network id: written after its ticks, on any server.
Fields§
§pos: Point§velocity: PointBlocks a tick.
rotation: [f32; 2]Yaw, pitch (degrees).
kind: Option<Atom>Its type.
health: f32Living ones’; others 0.
uuid: [u64; 2][high, low].
eye_height: f32Its eyes’ height over its feet.
hostile: u8A monster (1) or not (0).
name: Option<Atom>A player’s name; others none.
Implementations§
Source§impl ClientEntities
impl ClientEntities
Sourcepub const EYE_HEIGHT: u64
pub const EYE_HEIGHT: u64
Field eye_height’s bit.
Trait Implementations§
Source§impl Mirror for ClientEntities
impl Mirror for ClientEntities
Source§const CLOCK: Clock
const CLOCK: Clock
Whose ticks it’s written after (the server’s, unless it’s a client’s view).
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_scoped<S: Schema>(
scope: &S,
fields: u64,
rate: Rate,
) -> Result<Mirrored<Self>, Diagnostic>
fn declare_scoped<S: Schema>( scope: &S, fields: u64, rate: Rate, ) -> Result<Mirrored<Self>, Diagnostic>
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 ClientEntities
impl RefUnwindSafe for ClientEntities
impl Send for ClientEntities
impl Sync for ClientEntities
impl Unpin for ClientEntities
impl UnsafeUnpin for ClientEntities
impl UnwindSafe for ClientEntities
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