Class AbstractRegionOverlapAssociation
java.lang.Object
com.sk89q.worldguard.protection.association.AbstractRegionOverlapAssociation
- All Implemented Interfaces:
RegionAssociable
- Direct Known Subclasses:
DelayedRegionOverlapAssociation,RegionOverlapAssociation
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractRegionOverlapAssociation(Set<ProtectedRegion> source, boolean useMaxPriorityAssociation) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidgetAssociation(List<ProtectedRegion> regions)Get the highest association level for the input regions.
-
Field Details
-
source
-
-
Constructor Details
-
AbstractRegionOverlapAssociation
protected AbstractRegionOverlapAssociation(@Nullable Set<ProtectedRegion> source, boolean useMaxPriorityAssociation)
-
-
Method Details
-
calcMaxPriority
protected void calcMaxPriority() -
getAssociation
Description copied from interface:RegionAssociableGet the highest association level for the input regions.- Specified by:
getAssociationin interfaceRegionAssociable- Parameters:
regions- a list of regions- Returns:
- the highest membership level
-