Struct MobSpawnPositionCheckEvent
pub struct MobSpawnPositionCheckEvent<'a> {
pub dimension: &'a str,
pub kind: &'a str,
pub reason: SpawnReason,
pub pos: [f64; 3],
pub level: LevelRef,
pub spawner: Option<Spawner>,
pub mob: UnspawnedMobRef,
pub result: &'a mut SpawnCheck,
}Expand description
What Hooks::mob_spawn_position_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: [f64; 3]§level: LevelRef§spawner: Option<Spawner>§mob: UnspawnedMobRef§result: &'a mut SpawnCheckAuto Trait Implementations§
impl<'a> !UnwindSafe for MobSpawnPositionCheckEvent<'a>
impl<'a> Freeze for MobSpawnPositionCheckEvent<'a>
impl<'a> RefUnwindSafe for MobSpawnPositionCheckEvent<'a>
impl<'a> Send for MobSpawnPositionCheckEvent<'a>
impl<'a> Sync for MobSpawnPositionCheckEvent<'a>
impl<'a> Unpin for MobSpawnPositionCheckEvent<'a>
impl<'a> UnsafeUnpin for MobSpawnPositionCheckEvent<'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