Class WorldEditRegionConverter

java.lang.Object
com.sk89q.worldguard.protection.util.WorldEditRegionConverter

public final class WorldEditRegionConverter extends Object
A helper class to convert regions from WorldGuard to WorldEdit
  • Method Details

    • convertToRegion

      public static com.sk89q.worldedit.regions.Region convertToRegion(ProtectedRegion region)
      Converts a ProtectedRegion to a WorldEdit Region, otherwise null if the ProtectedRegion can't be converted to a RegionSelector.
      Parameters:
      region - the WorldGuard region
      Returns:
      the WorldEdit Region
    • convertToSelector

      public static com.sk89q.worldedit.regions.RegionSelector convertToSelector(ProtectedRegion region)
      Converts a ProtectedRegion to a WorldEdit RegionSelector, otherwise null if the ProtectedRegion can't be converted to a RegionSelector.
      Parameters:
      region - the WorldGuard region
      Returns:
      the WorldEdit Region