Class SpawnEvent
java.lang.Object
net.minecraftforge.eventbus.api.Event
com.pixelmonmod.pixelmon.api.events.spawning.SpawnEvent
public class SpawnEvent
extends net.minecraftforge.eventbus.api.Event
Event fired when an
AbstractSpawner
attempts to perform a SpawnAction
.
Cancelling this event will prevent the Pokémon or NPC or whatever from spawning.-
Nested Class Summary
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 net.minecraft.world.entity.Entity>
The specific information about the spawn.final AbstractSpawner
TheAbstractSpawner
attempting to do the spawn. -
Constructor Summary
ConstructorDescriptionSpawnEvent
(AbstractSpawner spawner, SpawnAction<? extends net.minecraft.world.entity.Entity> action) -
Method Summary
Methods inherited from class net.minecraftforge.eventbus.api.Event
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
-
Field Details
-
spawner
TheAbstractSpawner
attempting to do the spawn. -
action
The specific information about the spawn.
-
-
Constructor Details
-
SpawnEvent
public SpawnEvent(AbstractSpawner spawner, SpawnAction<? extends net.minecraft.world.entity.Entity> action)
-