Struct CanHarvestBlockEvent
pub struct CanHarvestBlockEvent {
pub player: u32,
pub pos: [i32; 3],
pub state: BlockState,
pub can_harvest: bool,
}Expand description
What BlockPart::can_harvest_block is told. Each field is that hook’s argument of the same name, described in the hook’s doc.
Fields§
§player: u32§pos: [i32; 3]§state: BlockState§can_harvest: boolTrait Implementations§
Auto Trait Implementations§
impl Freeze for CanHarvestBlockEvent
impl RefUnwindSafe for CanHarvestBlockEvent
impl Send for CanHarvestBlockEvent
impl Sync for CanHarvestBlockEvent
impl Unpin for CanHarvestBlockEvent
impl UnsafeUnpin for CanHarvestBlockEvent
impl UnwindSafe for CanHarvestBlockEvent
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