Class AbstractDistortedBody

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

public abstract class AbstractDistortedBody extends AbstractDistortedShape
  • Constructor Details

    • AbstractDistortedBody

      public AbstractDistortedBody(@Nonnull org.joml.Vector3d o, org.joml.Vector3d v, double yaw, double pitch, double radiusX, double radiusY, double radiusZ)
  • Method Details

    • getStart

      @Nonnull public org.joml.Vector3d getStart()
      Description copied from interface: DistortedShape
      Get the start point of this Shape
      Returns:
      the start point
    • getEnd

      @Nonnull public org.joml.Vector3d getEnd()
      Description copied from interface: DistortedShape
      Get the end point of this Shape
      Returns:
      the end point
    • getHeightAtProjection

      public double getHeightAtProjection(int caveSeed, double x, double z, double t, double centerY, CaveType caveType, 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:
      caveSeed - 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
    • getFloor

      public double getFloor(double x, double z, double centerY, double height)
    • getCeiling

      public double getCeiling(double x, double z, double centerY, double height)