Struct azalea_block::blocks::BoneBlock
source · pub struct BoneBlock {
pub axis: Axis,
}Fields§
§axis: AxisTrait Implementations§
source§impl Block for BoneBlock
impl Block for BoneBlock
fn behavior(&self) -> BlockBehavior
source§fn id(&self) -> &'static str
fn id(&self) -> &'static str
Get the Minecraft ID for this block. For example
stone or
grass_block.source§fn as_block_state(&self) -> BlockState
fn as_block_state(&self) -> BlockState
Convert the block to a block state. This is lossless, as the block
contains all the state data.
source§fn as_registry_block(&self) -> Block
fn as_registry_block(&self) -> Block
Convert the block to an
azalea_registry::Block. This is lossy, as
azalea_registry::Block doesn’t contain any state data.source§impl From<BoneBlock> for BlockState
impl From<BoneBlock> for BlockState
impl Copy for BoneBlock
Auto Trait Implementations§
impl RefUnwindSafe for BoneBlock
impl Send for BoneBlock
impl Sync for BoneBlock
impl Unpin for BoneBlock
impl UnwindSafe for BoneBlock
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