Contents
Class PointField
java.lang.Object
com.hypixel.hytale.builtin.hytalegenerator.noise.pointprovider.PointField
- All Implemented Interfaces:
PointProvider
- Direct Known Subclasses:
JitterPointField
Generates 1D, 2D, 3D and 4D noise based on the same function.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionit.unimi.dsi.fastutil.doubles.DoubleListpoints1d(double min, double max) Retrieves 1D points and create new list.it.unimi.dsi.fastutil.ints.IntListpoints1i(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.
-
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:
points3iin interfacePointProvider
-
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:
points2iin interfacePointProvider
-
points1i
@Nonnull public it.unimi.dsi.fastutil.ints.IntList points1i(int min, int max) Retrieves 1D points and create new list.- Specified by:
points1iin interfacePointProvider
-
points3d
@Nonnull public List<org.joml.Vector3d> points3d(@Nonnull org.joml.Vector3d min, @Nonnull org.joml.Vector3d max) - Specified by:
points3din interfacePointProvider
-
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:
points2din interfacePointProvider
-
points1d
@Nonnull public it.unimi.dsi.fastutil.doubles.DoubleList points1d(double min, double max) Retrieves 1D points and create new list.- Specified by:
points1din interfacePointProvider
-
setScale
Sets the scale of each coordinate. The scales multiply the coordinate parameters of the valueAt methods. -
setScale
Sets the same scale to all coordinates. The scale multiplies the coordinate parameters of the valueAt methods.
-