Class PointField

java.lang.Object
com.hypixel.hytale.builtin.hytalegenerator.noise.pointprovider.PointField
All Implemented Interfaces:
PointProvider
Direct Known Subclasses:
JitterPointField

public abstract class PointField extends Object implements PointProvider
Generates 1D, 2D, 3D and 4D noise based on the same function.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    it.unimi.dsi.fastutil.doubles.DoubleList
    points1d(double min, double max)
    Retrieves 1D points and create new list.
    it.unimi.dsi.fastutil.ints.IntList
    points1i(int min, int max)
    Retrieves 1D points and create new list.
    List<org.joml.Vector2d>
    points2d(org.joml.Vector2d min, org.joml.Vector2d max)
    Retrieves 2D points and create new list.
    List<org.joml.Vector2i>
    points2i(org.joml.Vector2i min, org.joml.Vector2i max)
    Retrieves 2D points and create new list.
    List<org.joml.Vector3d>
    points3d(org.joml.Vector3d min, org.joml.Vector3d max)
     
    List<org.joml.Vector3i>
    points3i(org.joml.Vector3i min, org.joml.Vector3i max)
    Retrieves 3D points and create new list.
    setScale(double scale)
    Sets the same scale to all coordinates.
    setScale(double scaleX, double scaleY, double scaleZ, double scaleW)
    Sets the scale of each coordinate.

    Methods inherited from class Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface PointProvider

    points1d, points1i, points2d, points2i, points3d, points3i
  • Constructor Details

    • PointField

      public PointField()
  • Method Details

    • points3i

      @Nonnull public List<org.joml.Vector3i> points3i(@Nonnull org.joml.Vector3i min, @Nonnull org.joml.Vector3i max)
      Retrieves 3D points and create new list.
      Specified by:
      points3i in interface PointProvider
    • points2i

      @Nonnull public List<org.joml.Vector2i> points2i(@Nonnull org.joml.Vector2i min, @Nonnull org.joml.Vector2i max)
      Retrieves 2D points and create new list.
      Specified by:
      points2i in interface PointProvider
    • points1i

      @Nonnull public it.unimi.dsi.fastutil.ints.IntList points1i(int min, int max)
      Retrieves 1D points and create new list.
      Specified by:
      points1i in interface PointProvider
    • points3d

      @Nonnull public List<org.joml.Vector3d> points3d(@Nonnull org.joml.Vector3d min, @Nonnull org.joml.Vector3d max)
      Specified by:
      points3d in interface PointProvider
    • points2d

      @Nonnull public List<org.joml.Vector2d> points2d(@Nonnull org.joml.Vector2d min, @Nonnull org.joml.Vector2d max)
      Retrieves 2D points and create new list.
      Specified by:
      points2d in interface PointProvider
    • points1d

      @Nonnull public it.unimi.dsi.fastutil.doubles.DoubleList points1d(double min, double max)
      Retrieves 1D points and create new list.
      Specified by:
      points1d in interface PointProvider
    • setScale

      public PointField setScale(double scaleX, double scaleY, double scaleZ, double scaleW)
      Sets the scale of each coordinate. The scales multiply the coordinate parameters of the valueAt methods.
    • setScale

      @Nonnull public PointField setScale(double scale)
      Sets the same scale to all coordinates. The scale multiplies the coordinate parameters of the valueAt methods.