Class BlockUtil
java.lang.Object
net.minecraft.util.BlockUtil
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic BlockUtil.FoundRectanglegetLargestRectangleAround(BlockPos center, Direction.Axis axis1, int limit1, Direction.Axis axis2, int limit2, Predicate<BlockPos> test) private static intgetLimit(Predicate<BlockPos> test, BlockPos.MutableBlockPos pos, Direction direction, int limit) (package private) static Pair<BlockUtil.IntBounds, Integer> getMaxRectangleLocation(int[] columns) getTopConnectedBlock(BlockGetter level, BlockPos pos, Block bodyBlock, Direction growthDirection, Block headBlock)
-
Constructor Details
-
BlockUtil
public BlockUtil()
-
-
Method Details
-
getLargestRectangleAround
public static BlockUtil.FoundRectangle getLargestRectangleAround(BlockPos center, Direction.Axis axis1, int limit1, Direction.Axis axis2, int limit2, Predicate<BlockPos> test) -
getLimit
private static int getLimit(Predicate<BlockPos> test, BlockPos.MutableBlockPos pos, Direction direction, int limit) -
getMaxRectangleLocation
-
getTopConnectedBlock
-