Struct azalea_block::blocks::Target
source · pub struct Target {
pub power: TargetOutputPower,
}Fields§
§power: TargetOutputPowerTrait Implementations§
source§impl Block for Target
impl Block for Target
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<Target> for BlockState
impl From<Target> for BlockState
impl Copy for Target
Auto Trait Implementations§
impl RefUnwindSafe for Target
impl Send for Target
impl Sync for Target
impl Unpin for Target
impl UnwindSafe for Target
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