Contents
- Description
- Constructor Summary
- Method Summary
- Constructor Details
- Method Details
- createColumnBounds_voxelGrid(Vector3i, int, int)
- createBufferBoundsInclusive_fromVoxelBounds(Bounds3i)
- createColumnBounds_bufferGrid(Vector3i, int, int)
- createChunkBounds_voxelGrid(int, int)
- createUnitBounds3i(Vector3ic)
- createBounds_fromRadius_originVoxelInclusive(int)
- createBounds_fromVector_originVoxelInclusive(Vector3i)
- createChunkBounds_bufferGrid(int, int)
- toVoxelGrid_fromBufferGrid(Bounds3i)
- toVoxelGrid_fromBufferGrid(Vector3i)
- toBufferGrid_fromVoxelGrid(int)
- toBufferGrid_fromVoxelGrid(Vector3i)
- toBufferDistanceInclusive_fromVoxelDistance(int)
- toIntegerGrid_fromDecimalGrid(Vector3d)
- toXVoxelGridInsideBuffer_fromWorldGrid(int)
- toYVoxelGridInsideBuffer_fromWorldGrid(int)
- toZVoxelGridInsideBuffer_fromWorldGrid(int)
- toVoxelGridInsideBuffer_fromWorldGrid(Vector3i)
- toIndexFromPositionYXZ(int, int, int, Bounds3i)
- toIndexFromPositionYXZ(Vector3i, Bounds3i)
- setBoundsYToWorldHeight_bufferGrid(Bounds3i)
- setBoundsYToWorldHeight_voxelGrid(Bounds3i)
- toVoxelPosition_fromChunkPosition(Vector3i)
Class GridUtils
java.lang.Object
com.hypixel.hytale.builtin.hytalegenerator.GridUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Bounds3icreateBounds_fromRadius_originVoxelInclusive(int radius) static Bounds3icreateBounds_fromVector_originVoxelInclusive(org.joml.Vector3i range) static Bounds3icreateBufferBoundsInclusive_fromVoxelBounds(Bounds3i bounds_voxelGrid) static Bounds3icreateChunkBounds_bufferGrid(int x_chunkGrid, int z_chunkGrid) static Bounds3icreateChunkBounds_voxelGrid(int x_chunkGrid, int z_chunkGrid) static Bounds3icreateColumnBounds_bufferGrid(org.joml.Vector3i position_bufferGrid, int minY_bufferGrid, int maxY_bufferGrid) static Bounds3icreateColumnBounds_voxelGrid(org.joml.Vector3i position_bufferGrid, int minY_voxelSpace, int maxY_voxelSpace) static Bounds3icreateUnitBounds3i(org.joml.Vector3ic position) static Bounds3isetBoundsYToWorldHeight_bufferGrid(Bounds3i bounds_bufferGrid) static voidsetBoundsYToWorldHeight_voxelGrid(Bounds3i bounds_voxelGrid) static inttoBufferDistanceInclusive_fromVoxelDistance(int distance_voxelGrid) static inttoBufferGrid_fromVoxelGrid(int worldPosition_voxelGrid) static voidtoBufferGrid_fromVoxelGrid(org.joml.Vector3i worldPosition_voxelGrid) static inttoIndexFromPositionYXZ(int x, int y, int z, Bounds3i bounds) static inttoIndexFromPositionYXZ(org.joml.Vector3i position, Bounds3i bounds) static org.joml.Vector3itoIntegerGrid_fromDecimalGrid(org.joml.Vector3d worldPosition_decimalGrid) static voidtoVoxelGrid_fromBufferGrid(Bounds3i bounds_bufferGrid) static voidtoVoxelGrid_fromBufferGrid(org.joml.Vector3i position_voxelGrid) static voidtoVoxelGridInsideBuffer_fromWorldGrid(org.joml.Vector3i worldPosition_voxelGrid) static voidtoVoxelPosition_fromChunkPosition(org.joml.Vector3i chunkPosition_voxelGrid) static inttoXVoxelGridInsideBuffer_fromWorldGrid(int x_voxelGrid) static inttoYVoxelGridInsideBuffer_fromWorldGrid(int y_voxelGrid) static inttoZVoxelGridInsideBuffer_fromWorldGrid(int z_voxelGrid)
-
Constructor Details
-
GridUtils
public GridUtils()
-
-
Method Details
-
createColumnBounds_voxelGrid
@Nonnull public static Bounds3i createColumnBounds_voxelGrid(@Nonnull org.joml.Vector3i position_bufferGrid, int minY_voxelSpace, int maxY_voxelSpace) -
createBufferBoundsInclusive_fromVoxelBounds
-
createColumnBounds_bufferGrid
@Nonnull public static Bounds3i createColumnBounds_bufferGrid(@Nonnull org.joml.Vector3i position_bufferGrid, int minY_bufferGrid, int maxY_bufferGrid) -
createChunkBounds_voxelGrid
-
createUnitBounds3i
-
createBounds_fromRadius_originVoxelInclusive
-
createBounds_fromVector_originVoxelInclusive
@Nonnull public static Bounds3i createBounds_fromVector_originVoxelInclusive(@Nonnull org.joml.Vector3i range) -
createChunkBounds_bufferGrid
-
toVoxelGrid_fromBufferGrid
-
toVoxelGrid_fromBufferGrid
public static void toVoxelGrid_fromBufferGrid(@Nonnull org.joml.Vector3i position_voxelGrid) -
toBufferGrid_fromVoxelGrid
public static int toBufferGrid_fromVoxelGrid(int worldPosition_voxelGrid) -
toBufferGrid_fromVoxelGrid
public static void toBufferGrid_fromVoxelGrid(@Nonnull org.joml.Vector3i worldPosition_voxelGrid) -
toBufferDistanceInclusive_fromVoxelDistance
public static int toBufferDistanceInclusive_fromVoxelDistance(int distance_voxelGrid) -
toIntegerGrid_fromDecimalGrid
@Nonnull public static org.joml.Vector3i toIntegerGrid_fromDecimalGrid(@Nonnull org.joml.Vector3d worldPosition_decimalGrid) -
toXVoxelGridInsideBuffer_fromWorldGrid
public static int toXVoxelGridInsideBuffer_fromWorldGrid(int x_voxelGrid) -
toYVoxelGridInsideBuffer_fromWorldGrid
public static int toYVoxelGridInsideBuffer_fromWorldGrid(int y_voxelGrid) -
toZVoxelGridInsideBuffer_fromWorldGrid
public static int toZVoxelGridInsideBuffer_fromWorldGrid(int z_voxelGrid) -
toVoxelGridInsideBuffer_fromWorldGrid
public static void toVoxelGridInsideBuffer_fromWorldGrid(@Nonnull org.joml.Vector3i worldPosition_voxelGrid) -
toIndexFromPositionYXZ
-
toIndexFromPositionYXZ
public static int toIndexFromPositionYXZ(@Nonnull org.joml.Vector3i position, @Nonnull Bounds3i bounds) -
setBoundsYToWorldHeight_bufferGrid
-
setBoundsYToWorldHeight_voxelGrid
-
toVoxelPosition_fromChunkPosition
public static void toVoxelPosition_fromChunkPosition(@Nonnull org.joml.Vector3i chunkPosition_voxelGrid)
-