Class FillerBlockUtil
java.lang.Object
com.hypixel.hytale.server.core.util.FillerBlockUtil
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic enum -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final intprivate static final intprivate static final intstatic final intstatic final float -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidforEachFillerBlock(float threshold, BlockBoundingBoxes.RotatedVariantBoxes blockBoundingBoxes, TriIntConsumer consumer) static voidforEachFillerBlock(BlockBoundingBoxes.RotatedVariantBoxes blockBoundingBoxes, TriIntConsumer consumer) static intpack(int x, int y, int z) static booleantestFillerBlocks(float threshold, BlockBoundingBoxes.RotatedVariantBoxes blockBoundingBoxes, TriIntPredicate predicate) static booleantestFillerBlocks(BlockBoundingBoxes.RotatedVariantBoxes blockBoundingBoxes, TriIntPredicate predicate) static intunpackX(int val) static intunpackY(int val) static intunpackZ(int val) static <A,B> FillerBlockUtil.ValidationResult validateBlock(int x, int y, int z, int blockId, int rotation, int filler, A a, B b, FillerBlockUtil.FillerFetcher<A, B> fetcher)
-
Field Details
-
THRESHOLD
public static final float THRESHOLD- See Also:
-
NO_FILLER
public static final int NO_FILLER- See Also:
-
BITS_PER_AXIS
private static final int BITS_PER_AXIS- See Also:
-
MASK
private static final int MASK- See Also:
-
INVERT
private static final int INVERT- See Also:
-
-
Constructor Details
-
FillerBlockUtil
public FillerBlockUtil()
-
-
Method Details
-
forEachFillerBlock
public static void forEachFillerBlock(@Nonnull BlockBoundingBoxes.RotatedVariantBoxes blockBoundingBoxes, @Nonnull TriIntConsumer consumer) -
forEachFillerBlock
public static void forEachFillerBlock(float threshold, @Nonnull BlockBoundingBoxes.RotatedVariantBoxes blockBoundingBoxes, @Nonnull TriIntConsumer consumer) -
testFillerBlocks
public static boolean testFillerBlocks(@Nonnull BlockBoundingBoxes.RotatedVariantBoxes blockBoundingBoxes, @Nonnull TriIntPredicate predicate) -
testFillerBlocks
public static boolean testFillerBlocks(float threshold, @Nonnull BlockBoundingBoxes.RotatedVariantBoxes blockBoundingBoxes, @Nonnull TriIntPredicate predicate) -
validateBlock
public static <A,B> FillerBlockUtil.ValidationResult validateBlock(int x, int y, int z, int blockId, int rotation, int filler, A a, B b, @Nonnull FillerBlockUtil.FillerFetcher<A, B> fetcher) -
pack
public static int pack(int x, int y, int z) -
unpackX
public static int unpackX(int val) -
unpackY
public static int unpackY(int val) -
unpackZ
public static int unpackZ(int val)
-