net.minecraftforge.event.world

## Class WorldEvent.PotentialSpawns

- java.lang.Object
- - net.minecraftforge.event.Event
  - - net.minecraftforge.event.world.WorldEvent
    - - net.minecraftforge.event.world.WorldEvent.PotentialSpawns

- Enclosing class:
    WorldEvent

      public static class WorldEvent.PotentialSpawns
      extends WorldEvent

  Called by WorldServer to gather a list of all possible entities that can spawn at the specified location. Canceling the event will result in a empty list, meaning no entity will be spawned.

- - ### Nested Class Summary

    - ### Nested classes/interfaces inherited from class net.minecraftforge.event.world.WorldEvent

      `WorldEvent.Load, WorldEvent.PotentialSpawns, WorldEvent.Save, WorldEvent.Unload`

    - ### Nested classes/interfaces inherited from class net.minecraftforge.event.Event

      `Event.HasResult, Event.Result`

  - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `List<SpawnListEntry>` | `list`
    `EnumCreatureType` | `type`
    `int` | `x`
    `int` | `y`
    `int` | `z`

    - ### Fields inherited from class net.minecraftforge.event.world.WorldEvent

      `world`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `WorldEvent.PotentialSpawns(World world, EnumCreatureType type, int x, int y, int z, List oldList)`

  - ### Method Summary

    - ### Methods inherited from class net.minecraftforge.event.Event

      `getListenerList, getResult, hasResult, isCancelable, isCanceled, setCanceled, setResult`

    - ### Methods inherited from class java.lang.Object

      `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Field Detail

    - #### type

          public final EnumCreatureType type

    - #### x

          public final int x

    - #### y

          public final int y

    - #### z

          public final int z

    - #### list

          public final List<SpawnListEntry> list

  - ### Constructor Detail

    - #### WorldEvent.PotentialSpawns

          public WorldEvent.PotentialSpawns(World world,
                                    EnumCreatureType type,
                                    int x,
                                    int y,
                                    int z,
                                    List oldList)