Interface CalculateSpawnLocations
- All Known Implementing Classes:
CalculateSpawnLocations.DummyImpl
public interface CalculateSpawnLocations
Implementations of this interface are responsible for calculating all the possible
SpawnLocation
s that suit
a given BlockCollection
. A default implementation is provided. The main content of this interface
is calculateSpawnableLocations(BlockCollection)
.-
Nested Class Summary
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptiondefault ArrayList<SpawnLocation>
calculateSpawnableLocations
(BlockCollection collection) Heaviest method of all spawn calculations.static CalculateSpawnLocations
default int
Gets the maximum diameter (m) that aSpawnLocation
may 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 aSpawnLocation
may have. -
calculateSpawnableLocations
Heaviest method of all spawn calculations. This method takes aBlockCollection
s that was calculated to be viable for spawning, and reads these chunks to formulate any and allSpawnLocation
s that are contained. This is designed to run asynchronously.- Parameters:
collection
- - TheBlockCollection
calculated to be suitable for spawning.- Returns:
- - A list of all acceptable
SpawnLocation
s according to open space defined by base and surrounding block conditions contained in the loaded list ofLocationType
.
-