Class BasicHeightThresholdInterpreter
java.lang.Object
com.hypixel.hytale.procedurallib.condition.BasicHeightThresholdInterpreter
- All Implemented Interfaces:
IHeightThresholdInterpreter
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final intprotected final float[]protected final int -
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 class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.hypixel.hytale.procedurallib.condition.IHeightThresholdInterpreter
isSpawnable
-
Field Details
-
interpolatedThresholds
@Nonnull protected final float[] interpolatedThresholds -
lowestNonOne
protected final int lowestNonOne -
highestNonZero
protected final int highestNonZero
-
-
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
-