Contents
Class ClimateGraph
java.lang.Object
com.hypixel.hytale.server.worldgen.climate.ClimateGraph
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionClimateGraph(int resolution, ClimateType[] parents, ClimateGraph.FadeMode fadeMode, double fadeRadius, double fadeDistance) -
Method Summary
Modifier and TypeMethodDescriptiondoublefadeMode()doublegetFade()doublegetFade(double x, double y) doublegetFade(int index) doublegetFadeRaw(double x, double y) doublegetFadeRaw(int index) intgetId(double x, double y) intgetId(int index) getTable()getType(double x, double y) getType(int id) intindexOf(double x, double y) voidrefresh()booleanvalidate(int id)
-
Field Details
-
RESOLUTION
public static final int RESOLUTION- See Also:
-
-
Constructor Details
-
ClimateGraph
public ClimateGraph(int resolution, @Nonnull ClimateType[] parents, @Nonnull ClimateGraph.FadeMode fadeMode, double fadeRadius, double fadeDistance)
-
-
Method Details
-
fadeRadius
public double fadeRadius() -
fadeDistance
public double fadeDistance() -
fadeMode
-
refresh
public void refresh() -
getParents
-
getChildren
-
getTable
-
getFade
-
indexOf
public int indexOf(double x, double y) -
getId
public int getId(int index) -
getFade
public double getFade(int index) -
getFadeRaw
public double getFadeRaw(int index) -
getId
public int getId(double x, double y) -
getFade
public double getFade(double x, double y) -
getFadeRaw
public double getFadeRaw(double x, double y) -
getType
-
validate
public boolean validate(int id) -
getType
-