pub struct StateFlags(pub u8);Expand description
Per-state shape flags (1.12 moved these from the block to the state).
Tuple Fields§
§0: u8Implementations§
Source§impl StateFlags
impl StateFlags
Sourcepub const FULL_CUBE: StateFlags
pub const FULL_CUBE: StateFlags
BlockState.isFullCube() (Legacy Yarn method_11730).
Sourcepub const NORMAL_CUBE: StateFlags
pub const NORMAL_CUBE: StateFlags
BlockState.isNormalCube() (method_11734): opaque material, full cube, no redstone power.
ClientPlayerEntity.pushOutOfBlocks tests it.
Sourcepub const BLOCK_NORMAL_CUBE: StateFlags
pub const BLOCK_NORMAL_CUBE: StateFlags
BlockState.isBlockNormalCube() (method_11733): material blocks movement and full cube.
Sourcepub const TOP_SOLID: StateFlags
pub const TOP_SOLID: StateFlags
BlockState.isTopSolid() (method_11739).
Sourcepub const OPAQUE_CUBE: StateFlags
pub const OPAQUE_CUBE: StateFlags
BlockState.isOpaqueCube() (isFullBoundsCubeForCulling).
Sourcepub const FULL_BLOCK: StateFlags
pub const FULL_BLOCK: StateFlags
The Block.fullBlock field.
Sourcepub const CAUSES_SUFFOCATION: StateFlags
pub const CAUSES_SUFFOCATION: StateFlags
BlockState.causesSuffocation() (method_13763).
Sourcepub const fn contains(self, other: StateFlags) -> bool
pub const fn contains(self, other: StateFlags) -> bool
true when every flag of other is set.
Trait Implementations§
Source§impl Clone for StateFlags
impl Clone for StateFlags
impl Copy for StateFlags
Source§impl Debug for StateFlags
impl Debug for StateFlags
Source§impl Default for StateFlags
impl Default for StateFlags
impl Eq for StateFlags
Source§impl Hash for StateFlags
impl Hash for StateFlags
Source§impl PartialEq for StateFlags
impl PartialEq for StateFlags
impl StructuralPartialEq for StateFlags
Auto Trait Implementations§
impl Forget for StateFlags
impl Freeze for StateFlags
impl RefUnwindSafe for StateFlags
impl Send for StateFlags
impl Sync for StateFlags
impl Unpin for StateFlags
impl UnsafeUnpin for StateFlags
impl UnwindSafe for StateFlags
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