Class RegionRemover
java.lang.Object
com.sk89q.worldguard.commands.task.RegionRemover
- All Implemented Interfaces:
Callable<Set<ProtectedRegion>>
Removes a region.
-
Constructor Summary
ConstructorsConstructorDescriptionRegionRemover(RegionManager manager, ProtectedRegion region)Create a new instance. -
Method Summary
Modifier and TypeMethodDescriptioncall()GSet a parent removal strategy.voidsetRemovalStrategy(RemovalStrategy removalStrategy)Set a parent removal strategy.
-
Constructor Details
-
RegionRemover
Create a new instance.- Parameters:
manager- a region managerregion- the region to remove
-
-
Method Details
-
getRemovalStrategy
GSet a parent removal strategy.- Returns:
- a removal strategy or null (see
setRemovalStrategy(RemovalStrategy)
-
setRemovalStrategy
Set a parent removal strategy. Set it tonullto have the code check for children and throw an error if any are found.- Parameters:
removalStrategy- a removal strategy, ornullto error if children exist
-
call
- Specified by:
callin interfaceCallable<Set<ProtectedRegion>>- Throws:
Exception
-