Contents
Class DefaultCellJitter
java.lang.Object
com.hypixel.hytale.procedurallib.logic.cell.jitter.DefaultCellJitter
- All Implemented Interfaces:
CellJitter
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoublegetMaxX()Returns the maximum amount of x-axis jitter applied by this CellJitter.doublegetMaxY()Returns the maximum amount of y-axis jitter applied by this CellJitter.doublegetMaxZ()Returns the maximum amount of z-axis jitter applied by this CellJitter.doublegetPointX(int cx, DoubleArray.Double2 vec) Returns the x-coordinate of the 2D jittered cell centre-point.doublegetPointX(int cx, DoubleArray.Double3 vec) Returns the x-coordinate of the 3D jittered cell centre-point.doublegetPointY(int cy, DoubleArray.Double2 vec) Returns the y-coordinate of the 2D jittered cell centre-point.doublegetPointY(int cy, DoubleArray.Double3 vec) Returns the x-coordinate of the 3D jittered cell centre-point.doublegetPointZ(int cz, DoubleArray.Double3 vec) Returns the z-coordinate of the 3D jittered cell centre-point.toString()
-
Field Details
-
DEFAULT_ONE
-
-
Constructor Details
-
DefaultCellJitter
public DefaultCellJitter()
-
-
Method Details
-
getMaxX
public double getMaxX()Description copied from interface:CellJitterReturns the maximum amount of x-axis jitter applied by this CellJitter.- Specified by:
getMaxXin interfaceCellJitter- Returns:
- The maximum amount of x-axis jitter.
-
getMaxY
public double getMaxY()Description copied from interface:CellJitterReturns the maximum amount of y-axis jitter applied by this CellJitter.- Specified by:
getMaxYin interfaceCellJitter- Returns:
- The maximum amount of y-axis jitter.
-
getMaxZ
public double getMaxZ()Description copied from interface:CellJitterReturns the maximum amount of z-axis jitter applied by this CellJitter.- Specified by:
getMaxZin interfaceCellJitter- Returns:
- The maximum amount of z-axis jitter.
-
getPointX
Description copied from interface:CellJitterReturns the x-coordinate of the 2D jittered cell centre-point.- Specified by:
getPointXin interfaceCellJitter- 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
Description copied from interface:CellJitterReturns the y-coordinate of the 2D jittered cell centre-point.- Specified by:
getPointYin interfaceCellJitter- 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
Description copied from interface:CellJitterReturns the x-coordinate of the 3D jittered cell centre-point.- Specified by:
getPointXin interfaceCellJitter- 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
Description copied from interface:CellJitterReturns the x-coordinate of the 3D jittered cell centre-point.- Specified by:
getPointYin interfaceCellJitter- 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
Description copied from interface:CellJitterReturns the z-coordinate of the 3D jittered cell centre-point.- Specified by:
getPointZin interfaceCellJitter- 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
-