Contents
Class BasicHeightThresholdInterpreter
java.lang.Object
com.hypixel.hytale.procedurallib.condition.BasicHeightThresholdInterpreter
- All Implemented Interfaces:
IHeightThresholdInterpreter
- Since:
- 25.03.2016
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionBasicHeightThresholdInterpreter(int[] positions, float[] thresholds, int length) -
Method Summary
Modifier and TypeMethodDescriptiondoublegetContext(int seed, double x, double y) intintintfloatgetThreshold(int seed, double x, double y, int height) floatgetThreshold(int seed, double x, double y, int height, double context) toString()Methods inherited from interface IHeightThresholdInterpreter
isSpawnable
-
Constructor Details
-
BasicHeightThresholdInterpreter
public BasicHeightThresholdInterpreter(@Nonnull int[] positions, @Nonnull float[] thresholds, int length)
-
-
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 y, int height) - Specified by:
getThresholdin interfaceIHeightThresholdInterpreter
-
getThreshold
public float getThreshold(int seed, double x, double y, int height, double context) - Specified by:
getThresholdin interfaceIHeightThresholdInterpreter
-
toString
-