Contents
Class NoiseHeightThresholdInterpreter
java.lang.Object
com.hypixel.hytale.procedurallib.condition.NoiseHeightThresholdInterpreter
- All Implemented Interfaces:
IHeightThresholdInterpreter
- Since:
- 25.03.2016
-
Constructor Summary
ConstructorsConstructorDescriptionNoiseHeightThresholdInterpreter(NoiseProperty noise, float[] keys, IHeightThresholdInterpreter[] values) -
Method Summary
Modifier and TypeMethodDescriptiondoublegetContext(int seed, double x, double y) intintintfloatgetThreshold(int seed, double x, double z, int height) floatgetThreshold(int seed, double x, double z, int height, double context) toString()Methods inherited from interface IHeightThresholdInterpreter
isSpawnable
-
Constructor Details
-
NoiseHeightThresholdInterpreter
public NoiseHeightThresholdInterpreter(NoiseProperty noise, @Nonnull float[] keys, @Nonnull IHeightThresholdInterpreter[] values)
-
-
Method Details
-
getLowestNonOne
public int getLowestNonOne()- Specified by:
getLowestNonOnein interfaceIHeightThresholdInterpreter
-
getHighestNonZero
public int getHighestNonZero()- Specified by:
getHighestNonZeroin interfaceIHeightThresholdInterpreter
-
getContext
public double getContext(int seed, double x, double y) - Specified by:
getContextin interfaceIHeightThresholdInterpreter
-
getLength
public int getLength()- Specified by:
getLengthin interfaceIHeightThresholdInterpreter
-
getThreshold
public float getThreshold(int seed, double x, double z, int height) - Specified by:
getThresholdin interfaceIHeightThresholdInterpreter
-
getThreshold
public float getThreshold(int seed, double x, double z, int height, double context) - Specified by:
getThresholdin interfaceIHeightThresholdInterpreter
-
toString
-