public class EndDensitySource extends AbstractGenerationPass implements DensitySource
NoiseSource that provides noise similar to that of vanilla's end terrain.| Modifier and Type | Class and Description |
|---|---|
protected static class |
EndDensitySource.IslandCache |
| Modifier and Type | Field and Description |
|---|---|
static Identifier |
ID |
| Constructor and Description |
|---|
EndDensitySource() |
| Modifier and Type | Method and Description |
|---|---|
protected double |
cutOff(double y,
double noise) |
double |
get(@NonNull BiomeMap biomes,
int x,
int y,
int z)
Gets the density at the given coordinates.
|
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() |
protected void |
init0(long levelSeed,
long localSeed,
StandardGenerator generator) |
init, setSeedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitinitpublic static final Identifier ID
protected void init0(long levelSeed,
long localSeed,
StandardGenerator generator)
init0 in class AbstractGenerationPasspublic double get(@NonNull
@NonNull BiomeMap biomes,
int x,
int y,
int z)
DensitySourceget in interface DensitySourcebiomes - a BiomeMap containing the biomes to be used in the worldx - the X coordinatey - the Y coordinatez - the Z coordinatepublic 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)
DensitySourceValues will be stored in the returned array in XZY order.
get in interface DensitySourcearr - 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 axisprotected double cutOff(double y,
double noise)
public Identifier getId()
getId in interface DensitySourcegetId in interface GenerationPassCopyright © 2020. All rights reserved.