Class WorldEditRegionConverter
java.lang.Object
com.sk89q.worldguard.protection.util.WorldEditRegionConverter
A helper class to convert regions from WorldGuard to WorldEdit
-
Method Summary
Modifier and TypeMethodDescriptionstatic 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.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.
-
Method Details
-
convertToRegion
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
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
-