Class ShapeDistortion
java.lang.Object
com.hypixel.hytale.server.worldgen.cave.shape.distorted.ShapeDistortion
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final NoisePropertystatic final ShapeDistortionprivate static final NoisePropertyprivate final NoisePropertyprivate final NoiseProperty -
Constructor Summary
ConstructorsConstructorDescriptionShapeDistortion(NoiseProperty widthNoise, NoiseProperty floorNoise, NoiseProperty ceilingNoise) -
Method Summary
Modifier and TypeMethodDescriptiondoublegetCeilingFactor(int seed, double x, double z) doublegetFloorFactor(int seed, double x, double z) doublegetWidthFactor(int seed, double x, double z) static ShapeDistortionof(NoiseProperty widthNoise, NoiseProperty floorNoise, NoiseProperty ceilingNoise)
-
Field Details
-
DEFAULT_NOISE
-
DEFAULT
-
widthNoise
-
floorNoise
-
ceilingNoise
-
-
Constructor Details
-
ShapeDistortion
public ShapeDistortion(NoiseProperty widthNoise, NoiseProperty floorNoise, NoiseProperty ceilingNoise)
-
-
Method Details
-
getWidthFactor
public double getWidthFactor(int seed, double x, double z) -
getFloorFactor
public double getFloorFactor(int seed, double x, double z) -
getCeilingFactor
public double getCeilingFactor(int seed, double x, double z) -
of
public static ShapeDistortion of(@Nullable NoiseProperty widthNoise, @Nullable NoiseProperty floorNoise, @Nullable NoiseProperty ceilingNoise)
-