Interface CalculateSpawnLocations
- All Known Implementing Classes:
CalculateSpawnLocations.DummyImpl
public interface CalculateSpawnLocations
Implementations of this interface are responsible for calculating all the possible
SpawnLocations that suit
a given BlockCollection. A default implementation is provided. The main content of this interface
is calculateSpawnableLocations(BlockCollection).-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiondefault ArrayList<SpawnLocation> calculateSpawnableLocations(BlockCollection collection) Heaviest method of all spawn calculations.static CalculateSpawnLocationsdefault intGets the maximum diameter (m) that aSpawnLocationmay have.
-
Field Details
-
MIN_DIAMETER
static final int MIN_DIAMETER- See Also:
-
-
Method Details
-
getDefault
-
getMaxSpawnLocationDiameter
default int getMaxSpawnLocationDiameter()Gets the maximum diameter (m) that aSpawnLocationmay have. -
calculateSpawnableLocations
Heaviest method of all spawn calculations. This method takes aBlockCollections that was calculated to be viable for spawning, and reads these chunks to formulate any and allSpawnLocations that are contained. This is designed to run asynchronously.- Parameters:
collection- - TheBlockCollectioncalculated to be suitable for spawning.- Returns:
- - A list of all acceptable
SpawnLocations according to open space defined by base and surrounding block conditions contained in the loaded list ofLocationType.
-