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 pos1z, int pos2z) Deprecated, for removal: This API element is subject to removal in a future version.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) static @NonNull Rectangle2D
toRectangle
(@NonNull CuboidRegion region) Deprecated, for removal: This API element is subject to removal in a future version.Unused internally.
-
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
@Deprecated(forRemoval=true, since="6.6.0") public static CuboidRegion createRegion(int pos1x, int pos2x, int pos1z, int pos2z) Deprecated, for removal: This API element is subject to removal in a future version. -
createRegion
public static CuboidRegion createRegion(int pos1x, int pos2x, int pos1y, int pos2y, int pos1z, int pos2z) -
contains
-
contains
-
toRectangle
@Deprecated(forRemoval=true, since="6.11.1") public static @NonNull Rectangle2D toRectangle(@NonNull CuboidRegion region) Deprecated, for removal: This API element is subject to removal in a future version.Unused internally. Scheduled for removal in next major release. -
intersects
-