public class DelayedRegionOverlapAssociation extends AbstractRegionOverlapAssociation
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.
source| Constructor and Description |
|---|
DelayedRegionOverlapAssociation(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.
|
| Modifier and Type | Method and Description |
|---|---|
Association |
getAssociation(java.util.List<ProtectedRegion> regions)
Get the highest association level for the input regions.
|
calcMaxPrioritypublic DelayedRegionOverlapAssociation(RegionQuery query, com.sk89q.worldedit.util.Location location)
query - the querylocation - the locationpublic DelayedRegionOverlapAssociation(RegionQuery query, com.sk89q.worldedit.util.Location location, boolean useMaxPriorityAssociation)
query - the querylocation - the locationuseMaxPriorityAssociation - whether to use the max priority from regions to determine associationpublic Association getAssociation(java.util.List<ProtectedRegion> regions)
RegionAssociablegetAssociation in interface RegionAssociablegetAssociation in class AbstractRegionOverlapAssociationregions - a list of regions