pub struct Blocks {
pub state: Option<Atom>,
}Expand description
The blocks of the areas asked for, a dimension each: declared with
Blocks::declare_in(dimension, Some(&BlockScope { min, max }), …).
Fields§
§state: Option<Atom>Its state: minecraft:oak_stairs[facing=north,…].
Implementations§
Trait Implementations§
Source§impl Mirror for Blocks
impl Mirror for Blocks
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 Blocks
impl RefUnwindSafe for Blocks
impl Send for Blocks
impl Sync for Blocks
impl Unpin for Blocks
impl UnsafeUnpin for Blocks
impl UnwindSafe for Blocks
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