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.void
setRemovalStrategy
(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 tonull
to have the code check for children and throw an error if any are found.- Parameters:
removalStrategy
- a removal strategy, ornull
to error if children exist
-
call
- Specified by:
call
in interfaceCallable<Set<ProtectedRegion>>
- Throws:
Exception
-