Class FadeContainer
java.lang.Object
com.hypixel.hytale.server.worldgen.container.FadeContainer
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final doubleprotected final doubleprotected final doubleprotected final doublestatic final doubleprotected final doubleprotected final doubleprotected final double -
Constructor Summary
ConstructorsConstructorDescriptionFadeContainer(double maskFadeStart, double maskFadeLength, double terrainFadeStart, double terrainFadeLength, double fadeHeightmap) -
Method Summary
Modifier and TypeMethodDescriptiondoublegetFactor(ZoneGeneratorResult result, double distanceFromBorder, double gradientWidth) doubledoubledoubledoubledoublegetMaskFactor(ZoneGeneratorResult result) doubledoubledoubledoublegetTerrainFactor(ZoneGeneratorResult result) private static doublelimit(double d) booleantoString()
-
Field Details
-
NO_FADE_HEIGHTMAP
public static final double NO_FADE_HEIGHTMAP- See Also:
-
maskFadeStart
protected final double maskFadeStart -
maskFadeLength
protected final double maskFadeLength -
maskFadeSum
protected final double maskFadeSum -
terrainFadeStart
protected final double terrainFadeStart -
terrainFadeLength
protected final double terrainFadeLength -
terrainFadeSum
protected final double terrainFadeSum -
fadeHeightmap
protected final double fadeHeightmap
-
-
Constructor Details
-
FadeContainer
public FadeContainer(double maskFadeStart, double maskFadeLength, double terrainFadeStart, double terrainFadeLength, double fadeHeightmap)
-
-
Method Details
-
getMaskFadeStart
public double getMaskFadeStart() -
getMaskFadeLength
public double getMaskFadeLength() -
getMaskFadeSum
public double getMaskFadeSum() -
getHeightFadeStart
public double getHeightFadeStart() -
getHeightFadeLength
public double getHeightFadeLength() -
getHeightFadeSum
public double getHeightFadeSum() -
getFadeHeightmap
public double getFadeHeightmap() -
getMaskFactor
-
getTerrainFactor
-
getFactor
public double getFactor(@Nonnull ZoneGeneratorResult result, double distanceFromBorder, double gradientWidth) -
shouldFade
public boolean shouldFade() -
toString
-
limit
private static double limit(double d)
-