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
ConstructorsModifierConstructorDescriptionprotected
AbstractRegionOverlapAssociation
(Set<ProtectedRegion> source, boolean useMaxPriorityAssociation) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
getAssociation
(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:RegionAssociable
Get the highest association level for the input regions.- Specified by:
getAssociation
in interfaceRegionAssociable
- Parameters:
regions
- a list of regions- Returns:
- the highest membership level
-