public static class WorldEvent.PotentialSpawns extends WorldEvent
WorldServer.getSpawnListEntryForTypeAt(EnumCreatureType, BlockPos) as well as
WorldServer#canCreatureTypeSpawnHere(EnumCreatureType, SpawnListEntry, BlockPos)
where the latter checks for identity, meaning both events must add the same instance.
Canceling the event will result in a empty list, meaning no entity will be spawned.WorldEvent.CreateSpawnPosition, WorldEvent.Load, WorldEvent.PotentialSpawns, WorldEvent.Save, WorldEvent.UnloadEvent.HasResult, Event.Result| Constructor and Description |
|---|
PotentialSpawns(World world,
EnumCreatureType type,
BlockPos pos,
java.util.List<Biome.SpawnListEntry> oldList) |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<Biome.SpawnListEntry> |
getList() |
BlockPos |
getPos() |
EnumCreatureType |
getType() |
getWorldgetListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setuppublic PotentialSpawns(World world, EnumCreatureType type, BlockPos pos, java.util.List<Biome.SpawnListEntry> oldList)
public EnumCreatureType getType()
public BlockPos getPos()
public java.util.List<Biome.SpawnListEntry> getList()