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.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.pixelmonmod.pixelmon.api.events.spawning.LegendarySpawnEvent
LegendarySpawnEvent.ChoosePlayer, LegendarySpawnEvent.DoSpawn
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal SpawnAction
<? extends PixelmonEntity> TheSpawnAction
about to occur.Fields inherited from class com.pixelmonmod.pixelmon.api.events.spawning.LegendarySpawnEvent
spawner
-
Constructor Summary
ConstructorsConstructorDescriptionDoSpawn
(AbstractSpawner spawner, SpawnAction<? extends PixelmonEntity> action) -
Method Summary
Modifier and TypeMethodDescriptionGets the pokemon of the legendary about to spawn.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.neoforged.bus.api.ICancellableEvent
isCanceled, setCanceled
-
Field Details
-
action
TheSpawnAction
about to occur.
-
-
Constructor Details
-
DoSpawn
-
-
Method Details
-
getLegendary
Gets the pokemon of the legendary about to spawn.
-