Struct MayPlaceOnEvent
pub struct MayPlaceOnEvent {
pub dimension: Dimension,
pub state: BlockState,
pub ground: BlockState,
pub ground_pos: BlockPos,
}Expand description
What BlockPart::may_place_on is told. Each field is that hook’s argument of the same name, described in the hook’s doc.
Fields§
§dimension: Dimension§state: BlockState§ground: BlockState§ground_pos: BlockPosTrait Implementations§
Auto Trait Implementations§
impl Freeze for MayPlaceOnEvent
impl RefUnwindSafe for MayPlaceOnEvent
impl Send for MayPlaceOnEvent
impl Sync for MayPlaceOnEvent
impl Unpin for MayPlaceOnEvent
impl UnsafeUnpin for MayPlaceOnEvent
impl UnwindSafe for MayPlaceOnEvent
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