public static class NoiseSettings.SlideSettings
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
int |
slideOffset |
int |
slideSize |
int |
slideTarget |
| Constructor and Description |
|---|
SlideSettings(int slideTarget,
int slideSize,
int slideOffset)
Construct a new slide settings for interpolating density at top/bottom of world.
|
| Modifier and Type | Method and Description |
|---|---|
double |
applyBottomSlide(double density,
int noiseY)
Interpolates density for terrain curve at bottom of world.
|
double |
applyTopSlide(double density,
int noiseY,
int noiseSizeY)
Interpolates density for terrain curve at top of world.
|
public final int slideTarget
public final int slideSize
public final int slideOffset
public SlideSettings(int slideTarget,
int slideSize,
int slideOffset)
slideTarget - Target density for the slide.slideSize - Rate of change for interpolation delta.slideOffset - y-coordinate offset in noise coordinates.public double applyTopSlide(double density,
int noiseY,
int noiseSizeY)
density - Current terrain density.noiseY - y-coordinate in noise coordinates.noiseSizeY - Number of subchunks in world height.public double applyBottomSlide(double density,
int noiseY)
density - Current terrain density.noiseY - y-coordinate in noise coordinates.