Contents
Class ShapeDistortion
java.lang.Object
com.hypixel.hytale.server.worldgen.cave.shape.distorted.ShapeDistortion
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionShapeDistortion(NoiseProperty widthNoise, NoiseProperty floorNoise, NoiseProperty ceilingNoise) -
Method Summary
Modifier and TypeMethodDescriptiondoublegetCeilingFactor(int seed, double x, double z) Get the ceiling distortion noise at position xzdoublegetFloorFactor(int seed, double x, double z) Get the floor distortion noise at position xzdoublegetWidthFactor(int seed, double x, double z) Get the width distortion noise at position xzstatic ShapeDistortionof(NoiseProperty widthNoise, NoiseProperty floorNoise, NoiseProperty ceilingNoise)
-
Field Details
-
DEFAULT
-
-
Constructor Details
-
ShapeDistortion
public ShapeDistortion(NoiseProperty widthNoise, NoiseProperty floorNoise, NoiseProperty ceilingNoise)
-
-
Method Details
-
getWidthFactor
public double getWidthFactor(int seed, double x, double z) Get the width distortion noise at position xz- Parameters:
seed- the noise seedx- the x-coordinatez- the z-coordinate- Returns:
- a noise value intended to modulate a shape's width
-
getFloorFactor
public double getFloorFactor(int seed, double x, double z) Get the floor distortion noise at position xz- Parameters:
seed- the noise seedx- the x-coordinatez- the z-coordinate- Returns:
- a noise value intended to modulate a shape's floor height
-
getCeilingFactor
public double getCeilingFactor(int seed, double x, double z) Get the ceiling distortion noise at position xz- Parameters:
seed- the noise seedx- the x-coordinatez- the z-coordinate- Returns:
- a noise value intended to modulate a shape's ceiling height
-
of
public static ShapeDistortion of(@Nullable NoiseProperty widthNoise, @Nullable NoiseProperty floorNoise, @Nullable NoiseProperty ceilingNoise)
-