BasicHeightThresholdInterpreter

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[] thresholds
final int length

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: %s
thresholds: %s"
positions.length positions.length
thresholds.length thresholds.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 int seed
final double x
final double y

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 int seed
final double x
final double y
final int height

toString

public String toString ()

Method toString.