Struct BlockStateId
pub struct BlockStateId(pub u32);Expand description
A block state as the game’s state table numbers it (Block.BLOCK_STATE_REGISTRY’s id): what
worldgen providers and fluid queries answer. Valid for the running game only; never save it.
Tuple Fields§
§0: u32Trait Implementations§
§impl Clone for BlockStateId
impl Clone for BlockStateId
§fn clone(&self) -> BlockStateId
fn clone(&self) -> BlockStateId
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for BlockStateId
§impl Debug for BlockStateId
impl Debug for BlockStateId
impl Eq for BlockStateId
§impl Hash for BlockStateId
impl Hash for BlockStateId
§impl Ord for BlockStateId
impl Ord for BlockStateId
§fn cmp(&self, other: &BlockStateId) -> Ordering
fn cmp(&self, other: &BlockStateId) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
§impl PartialEq for BlockStateId
impl PartialEq for BlockStateId
§impl PartialOrd for BlockStateId
impl PartialOrd for BlockStateId
impl StructuralPartialEq for BlockStateId
Auto Trait Implementations§
impl Freeze for BlockStateId
impl RefUnwindSafe for BlockStateId
impl Send for BlockStateId
impl Sync for BlockStateId
impl Unpin for BlockStateId
impl UnsafeUnpin for BlockStateId
impl UnwindSafe for BlockStateId
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