pub struct BlockShapes {
pub collision: VoxelShape,
pub support: VoxelShape,
pub outline: VoxelShape,
pub occlusion: VoxelShape,
pub interaction: VoxelShape,
pub visual: VoxelShape,
}Expand description
Shape data for a block state.
Fields§
§collision: VoxelShape§support: VoxelShape§outline: VoxelShape§occlusion: VoxelShape§interaction: VoxelShape§visual: VoxelShapeImplementations§
Source§impl BlockShapes
impl BlockShapes
Sourcepub const FULL_BLOCK: BlockShapes
pub const FULL_BLOCK: BlockShapes
Full block for every shape channel except interaction.
Sourcepub const EMPTY: BlockShapes
pub const EMPTY: BlockShapes
Empty shapes for all shape channels.
Sourcepub const fn new(
collision: VoxelShape,
support: VoxelShape,
outline: VoxelShape,
occlusion: VoxelShape,
interaction: VoxelShape,
visual: VoxelShape,
) -> Self
pub const fn new( collision: VoxelShape, support: VoxelShape, outline: VoxelShape, occlusion: VoxelShape, interaction: VoxelShape, visual: VoxelShape, ) -> Self
Creates new block shapes.
Trait Implementations§
Source§impl Clone for BlockShapes
impl Clone for BlockShapes
Source§fn clone(&self) -> BlockShapes
fn clone(&self) -> BlockShapes
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for BlockShapes
Auto Trait Implementations§
impl Freeze for BlockShapes
impl RefUnwindSafe for BlockShapes
impl Send for BlockShapes
impl Sync for BlockShapes
impl Unpin for BlockShapes
impl UnsafeUnpin for BlockShapes
impl UnwindSafe for BlockShapes
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