Class RegionDifference
java.lang.Object
com.sk89q.worldguard.protection.managers.RegionDifference
Describes the difference in region data.
-
Constructor Summary
ConstructorsConstructorDescriptionRegionDifference
(Set<ProtectedRegion> changed, Set<ProtectedRegion> removed) Create a new instance. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addAll
(RegionDifference diff) boolean
Test whether there are changes or removals.Get the regions that were changed or added.Get the regions that were removed.
-
Constructor Details
-
RegionDifference
Create a new instance.- Parameters:
changed
- a set of regions that were changed or addedremoved
- a set of regions that were removed
-
-
Method Details
-
getChanged
Get the regions that were changed or added.- Returns:
- regions
-
getRemoved
Get the regions that were removed.- Returns:
- regions
-
containsChanges
public boolean containsChanges()Test whether there are changes or removals.- Returns:
- true if there are changes
-
addAll
-