Skip to main content

get_largest_rectangle_around

Function get_largest_rectangle_around 

Source
pub fn get_largest_rectangle_around(
    center: BlockPos,
    axis1: Axis,
    limit1: i32,
    axis2: Axis,
    limit2: i32,
    test: impl Fn(BlockPos) -> bool,
) -> FoundRectangle
Expand description

Returns vanilla BlockUtil.getLargestRectangleAround.

ยงPanics

Panics if either scan limit is negative.