public interface DensitySource extends GenerationPass
NoiseSource| Modifier and Type | Method and Description |
|---|---|
double |
get(@NonNull BiomeMap biomes,
int x,
int y,
int z)
Gets the density at the given coordinates.
|
default double[] |
get(double[] arr,
int startIndex,
@NonNull BiomeMap biomes,
int x,
int y,
int z,
int sizeX,
int sizeY,
int sizeZ,
int stepX,
int stepY,
int stepZ)
Gets the density in the given region.
|
Identifier |
getId() |
initdouble get(@NonNull
@NonNull BiomeMap biomes,
int x,
int y,
int z)
biomes - a BiomeMap containing the biomes to be used in the worldx - the X coordinatey - the Y coordinatez - the Z coordinatedefault double[] get(double[] arr,
int startIndex,
@NonNull
@NonNull BiomeMap biomes,
int x,
int y,
int z,
int sizeX,
int sizeY,
int sizeZ,
int stepX,
int stepY,
int stepZ)
Values will be stored in the returned array in XZY order.
arr - a double[] to store the density values in. if too small or null, a new one will be createdstartIndex - the index to begin storing values into the array atbiomes - a BiomeMap containing the biomes to be used in the worldx - the X coordinatey - the Y coordinatez - the Z coordinatesizeX - the number of samples to take along the X axissizeY - the number of samples to take along the Y axissizeZ - the number of samples to take along the Z axisstepX - the spacing between samples along the X axisstepY - the spacing between samples along the Y axisstepZ - the spacing between samples along the Z axisIdentifier getId()
getId in interface GenerationPassCopyright © 2020. All rights reserved.