Package com.plotsquared.core.util
Class RegionUtil
java.lang.Object
com.plotsquared.core.util.RegionUtil
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
contains
(CuboidRegion region, int x, int z) static boolean
contains
(CuboidRegion region, int x, int y, int z) static CuboidRegion
createRegion
(int pos1x, int pos2x, int pos1y, int pos2y, int pos1z, int pos2z) static @NonNull CuboidRegion
getAxisAlignedBoundingBox
(Iterable<CuboidRegion> regions) Create a minimumCuboidRegion
containing all given regions.getCorners
(@NonNull String world, @NonNull CuboidRegion region) getCorners
(String world, Collection<CuboidRegion> regions) static boolean
intersects
(CuboidRegion region, CuboidRegion other)
-
Constructor Details
-
RegionUtil
public RegionUtil()
-
-
Method Details
-
getCorners
-
getCorners
-
getAxisAlignedBoundingBox
Create a minimumCuboidRegion
containing all given regions.- Parameters:
regions
- The regions the bounding box should contain.- Returns:
- a CuboidRegion that contains all given regions.
-
createRegion
public static CuboidRegion createRegion(int pos1x, int pos2x, int pos1y, int pos2y, int pos1z, int pos2z) -
contains
-
contains
-
intersects
-