pub struct StatePhys(pub u64);Expand description
The packed per-state record of the movement code (one u64 per state).
Tuple Fields§
§0: u64Implementations§
Source§impl StatePhys
impl StatePhys
Sourcepub const fn shape(self) -> u16
pub const fn shape(self) -> u16
Collision shape index into voxel_shapes() of the version (context-free; unshifted for offset blocks).
Sourcepub const fn flags(self) -> u16
pub const fn flags(self) -> u16
state_flags bits.
Sourcepub const fn fluid(self) -> u8
pub const fn fluid(self) -> u8
Fluid byte: bits 6-7 kind (0 none, 1 water, 2 lava), bit 4 falling, bits 0-3 amount 1..=8.
Sourcepub const fn aux(self) -> u8
pub const fn aux(self) -> u8
Per-kind extra bits (see BlockKind and block_flags::TRAPDOOR).
Trait Implementations§
impl Copy for StatePhys
impl Eq for StatePhys
impl StructuralPartialEq for StatePhys
Auto Trait Implementations§
impl Forget for StatePhys
impl Freeze for StatePhys
impl Move for StatePhys
impl RefUnwindSafe for StatePhys
impl Send for StatePhys
impl Sync for StatePhys
impl Unpin for StatePhys
impl UnsafeUnpin for StatePhys
impl UnwindSafe for StatePhys
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