Struct azalea_block::blocks::Chain
source · pub struct Chain {
pub axis: Axis,
pub waterlogged: bool,
}Fields§
§axis: Axis§waterlogged: boolTrait Implementations§
source§impl Block for Chain
impl Block for Chain
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<Chain> for BlockState
impl From<Chain> for BlockState
impl Copy for Chain
Auto Trait Implementations§
impl RefUnwindSafe for Chain
impl Send for Chain
impl Sync for Chain
impl Unpin for Chain
impl UnwindSafe for Chain
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