Struct BlockShapes
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§
§impl BlockShapes
impl BlockShapes
pub const FULL_BLOCK: BlockShapes
pub const FULL_BLOCK: BlockShapes
Full block for every shape channel except interaction.
pub const EMPTY: BlockShapes
pub const EMPTY: BlockShapes
Empty shapes for all shape channels.
pub const fn new(
collision: VoxelShape,
support: VoxelShape,
outline: VoxelShape,
occlusion: VoxelShape,
interaction: VoxelShape,
visual: VoxelShape,
) -> BlockShapes
pub const fn new( collision: VoxelShape, support: VoxelShape, outline: VoxelShape, occlusion: VoxelShape, interaction: VoxelShape, visual: VoxelShape, ) -> BlockShapes
Creates new block shapes.
Trait Implementations§
§impl Clone for BlockShapes
impl Clone for BlockShapes
§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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreWraps this value in an
Arc<SyncMutex<>>