Struct CanSustainPlantEvent
pub struct CanSustainPlantEvent {
pub dimension: Dimension,
pub state: BlockState,
pub ground: BlockState,
pub ground_pos: BlockPos,
}Expand description
What BlockPart::can_sustain_plant 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 CanSustainPlantEvent
impl RefUnwindSafe for CanSustainPlantEvent
impl Send for CanSustainPlantEvent
impl Sync for CanSustainPlantEvent
impl Unpin for CanSustainPlantEvent
impl UnsafeUnpin for CanSustainPlantEvent
impl UnwindSafe for CanSustainPlantEvent
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