public interface ICalculateSpawnLocations
SpawnLocations that suit
a given BlockCollection. A default implementation is provided. The main content of this interface
is calculateSpawnableLocations(BlockCollection).| Modifier and Type | Interface and Description |
|---|---|
static class |
ICalculateSpawnLocations.DummyImpl |
| Modifier and Type | Field and Description |
|---|---|
static int |
MIN_DIAMETER |
| Modifier and Type | Method and Description |
|---|---|
default java.util.ArrayList<SpawnLocation> |
calculateSpawnableLocations(BlockCollection collection)
Heaviest method of all spawn calculations.
|
static ICalculateSpawnLocations |
getDefault() |
default int |
getMaxSpawnLocationDiameter()
Gets the maximum diameter (m) that a
SpawnLocation may have. |
static final int MIN_DIAMETER
static ICalculateSpawnLocations getDefault()
default int getMaxSpawnLocationDiameter()
SpawnLocation may have.default java.util.ArrayList<SpawnLocation> calculateSpawnableLocations(BlockCollection collection)
BlockCollections that was calculated to
be viable for spawning, and reads these chunks to formulate any and all SpawnLocations that are
contained. This is designed to run asynchronously.collection - - The BlockCollection calculated to be suitable for spawning.SpawnLocations according to open space defined by
base and surrounding block conditions contained in the loaded list of LocationType.