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

    Fields
    Modifier and Type
    Field
    Description
    final SpawnAction<? extends net.minecraft.world.entity.Entity>
    The specific information about the spawn.
    The AbstractSpawner attempting to do the spawn.
  • Constructor Summary

    Constructors
    Constructor
    Description
    SpawnEvent(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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • spawner

      public final AbstractSpawner spawner
      The AbstractSpawner attempting to do the spawn.
    • action

      public final SpawnAction<? extends net.minecraft.world.entity.Entity> action
      The specific information about the spawn.
  • Constructor Details