Enum Spawner
#[non_exhaustive]pub enum Spawner {
Block {
pos: BlockPos,
},
Trial {
pos: BlockPos,
},
}Expand description
The spawner block that asked for a spawn check (MobSpawnEvent.PositionCheck.getSpawner):
what mob_spawn_placement_check and mob_spawn_position_check get when a block spawns the
mob. Natural spawning, chunk generation, patrols, sieges, reinforcements and a spawner
minecart have none.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Block
A monster spawner block (SpawnerBlockEntity).
Trial
A trial spawner block (TrialSpawnerBlockEntity).
Trait Implementations§
impl Copy for Spawner
impl Eq for Spawner
impl StructuralPartialEq for Spawner
Auto Trait Implementations§
impl Freeze for Spawner
impl RefUnwindSafe for Spawner
impl Send for Spawner
impl Sync for Spawner
impl Unpin for Spawner
impl UnsafeUnpin for Spawner
impl UnwindSafe for Spawner
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