public interface CalculateSpawnLocations
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 |
CalculateSpawnLocations.DummyImpl |
| Modifier and Type | Field and Description |
|---|---|
static int |
MIN_DIAMETER |
static int[] |
POSITIVE_AND_NEGATIVE_ONE |
| Modifier and Type | Method and Description |
|---|---|
default java.util.ArrayList<SpawnLocation> |
calculateSpawnableLocations(BlockCollection collection)
Heaviest method of all spawn calculations.
|
static CalculateSpawnLocations |
getDefault() |
default int |
getMaxSpawnLocationDiameter()
Gets the maximum diameter (m) that a
SpawnLocation may have. |
default boolean |
isBlockAboveAir(BlockCollection blockCollection,
net.minecraft.util.math.BlockPos pos) |
static final int[] POSITIVE_AND_NEGATIVE_ONE
static final int MIN_DIAMETER
static CalculateSpawnLocations 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.default boolean isBlockAboveAir(BlockCollection blockCollection, net.minecraft.util.math.BlockPos pos)