Struct MobSpawnPlacementCheckEvent
pub struct MobSpawnPlacementCheckEvent<'a> {
pub dimension: &'a str,
pub kind: &'a str,
pub reason: SpawnReason,
pub pos: BlockPos,
pub default_result: bool,
pub level: LevelRef,
pub spawner: Option<Spawner>,
pub result: &'a mut SpawnCheck,
}Expand description
What Hooks::mob_spawn_placement_check is told. Each field is that hook’s argument of the same name, described in the hook’s doc.
Fields§
§dimension: &'a str§kind: &'a str§reason: SpawnReason§pos: BlockPos§default_result: bool§level: LevelRef§spawner: Option<Spawner>§result: &'a mut SpawnCheckAuto Trait Implementations§
impl<'a> !UnwindSafe for MobSpawnPlacementCheckEvent<'a>
impl<'a> Freeze for MobSpawnPlacementCheckEvent<'a>
impl<'a> RefUnwindSafe for MobSpawnPlacementCheckEvent<'a>
impl<'a> Send for MobSpawnPlacementCheckEvent<'a>
impl<'a> Sync for MobSpawnPlacementCheckEvent<'a>
impl<'a> Unpin for MobSpawnPlacementCheckEvent<'a>
impl<'a> UnsafeUnpin for MobSpawnPlacementCheckEvent<'a>
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