pub struct ClientBlocks {
pub state: Option<Atom>,
pub traits: u64,
pub hardness: f32,
}Expand description
The blocks of the area asked for in this client’s world, by packed
position (ClientBlocks::declare_scoped(&BlockScope { min, max }, …)):
each one’s state and what a body meets there.
Fields§
§state: Option<Atom>§traits: u64Its traits (crate::mirror::BlockTraits).
hardness: f32How hard it is to break (negative: it can’t be).
Implementations§
Trait Implementations§
Source§impl Mirror for ClientBlocks
impl Mirror for ClientBlocks
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 ClientBlocks
impl RefUnwindSafe for ClientBlocks
impl Send for ClientBlocks
impl Sync for ClientBlocks
impl Unpin for ClientBlocks
impl UnsafeUnpin for ClientBlocks
impl UnwindSafe for ClientBlocks
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