Class RegionDifference

java.lang.Object
com.sk89q.worldguard.protection.managers.RegionDifference

public final class RegionDifference extends Object
Describes the difference in region data.
  • Constructor Details

    • RegionDifference

      public RegionDifference(Set<ProtectedRegion> changed, Set<ProtectedRegion> removed)
      Create a new instance.
      Parameters:
      changed - a set of regions that were changed or added
      removed - a set of regions that were removed
  • Method Details

    • getChanged

      public Set<ProtectedRegion> getChanged()
      Get the regions that were changed or added.
      Returns:
      regions
    • getRemoved

      public Set<ProtectedRegion> 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

      public void addAll(RegionDifference diff)