pub enum NeighbourShape {
Fence,
Pane,
Wall,
Stairs,
Door,
Chest,
}Expand description
Family of a neighbour-dependent shape. The world/physics crate implements the vanilla connection rules per family.
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.
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