public class SpawnEvent
extends net.minecraftforge.fml.common.eventhandler.Event
AbstractSpawner attempts to perform a SpawnAction.
Cancelling this event will prevent the Pokémon or NPC or whatever from spawning.| Modifier and Type | Field and Description |
|---|---|
SpawnAction<? extends net.minecraft.entity.Entity> |
action
The specific information about the spawn.
|
AbstractSpawner |
spawner
The
AbstractSpawner attempting to do the spawn. |
| Constructor and Description |
|---|
SpawnEvent(AbstractSpawner spawner,
SpawnAction<? extends net.minecraft.entity.Entity> action) |
public final AbstractSpawner spawner
AbstractSpawner attempting to do the spawn.public final SpawnAction<? extends net.minecraft.entity.Entity> action
public SpawnEvent(AbstractSpawner spawner, SpawnAction<? extends net.minecraft.entity.Entity> action)