Class DelayedRegionOverlapAssociation
java.lang.Object
com.sk89q.worldguard.protection.association.AbstractRegionOverlapAssociation
com.sk89q.worldguard.protection.association.DelayedRegionOverlapAssociation
- All Implemented Interfaces:
RegionAssociable
- Direct Known Subclasses:
DelayedRegionOverlapAssociation
Determines that the association to a region is
OWNER if the input
region is in a set of source regions.
This class only performs a spatial query if its
getAssociation(List) method is called.
-
Field Summary
Fields inherited from class com.sk89q.worldguard.protection.association.AbstractRegionOverlapAssociation
source -
Constructor Summary
ConstructorsConstructorDescriptionDelayedRegionOverlapAssociation(RegionQuery query, com.sk89q.worldedit.util.Location location)Create a new instance.DelayedRegionOverlapAssociation(RegionQuery query, com.sk89q.worldedit.util.Location location, boolean useMaxPriorityAssociation)Create a new instance. -
Method Summary
Modifier and TypeMethodDescriptiongetAssociation(List<ProtectedRegion> regions)Get the highest association level for the input regions.Methods inherited from class com.sk89q.worldguard.protection.association.AbstractRegionOverlapAssociation
calcMaxPriority
-
Constructor Details
-
DelayedRegionOverlapAssociation
public DelayedRegionOverlapAssociation(RegionQuery query, com.sk89q.worldedit.util.Location location)Create a new instance.- Parameters:
query- the querylocation- the location
-
DelayedRegionOverlapAssociation
public DelayedRegionOverlapAssociation(RegionQuery query, com.sk89q.worldedit.util.Location location, boolean useMaxPriorityAssociation)Create a new instance.- Parameters:
query- the querylocation- the locationuseMaxPriorityAssociation- whether to use the max priority from regions to determine association
-
-
Method Details
-
getAssociation
Description copied from interface:RegionAssociableGet the highest association level for the input regions.- Specified by:
getAssociationin interfaceRegionAssociable- Overrides:
getAssociationin classAbstractRegionOverlapAssociation- Parameters:
regions- a list of regions- Returns:
- the highest membership level
-