Class LegendarySpawnEvent.DoSpawn

java.lang.Object
net.neoforged.bus.api.Event
com.pixelmonmod.pixelmon.api.events.spawning.LegendarySpawnEvent
com.pixelmonmod.pixelmon.api.events.spawning.LegendarySpawnEvent.DoSpawn
All Implemented Interfaces:
net.neoforged.bus.api.ICancellableEvent
Enclosing class:
LegendarySpawnEvent

public static class LegendarySpawnEvent.DoSpawn extends LegendarySpawnEvent implements net.neoforged.bus.api.ICancellableEvent
Event fired when a legendary Pokémon is spawned through any implementation of the Better Spawner.

Cancelling this event will prevent the legendary from spawning, and prevent the legendary spawning interval from being consumed.