Struct oc2_hlapi::device::BlockOperationsModule
source · pub struct BlockOperationsModule(/* private fields */);Expand description
A module that allows interaction with blocks in the world.
Trait Implementations§
source§impl BlockOperationsInterface for BlockOperationsModule
impl BlockOperationsInterface for BlockOperationsModule
source§fn excavate(&self, side: Direction) -> Result<bool>
fn excavate(&self, side: Direction) -> Result<bool>
Mines the adjacent block on the given side. Returns true if the block was able to be
mined.
source§fn place(&self, side: Direction) -> Result<bool>
fn place(&self, side: Direction) -> Result<bool>
Places a block on the given side. Returns true if the block was able to be placed.
source§fn durability(&self) -> Result<i32>
fn durability(&self) -> Result<i32>
Returns a 32-bit signed integer that represents the durability of the currently active
tool
Auto Trait Implementations§
impl Freeze for BlockOperationsModule
impl !RefUnwindSafe for BlockOperationsModule
impl !Send for BlockOperationsModule
impl !Sync for BlockOperationsModule
impl Unpin for BlockOperationsModule
impl !UnwindSafe for BlockOperationsModule
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