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).
  • Field Details

  • Method Details

    • getDefault

      static CalculateSpawnLocations getDefault()
    • getMaxSpawnLocationDiameter

      default int getMaxSpawnLocationDiameter()
      Gets the maximum diameter (m) that a SpawnLocation may have.
    • calculateSpawnableLocations

      default ArrayList<SpawnLocation> calculateSpawnableLocations(BlockCollection collection)
      Heaviest method of all spawn calculations. This method takes a 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.
      Parameters:
      collection - - The BlockCollection calculated 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 of LocationType.