public class NoiseHeightThresholdInterpreter implements IHeightThresholdInterpreter
Class NoiseHeightThresholdInterpreter. Provides noiseheightthresholdinterpreter functionality for the Hytale server.
java.lang.Object > NoiseHeightThresholdInterpreter
Field Summary
length
final
int
length
Field length.
distance
final
float
distance
Field distance.
Method Detail
NoiseHeightThresholdInterpreter
public
public
NoiseHeightThresholdInterpreter
(final NoiseProperty noise, @Nonnull final float[] keys, @Nonnull final IHeightThresholdInterpreter[] values)
Method NoiseHeightThresholdInterpreter.
- Parameters:
final NoisePropertynoise@Nonnull final float[]keys@Nonnull final IHeightThresholdInterpreter[]values
getLowestNonOne
public
int
getLowestNonOne
()
Method getLowestNonOne.
getHighestNonZero
public
int
getHighestNonZero
()
Method getHighestNonZero.
noise
protected
double
noise
(final int seed, final double x, final double y)
Method noise.
- Parameters:
final intseedfinal doublexfinal doubley
getContext
public
double
getContext
(final int seed, final double x, final double y)
Method getContext.
- Parameters:
final intseedfinal doublexfinal doubley
getLength
public
int
getLength
()
Method getLength.
getThreshold
public
float
getThreshold
(final int seed, final double x, final double z, final int height)
Method getThreshold.
- Parameters:
final intseedfinal doublexfinal doublezfinal intheight
lerp
static
float
lerp
(final float from, final float to, final float t)
Method lerp.
- Parameters:
final floatfromfinal floattofinal floatt
checkInterpreterLength
static
void
checkInterpreterLength
(@Nonnull final IHeightThresholdInterpreter[] values)
Method checkInterpreterLength.
- Parameters:
@Nonnull final IHeightThresholdInterpreter[]values
toString
public
String
toString
()
Method toString.