Class AbstractDistortedExtrusion

java.lang.Object
com.hypixel.hytale.server.worldgen.cave.shape.distorted.AbstractDistortedShape
com.hypixel.hytale.server.worldgen.cave.shape.distorted.AbstractDistortedExtrusion
All Implemented Interfaces:
DistortedShape, IChunkBounds, IWorldBounds
Direct Known Subclasses:
DistortedCylinderShape

public abstract class AbstractDistortedExtrusion extends AbstractDistortedShape
  • Constructor Details

    • AbstractDistortedExtrusion

      public AbstractDistortedExtrusion(@Nonnull org.joml.Vector3d o, @Nonnull org.joml.Vector3d v, double width, double height, GeneralNoise.InterpolationFunction interpolation)
  • Method Details

    • getHeightAtProjection

      public double getHeightAtProjection(int seed, double x, double z, double t, double centerY, @Nonnull CaveType caveType, @Nonnull ShapeDistortion distortion)
      Description copied from interface: DistortedShape
      Get the height/vertical-radius of this Shape at a position x,z and corresponding projection t
      Parameters:
      seed - the CaveType seed
      x - the x-coordinate to get the height for
      z - the z-coordinate to get the height for
      t - the projection to get the height for
      centerY - the y-coordinate at the center of this Shape at projection t
      caveType - the CaveType
      distortion - the distortion to be applied to the Shape
      Returns:
      the height/vertical-radius of the Shape at the given position