public class BasicHeightThresholdInterpreter implements IHeightThresholdInterpreter
Class BasicHeightThresholdInterpreter. Provides basicheightthresholdinterpreter functionality for the Hytale server.
java.lang.Object > BasicHeightThresholdInterpreter
Field Summary
distance
final
float
distance
Field distance.
Method Detail
BasicHeightThresholdInterpreter
public
public
BasicHeightThresholdInterpreter
(@Nonnull final int[] positions, @Nonnull final float[] thresholds, final int length)
Method BasicHeightThresholdInterpreter.
- Parameters:
@Nonnull final int[]positions@Nonnull final float[]thresholdsfinal intlength
IllegalArgumentException
public
new
IllegalArgumentException
(String.format("Mismatching array lengths! positions: %s, thresholds: %s", positions.length, thresholds.length)
Method IllegalArgumentException.
- Parameters:
String.format("Mismatching array lengths! positions:%sthresholds:%s"positions.lengthpositions.lengththresholds.lengththresholds.length
getLowestNonOne
public
int
getLowestNonOne
()
Method getLowestNonOne.
getHighestNonZero
public
int
getHighestNonZero
()
Method getHighestNonZero.
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 y, final int height)
Method getThreshold.
- Parameters:
final intseedfinal doublexfinal doubleyfinal intheight
toString
public
String
toString
()
Method toString.