#[non_exhaustive]pub enum BlockKind {
Other = 0,
Cobweb = 1,
SweetBerryBush = 2,
PowderSnow = 3,
HoneyBlock = 4,
BubbleColumn = 5,
SlimeBlock = 6,
Scaffolding = 7,
Ladder = 8,
Water = 9,
Lava = 10,
MovingPiston = 11,
}Expand description
Blocks the movement code treats specially.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Other = 0
Nothing special.
Cobweb = 1
cobweb (stuck multiplier 0.25 / 0.05).
SweetBerryBush = 2
sweet_berry_bush (stuck multiplier 0.8 / 0.75).
PowderSnow = 3
powder_snow (entity-dependent collision, stuck multiplier, climbing with leather boots).
HoneyBlock = 4
honey_block (wall slide).
BubbleColumn = 5
bubble_column (aux bit 0 = drag down).
SlimeBlock = 6
slime_block (bounce, step slowdown).
Scaffolding = 7
scaffolding (aux bit 0 = has the bottom shape).
Ladder = 8
ladder (aux = facing: 0 N, 1 E, 2 S, 3 W).
Water = 9
water.
Lava = 10
lava.
MovingPiston = 11
moving_piston.
Trait Implementations§
impl Copy for BlockKind
impl Eq for BlockKind
impl StructuralPartialEq for BlockKind
Auto Trait Implementations§
impl Forget for BlockKind
impl Freeze for BlockKind
impl Move for BlockKind
impl RefUnwindSafe for BlockKind
impl Send for BlockKind
impl Sync for BlockKind
impl Unpin for BlockKind
impl UnsafeUnpin for BlockKind
impl UnwindSafe for BlockKind
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