Class DefaultCellJitter

java.lang.Object
com.hypixel.hytale.procedurallib.logic.cell.jitter.DefaultCellJitter
All Implemented Interfaces:
CellJitter

public class DefaultCellJitter extends Object implements CellJitter
  • Field Details

    • DEFAULT_ONE

      public static final CellJitter DEFAULT_ONE
  • Constructor Details

    • DefaultCellJitter

      public DefaultCellJitter()
  • Method Details

    • getMaxX

      public double getMaxX()
      Description copied from interface: CellJitter
      Returns the maximum amount of x-axis jitter applied by this CellJitter.
      Specified by:
      getMaxX in interface CellJitter
      Returns:
      The maximum amount of x-axis jitter.
    • getMaxY

      public double getMaxY()
      Description copied from interface: CellJitter
      Returns the maximum amount of y-axis jitter applied by this CellJitter.
      Specified by:
      getMaxY in interface CellJitter
      Returns:
      The maximum amount of y-axis jitter.
    • getMaxZ

      public double getMaxZ()
      Description copied from interface: CellJitter
      Returns the maximum amount of z-axis jitter applied by this CellJitter.
      Specified by:
      getMaxZ in interface CellJitter
      Returns:
      The maximum amount of z-axis jitter.
    • getPointX

      public double getPointX(int cx, @Nonnull DoubleArray.Double2 vec)
      Description copied from interface: CellJitter
      Returns the x-coordinate of the 2D jittered cell centre-point.
      Specified by:
      getPointX in interface CellJitter
      Parameters:
      cx - The cell x-index.
      vec - The raw offset values to be applied to the cell index.
      Returns:
      The resulting jittered x-coordinate of the cell centre-point.
    • getPointY

      public double getPointY(int cy, @Nonnull DoubleArray.Double2 vec)
      Description copied from interface: CellJitter
      Returns the y-coordinate of the 2D jittered cell centre-point.
      Specified by:
      getPointY in interface CellJitter
      Parameters:
      cy - The cell y-index.
      vec - The raw offset values to be applied to the cell index.
      Returns:
      The resulting jittered y-coordinate of the cell centre-point.
    • getPointX

      public double getPointX(int cx, @Nonnull DoubleArray.Double3 vec)
      Description copied from interface: CellJitter
      Returns the x-coordinate of the 3D jittered cell centre-point.
      Specified by:
      getPointX in interface CellJitter
      Parameters:
      cx - The cell y-index.
      vec - The raw offset values to be applied to the cell index.
      Returns:
      The resulting jittered x-coordinate of the cell centre-point.
    • getPointY

      public double getPointY(int cy, @Nonnull DoubleArray.Double3 vec)
      Description copied from interface: CellJitter
      Returns the x-coordinate of the 3D jittered cell centre-point.
      Specified by:
      getPointY in interface CellJitter
      Parameters:
      cy - The cell y-index.
      vec - The raw offset values to be applied to the cell index.
      Returns:
      The resulting jittered y-coordinate of the cell centre-point.
    • getPointZ

      public double getPointZ(int cz, @Nonnull DoubleArray.Double3 vec)
      Description copied from interface: CellJitter
      Returns the z-coordinate of the 3D jittered cell centre-point.
      Specified by:
      getPointZ in interface CellJitter
      Parameters:
      cz - The cell y-index.
      vec - The raw offset values to be applied to the cell index.
      Returns:
      The resulting jittered z-coordinate of the cell centre-point.
    • toString

      @Nonnull public String toString()
      Overrides:
      toString in class Object