| Modifier and Type | Method and Description |
|---|---|
Association |
LocalPlayer.getAssociation(List<ProtectedRegion> regions) |
| Modifier and Type | Method and Description |
|---|---|
static ProtectedRegion |
BukkitUtil.toRegion(org.bukkit.Chunk chunk)
Create a dummy region that encompasses the size of a chunk.
|
| Constructor and Description |
|---|
RegionPrintoutBuilder(ProtectedRegion region,
com.sk89q.squirrelid.cache.ProfileCache cache)
Create a new instance with a region to report on.
|
| Modifier and Type | Method and Description |
|---|---|
ProtectedRegion |
RegionAdder.call() |
| Modifier and Type | Method and Description |
|---|---|
Set<ProtectedRegion> |
RegionRemover.call() |
| Constructor and Description |
|---|
RegionAdder(WorldGuardPlugin plugin,
RegionManager manager,
ProtectedRegion region)
Create a new instance.
|
RegionRemover(RegionManager manager,
ProtectedRegion region)
Create a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
RegionPermissionModel.mayAddMembers(ProtectedRegion region) |
boolean |
RegionPermissionModel.mayAddOwners(ProtectedRegion region) |
boolean |
RegionPermissionModel.mayDelete(ProtectedRegion region) |
boolean |
RegionPermissionModel.mayLookup(ProtectedRegion region) |
boolean |
RegionPermissionModel.mayRedefine(ProtectedRegion region) |
boolean |
RegionPermissionModel.mayRemoveMembers(ProtectedRegion region) |
boolean |
RegionPermissionModel.mayRemoveOwners(ProtectedRegion region) |
boolean |
RegionPermissionModel.maySelect(ProtectedRegion region) |
boolean |
RegionPermissionModel.maySetFlag(ProtectedRegion region) |
boolean |
RegionPermissionModel.maySetFlag(ProtectedRegion region,
Flag<?> flag) |
boolean |
RegionPermissionModel.maySetFlag(ProtectedRegion region,
Flag<?> flag,
String value) |
boolean |
RegionPermissionModel.maySetParent(ProtectedRegion child,
ProtectedRegion parent) |
boolean |
RegionPermissionModel.maySetPriority(ProtectedRegion region) |
boolean |
RegionPermissionModel.mayTeleportTo(ProtectedRegion region) |
| Modifier and Type | Method and Description |
|---|---|
Association |
DelayedRegionOverlapAssociation.getAssociation(List<ProtectedRegion> regions) |
| Modifier and Type | Method and Description |
|---|---|
Set<ProtectedRegion> |
PermissiveRegionSet.getRegions() |
Set<ProtectedRegion> |
ApplicableRegionSet.getRegions()
Get an immutable set of regions that are included in this set.
|
Set<ProtectedRegion> |
FailedLoadRegionSet.getRegions() |
Set<ProtectedRegion> |
RegionResultSet.getRegions() |
Iterator<ProtectedRegion> |
PermissiveRegionSet.iterator() |
Iterator<ProtectedRegion> |
FailedLoadRegionSet.iterator() |
Iterator<ProtectedRegion> |
RegionResultSet.iterator() |
| Modifier and Type | Method and Description |
|---|---|
static RegionResultSet |
RegionResultSet.fromSortedList(List<ProtectedRegion> regions,
ProtectedRegion globalRegion)
Create a new instance using a list of regions that is known to
already be sorted by priority descending.
|
<V> V |
FlagValueCalculator.getEffectiveFlag(ProtectedRegion region,
Flag<V> flag,
RegionAssociable subject)
Get a region's state flag, checking parent regions until a value for the
flag can be found (if one even exists).
|
int |
FlagValueCalculator.getPriority(ProtectedRegion region)
Get the effective priority of a region, overriding a region's priority
when appropriate (i.e.
|
| Modifier and Type | Method and Description |
|---|---|
static RegionResultSet |
RegionResultSet.fromSortedList(List<ProtectedRegion> regions,
ProtectedRegion globalRegion)
Create a new instance using a list of regions that is known to
already be sorted by priority descending.
|
| Constructor and Description |
|---|
FlagValueCalculator(List<ProtectedRegion> regions,
ProtectedRegion globalRegion)
Create a new instance.
|
RegionResultSet(List<ProtectedRegion> applicable,
ProtectedRegion globalRegion)
Create a new region result set.
|
RegionResultSet(List<ProtectedRegion> applicable,
ProtectedRegion globalRegion,
boolean sorted)
Create a new region result set.
|
RegionResultSet(Set<ProtectedRegion> applicable,
ProtectedRegion globalRegion)
Create a new region result set.
|
| Constructor and Description |
|---|
FlagValueCalculator(List<ProtectedRegion> regions,
ProtectedRegion globalRegion)
Create a new instance.
|
RegionResultSet(List<ProtectedRegion> applicable,
ProtectedRegion globalRegion)
Create a new region result set.
|
RegionResultSet(List<ProtectedRegion> applicable,
ProtectedRegion globalRegion,
boolean sorted)
Create a new region result set.
|
RegionResultSet(Set<ProtectedRegion> applicable,
ProtectedRegion globalRegion)
Create a new region result set.
|
| Modifier and Type | Method and Description |
|---|---|
Association |
RegionOverlapAssociation.getAssociation(List<ProtectedRegion> regions) |
Association |
RegionAssociable.getAssociation(List<ProtectedRegion> regions)
Get the highest association level for the input regions.
|
| Constructor and Description |
|---|
RegionOverlapAssociation(Set<ProtectedRegion> source)
Create a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
static boolean |
RegionGroupFlag.isMember(ProtectedRegion region,
RegionGroup group,
LocalPlayer player) |
| Modifier and Type | Method and Description |
|---|---|
ProtectedRegion |
RegionManager.getRegion(String id)
Get the region named by the given name (equality determined using
Normal). |
ProtectedRegion |
RegionManager.matchRegion(String pattern)
Matches a region using either the pattern
#{region_index} or
simply by the exact name of the region. |
| Modifier and Type | Method and Description |
|---|---|
Set<ProtectedRegion> |
RegionDifference.getChanged()
Get the regions that were changed or added.
|
Map<String,ProtectedRegion> |
RegionManager.getRegions()
Get an unmodifiable map of regions containing the state of the
index at the time of call.
|
Set<ProtectedRegion> |
RegionDifference.getRemoved()
Get the regions that were removed.
|
Set<ProtectedRegion> |
RegionManager.removeRegion(String id)
Remove a region from the index with the given name, opting to remove
the children of the removed region.
|
Set<ProtectedRegion> |
RegionManager.removeRegion(String id,
RemovalStrategy strategy)
Remove a region from the index with the given name.
|
| Modifier and Type | Method and Description |
|---|---|
void |
RegionManager.addRegion(ProtectedRegion region)
Aad a region to the manager.
|
ApplicableRegionSet |
RegionManager.getApplicableRegions(ProtectedRegion region)
Query for effective flags and owners for the area represented
by the given region.
|
boolean |
RegionManager.overlapsUnownedRegion(ProtectedRegion region,
LocalPlayer player)
Return whether there are any regions intersecting the given region that
are not owned by the given player.
|
| Modifier and Type | Method and Description |
|---|---|
void |
RegionManager.setRegions(Collection<ProtectedRegion> regions)
Replace the index with the regions in the given collection.
|
void |
RegionManager.setRegions(Map<String,ProtectedRegion> regions)
Replace the index with the regions in the given map.
|
| Constructor and Description |
|---|
RegionDifference(Set<ProtectedRegion> changed,
Set<ProtectedRegion> removed)
Create a new instance.
|
RegionDifference(Set<ProtectedRegion> changed,
Set<ProtectedRegion> removed)
Create a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
ProtectedRegion |
HashMapIndex.get(String id) |
ProtectedRegion |
RegionIndex.get(String id)
Get the region named by the given name (equality determined using
Normal). |
ProtectedRegion |
ChunkHashTable.get(String id) |
| Modifier and Type | Method and Description |
|---|---|
Set<ProtectedRegion> |
HashMapIndex.remove(String id,
RemovalStrategy strategy) |
Set<ProtectedRegion> |
RegionIndex.remove(String id,
RemovalStrategy strategy)
Remove a region from the index with the given name.
|
Set<ProtectedRegion> |
ChunkHashTable.remove(String id,
RemovalStrategy strategy) |
Collection<ProtectedRegion> |
HashMapIndex.values() |
Collection<ProtectedRegion> |
RegionIndex.values()
Get an unmodifiable collection of regions stored in this index.
|
Collection<ProtectedRegion> |
ChunkHashTable.values() |
| Modifier and Type | Method and Description |
|---|---|
void |
HashMapIndex.add(ProtectedRegion region) |
void |
RegionIndex.add(ProtectedRegion region)
Add a region to this index, replacing any existing one with the same
name (equality determined using
Normal). |
void |
ChunkHashTable.add(ProtectedRegion region) |
void |
HashMapIndex.applyIntersecting(ProtectedRegion region,
com.google.common.base.Predicate<ProtectedRegion> consumer) |
void |
RegionIndex.applyIntersecting(ProtectedRegion region,
com.google.common.base.Predicate<ProtectedRegion> consumer)
Apply the given predicate to all regions that intersect the given
region until there are no more regions or the predicate returns false.
|
void |
ChunkHashTable.applyIntersecting(ProtectedRegion region,
com.google.common.base.Predicate<ProtectedRegion> consumer) |
void |
PriorityRTreeIndex.applyIntersecting(ProtectedRegion region,
com.google.common.base.Predicate<ProtectedRegion> consumer) |
| Modifier and Type | Method and Description |
|---|---|
void |
HashMapIndex.addAll(Collection<ProtectedRegion> regions) |
void |
RegionIndex.addAll(Collection<ProtectedRegion> regions)
Add a list of regions to this index, replacing any existing one
with the same name (equality determined using
Normal). |
void |
ChunkHashTable.addAll(Collection<ProtectedRegion> regions) |
void |
HashMapIndex.apply(com.google.common.base.Predicate<ProtectedRegion> consumer) |
void |
RegionIndex.apply(com.google.common.base.Predicate<ProtectedRegion> consumer)
Apply the given predicate to all the regions in the index
until there are no more regions or the predicate returns false.
|
void |
ChunkHashTable.apply(com.google.common.base.Predicate<ProtectedRegion> consumer) |
void |
HashMapIndex.applyContaining(com.sk89q.worldedit.Vector position,
com.google.common.base.Predicate<ProtectedRegion> consumer) |
void |
RegionIndex.applyContaining(com.sk89q.worldedit.Vector position,
com.google.common.base.Predicate<ProtectedRegion> consumer)
Apply the given predicate to all regions that contain the given
position until there are no more regions or the predicate returns false.
|
void |
ChunkHashTable.applyContaining(com.sk89q.worldedit.Vector position,
com.google.common.base.Predicate<ProtectedRegion> consumer) |
void |
PriorityRTreeIndex.applyContaining(com.sk89q.worldedit.Vector position,
com.google.common.base.Predicate<ProtectedRegion> consumer) |
void |
HashMapIndex.applyIntersecting(ProtectedRegion region,
com.google.common.base.Predicate<ProtectedRegion> consumer) |
void |
RegionIndex.applyIntersecting(ProtectedRegion region,
com.google.common.base.Predicate<ProtectedRegion> consumer)
Apply the given predicate to all regions that intersect the given
region until there are no more regions or the predicate returns false.
|
void |
ChunkHashTable.applyIntersecting(ProtectedRegion region,
com.google.common.base.Predicate<ProtectedRegion> consumer) |
void |
PriorityRTreeIndex.applyIntersecting(ProtectedRegion region,
com.google.common.base.Predicate<ProtectedRegion> consumer) |
| Modifier and Type | Method and Description |
|---|---|
Set<ProtectedRegion> |
MemoryRegionDatabase.loadAll() |
Set<ProtectedRegion> |
RegionDatabase.loadAll()
Load all regions from storage and place them into the passed map.
|
| Modifier and Type | Method and Description |
|---|---|
static <T> boolean |
RegionDatabaseUtils.trySetFlag(ProtectedRegion region,
Flag<T> flag,
Object value)
Try to set a flag on the region.
|
static void |
RegionDatabaseUtils.trySetFlagMap(ProtectedRegion region,
Map<String,Object> flagData)
Try setting the given map of flags onto the region.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
RegionDatabaseUtils.relinkParents(Map<String,ProtectedRegion> regions,
Map<ProtectedRegion,String> parentSets)
Re-link parent regions on each provided region using the two
provided maps.
|
static void |
RegionDatabaseUtils.relinkParents(Map<String,ProtectedRegion> regions,
Map<ProtectedRegion,String> parentSets)
Re-link parent regions on each provided region using the two
provided maps.
|
void |
MemoryRegionDatabase.saveAll(Set<ProtectedRegion> regions) |
void |
RegionDatabase.saveAll(Set<ProtectedRegion> regions)
Replace all the data in the store with the given collection of regions.
|
| Modifier and Type | Method and Description |
|---|---|
Set<ProtectedRegion> |
YamlRegionFile.loadAll() |
| Modifier and Type | Method and Description |
|---|---|
void |
YamlRegionFile.saveAll(Set<ProtectedRegion> regions) |
| Modifier and Type | Class and Description |
|---|---|
class |
GlobalProtectedRegion
A special region that is not quite "anywhere" (its volume is 0, it
contains no positions, and it does not intersect with any other region).
|
class |
ProtectedCuboidRegion
Represents a cuboid region that can be protected.
|
class |
ProtectedPolygonalRegion |
| Modifier and Type | Method and Description |
|---|---|
ProtectedRegion |
ProtectedRegion.getParent()
Get the parent of the region, if one exists.
|
| Modifier and Type | Method and Description |
|---|---|
List<ProtectedRegion> |
ProtectedRegion.getIntersectingRegions(Collection<ProtectedRegion> regions)
Return a list of regions from the given list of regions that intersect
with this region.
|
List<ProtectedRegion> |
GlobalProtectedRegion.getIntersectingRegions(Collection<ProtectedRegion> regions) |
| Modifier and Type | Method and Description |
|---|---|
int |
ProtectedRegion.compareTo(ProtectedRegion other) |
void |
ProtectedRegion.copyFrom(ProtectedRegion other)
Copy attributes from another region.
|
double |
ProtectedRegionMBRConverter.getMax(int dimension,
ProtectedRegion region) |
double |
ProtectedRegionMBRConverter.getMin(int dimension,
ProtectedRegion region) |
protected boolean |
ProtectedRegion.intersects(ProtectedRegion region,
Area thisArea)
Test whether the given region intersects with this area.
|
protected boolean |
ProtectedCuboidRegion.intersects(ProtectedRegion region,
Area thisArea) |
protected boolean |
ProtectedRegion.intersectsBoundingBox(ProtectedRegion region)
Checks if the bounding box of a region intersects with with the bounding
box of this region.
|
protected boolean |
ProtectedRegion.intersectsEdges(ProtectedRegion region)
Compares all edges of two regions to see if any of them intersect.
|
void |
ProtectedRegion.setParent(ProtectedRegion parent)
Set the parent of this region.
|
| Modifier and Type | Method and Description |
|---|---|
List<ProtectedRegion> |
ProtectedRegion.getIntersectingRegions(Collection<ProtectedRegion> regions)
Return a list of regions from the given list of regions that intersect
with this region.
|
List<ProtectedRegion> |
GlobalProtectedRegion.getIntersectingRegions(Collection<ProtectedRegion> regions) |
| Modifier and Type | Method and Description |
|---|---|
static List<ProtectedRegion> |
NormativeOrders.fromSet(Set<ProtectedRegion> regions) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
RegionCollectionConsumer.apply(ProtectedRegion region) |
| Modifier and Type | Method and Description |
|---|---|
static List<ProtectedRegion> |
NormativeOrders.fromSet(Set<ProtectedRegion> regions) |
static void |
NormativeOrders.sort(List<ProtectedRegion> regions) |
| Constructor and Description |
|---|
RegionCollectionConsumer(Collection<ProtectedRegion> collection,
boolean addParents)
Create a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
EntryFlag.onCrossBoundary(org.bukkit.entity.Player player,
org.bukkit.Location from,
org.bukkit.Location to,
ApplicableRegionSet toSet,
Set<ProtectedRegion> entered,
Set<ProtectedRegion> exited,
MoveType moveType) |
boolean |
EntryFlag.onCrossBoundary(org.bukkit.entity.Player player,
org.bukkit.Location from,
org.bukkit.Location to,
ApplicableRegionSet toSet,
Set<ProtectedRegion> entered,
Set<ProtectedRegion> exited,
MoveType moveType) |
boolean |
GreetingFlag.onCrossBoundary(org.bukkit.entity.Player player,
org.bukkit.Location from,
org.bukkit.Location to,
ApplicableRegionSet toSet,
Set<ProtectedRegion> entered,
Set<ProtectedRegion> exited,
MoveType moveType) |
boolean |
GreetingFlag.onCrossBoundary(org.bukkit.entity.Player player,
org.bukkit.Location from,
org.bukkit.Location to,
ApplicableRegionSet toSet,
Set<ProtectedRegion> entered,
Set<ProtectedRegion> exited,
MoveType moveType) |
boolean |
FarewellFlag.onCrossBoundary(org.bukkit.entity.Player player,
org.bukkit.Location from,
org.bukkit.Location to,
ApplicableRegionSet toSet,
Set<ProtectedRegion> entered,
Set<ProtectedRegion> exited,
MoveType moveType) |
boolean |
FarewellFlag.onCrossBoundary(org.bukkit.entity.Player player,
org.bukkit.Location from,
org.bukkit.Location to,
ApplicableRegionSet toSet,
Set<ProtectedRegion> entered,
Set<ProtectedRegion> exited,
MoveType moveType) |
boolean |
Handler.onCrossBoundary(org.bukkit.entity.Player player,
org.bukkit.Location from,
org.bukkit.Location to,
ApplicableRegionSet toSet,
Set<ProtectedRegion> entered,
Set<ProtectedRegion> exited,
MoveType moveType)
Called when a player has moved into a new location where either
there are fewer regions or more regions.
|
boolean |
Handler.onCrossBoundary(org.bukkit.entity.Player player,
org.bukkit.Location from,
org.bukkit.Location to,
ApplicableRegionSet toSet,
Set<ProtectedRegion> entered,
Set<ProtectedRegion> exited,
MoveType moveType)
Called when a player has moved into a new location where either
there are fewer regions or more regions.
|
boolean |
FlagValueChangeHandler.onCrossBoundary(org.bukkit.entity.Player player,
org.bukkit.Location from,
org.bukkit.Location to,
ApplicableRegionSet toSet,
Set<ProtectedRegion> entered,
Set<ProtectedRegion> exited,
MoveType moveType) |
boolean |
FlagValueChangeHandler.onCrossBoundary(org.bukkit.entity.Player player,
org.bukkit.Location from,
org.bukkit.Location to,
ApplicableRegionSet toSet,
Set<ProtectedRegion> entered,
Set<ProtectedRegion> exited,
MoveType moveType) |
| Constructor and Description |
|---|
RegionReport(ProtectedRegion region) |
Copyright © 2015. All Rights Reserved.