Class LegendarySpawnEvent.DoSpawn
java.lang.Object
net.minecraftforge.eventbus.api.Event
com.pixelmonmod.pixelmon.api.events.spawning.LegendarySpawnEvent
com.pixelmonmod.pixelmon.api.events.spawning.LegendarySpawnEvent.DoSpawn
- Enclosing class:
- LegendarySpawnEvent
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
Nested classes/interfaces inherited from class net.minecraftforge.eventbus.api.Event
net.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
-
Field Summary
Modifier and TypeFieldDescriptionfinal SpawnAction<? extends PixelmonEntity>
TheSpawnAction
about to occur.Fields inherited from class com.pixelmonmod.pixelmon.api.events.spawning.LegendarySpawnEvent
spawner
-
Constructor Summary
ConstructorDescriptionDoSpawn
(AbstractSpawner spawner, SpawnAction<? extends PixelmonEntity> action) -
Method Summary
Modifier and TypeMethodDescriptionGets the pokemon of the legendary about to spawn.Methods inherited from class net.minecraftforge.eventbus.api.Event
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
-
Field Details
-
action
TheSpawnAction
about to occur.
-
-
Constructor Details
-
DoSpawn
-
-
Method Details
-
getLegendary
Gets the pokemon of the legendary about to spawn.
-