Class RegionUtil

java.lang.Object
com.plotsquared.core.util.RegionUtil

public class RegionUtil extends Object
  • Constructor Details

  • Method Details

    • getCorners

      public static @NonNull Location[] getCorners(@NonNull String world, @NonNull com.sk89q.worldedit.regions.CuboidRegion region)
    • getCorners

      public static @NonNull Location[] getCorners(String world, Collection<com.sk89q.worldedit.regions.CuboidRegion> regions)
    • getAxisAlignedBoundingBox

      public static @NonNull com.sk89q.worldedit.regions.CuboidRegion getAxisAlignedBoundingBox(Iterable<com.sk89q.worldedit.regions.CuboidRegion> regions)
      Create a minimum CuboidRegion containing all given regions.
      Parameters:
      regions - The regions the bounding box should contain.
      Returns:
      a CuboidRegion that contains all given regions.
    • createRegion

      public static com.sk89q.worldedit.regions.CuboidRegion createRegion(int pos1x, int pos2x, int pos1y, int pos2y, int pos1z, int pos2z)
    • contains

      public static boolean contains(com.sk89q.worldedit.regions.CuboidRegion region, int x, int z)
    • contains

      public static boolean contains(com.sk89q.worldedit.regions.CuboidRegion region, int x, int y, int z)
    • intersects

      public static boolean intersects(com.sk89q.worldedit.regions.CuboidRegion region, com.sk89q.worldedit.regions.CuboidRegion other)