Contents
- Description
- Constructor Summary
- Method Summary
- Constructor Details
- Method Details
- forEachBlock(int, int, int, int, int, int, T, TriIntObjPredicate)
- forEachBlock(int, int, int, int, int, int, boolean, boolean, T, TriIntObjPredicate)
- forEachBlock(int, int, int, int, int, int, int, boolean, T, TriIntObjPredicate)
- forEachBlock(int, int, int, int, int, int, int, boolean, boolean, boolean, T, TriIntObjPredicate)
Class BlockInvertedDomeUtil
java.lang.Object
com.hypixel.hytale.math.block.BlockInvertedDomeUtil
Utility for iterating over blocks in an inverted dome shape (bottom half of a sphere / bowl).
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> booleanforEachBlock(int originX, int originY, int originZ, int radiusX, int radiusY, int radiusZ, boolean evenXZ, boolean evenH, T t, TriIntObjPredicate<T> consumer) Runs the specified operation on all blocks in the inverted dome (bottom half of sphere) specified by the parameters.static <T> booleanforEachBlock(int originX, int originY, int originZ, int radiusX, int radiusY, int radiusZ, int thickness, boolean capped, boolean evenXZ, boolean evenH, T t, TriIntObjPredicate<T> consumer) static <T> booleanforEachBlock(int originX, int originY, int originZ, int radiusX, int radiusY, int radiusZ, int thickness, boolean capped, T t, TriIntObjPredicate<T> consumer) Runs the specified operation on all blocks in the hollow inverted dome specified by the parameters.static <T> booleanforEachBlock(int originX, int originY, int originZ, int radiusX, int radiusY, int radiusZ, T t, TriIntObjPredicate<T> consumer) Runs the specified operation on all blocks in the inverted dome (bottom half of sphere) specified by the parameters.
-
Constructor Details
-
BlockInvertedDomeUtil
public BlockInvertedDomeUtil()
-
-
Method Details
-
forEachBlock
public static <T> boolean forEachBlock(int originX, int originY, int originZ, int radiusX, int radiusY, int radiusZ, @Nullable T t, @Nonnull TriIntObjPredicate<T> consumer) Runs the specified operation on all blocks in the inverted dome (bottom half of sphere) specified by the parameters.- Parameters:
originX- The center of the inverted dome on the X axisoriginY- The top of the inverted dome on the Y axisoriginZ- The center of the inverted dome on the Z axisradiusX- The radius of the inverted dome on the X axis. Must be greater than 0.radiusY- The radius of the inverted dome on the Y axis (depth). Must be greater than 0.radiusZ- The radius of the inverted dome on the Z axis. Must be greater than 0.consumer- The operation to execute on each of the coordinates' values
-
forEachBlock
public static <T> boolean forEachBlock(int originX, int originY, int originZ, int radiusX, int radiusY, int radiusZ, boolean evenXZ, boolean evenH, @Nullable T t, @Nonnull TriIntObjPredicate<T> consumer) Runs the specified operation on all blocks in the inverted dome (bottom half of sphere) specified by the parameters. When evenXZ/evenH are true, shifts sampling by 0.5 to produce even-width shapes.- Parameters:
originX- The center of the inverted dome on the X axisoriginY- The top of the inverted dome on the Y axisoriginZ- The center of the inverted dome on the Z axisradiusX- The radius of the inverted dome on the X axis. Must be greater than 0.radiusY- The radius of the inverted dome on the Y axis (depth). Must be greater than 0.radiusZ- The radius of the inverted dome on the Z axis. Must be greater than 0.evenXZ- Whether the horizontal size is even (shifts sampling by 0.5)evenH- Whether the vertical size is even (shifts sampling by 0.5)consumer- The operation to execute on each of the coordinates' values
-
forEachBlock
public static <T> boolean forEachBlock(int originX, int originY, int originZ, int radiusX, int radiusY, int radiusZ, int thickness, boolean capped, @Nullable T t, @Nonnull TriIntObjPredicate<T> consumer) Runs the specified operation on all blocks in the hollow inverted dome specified by the parameters. -
forEachBlock
public static <T> boolean forEachBlock(int originX, int originY, int originZ, int radiusX, int radiusY, int radiusZ, int thickness, boolean capped, boolean evenXZ, boolean evenH, @Nullable T t, @Nonnull TriIntObjPredicate<T> consumer)
-