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>where
bool: DeserializeOwned + 'static,
fn excavate(&self, side: Direction) -> Result<bool>where
bool: DeserializeOwned + 'static,
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>where
bool: DeserializeOwned + 'static,
fn place(&self, side: Direction) -> Result<bool>where
bool: DeserializeOwned + 'static,
Places a block on the given side. Returns true if the block was able to be placed.
Source§fn durability(&self) -> Result<i32>where
i32: DeserializeOwned + 'static,
fn durability(&self) -> Result<i32>where
i32: DeserializeOwned + 'static,
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