#[non_exhaustive]pub enum NeighbourShape {
Fence,
Pane,
Wall,
Stairs,
Door,
Chest,
ChorusPlant,
}Expand description
Family of a neighbour-dependent shape. The world/physics crate implements the vanilla connection rules per family.
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.
Fence
Fences: centre post plus arms towards connecting neighbours, 1.5 high.
Pane
Glass panes and iron bars.
Wall
Cobblestone walls (1.5 high, post omitted on straight runs).
Stairs
Stairs: straight / inner / outer corner shapes from adjacent stairs.
Door
Doors: the shape combines the lower half (facing, open) with the upper half (hinge).
Chest
Chests: the box extends to the block edge towards an adjacent chest of the same kind.
ChorusPlant
1.12 chorus plants: a centre box plus an arm towards each connecting neighbour (chorus plant / flower, end stone below).
Trait Implementations§
Source§impl Clone for NeighbourShape
impl Clone for NeighbourShape
impl Copy for NeighbourShape
Source§impl Debug for NeighbourShape
impl Debug for NeighbourShape
impl Eq for NeighbourShape
Source§impl Hash for NeighbourShape
impl Hash for NeighbourShape
Source§impl PartialEq for NeighbourShape
impl PartialEq for NeighbourShape
impl StructuralPartialEq for NeighbourShape
Auto Trait Implementations§
impl Forget for NeighbourShape
impl Freeze for NeighbourShape
impl RefUnwindSafe for NeighbourShape
impl Send for NeighbourShape
impl Sync for NeighbourShape
impl Unpin for NeighbourShape
impl UnsafeUnpin for NeighbourShape
impl UnwindSafe for NeighbourShape
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