public class GlobalProtectedRegion extends ProtectedRegion
Global regions, however, are used to specify a region with flags that are applied with the lowest priority.
ProtectedRegion.CircularInheritanceExceptionGLOBAL_REGION, max, min| Constructor and Description |
|---|
GlobalProtectedRegion(java.lang.String id)
Create a new instance.
Equivalent to GlobalProtectedRegion(id, false)transientRegion will be set to false, and this region can be saved. |
GlobalProtectedRegion(java.lang.String id,
boolean transientRegion)
Create a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(com.sk89q.worldedit.math.BlockVector3 pt)
Check to see if a point is inside this region.
|
java.util.List<ProtectedRegion> |
getIntersectingRegions(java.util.Collection<ProtectedRegion> regions)
Return a list of regions from the given list of regions that intersect
with this region.
|
java.util.List<com.sk89q.worldedit.math.BlockVector2> |
getPoints()
Get points of the region projected onto the X-Z plane.
|
RegionType |
getType()
Get the type of region.
|
boolean |
isPhysicalArea()
Return whether this type of region encompasses physical area.
|
int |
volume()
Get the number of blocks in this region.
|
clearParent, compareTo, contains, contains, containsAny, copyFrom, getFlag, getFlags, getId, getMaximumPoint, getMembers, getMinimumPoint, getOwners, getParent, getPriority, hashCode, hasMembersOrOwners, intersects, intersectsBoundingBox, intersectsEdges, isDirty, isMember, isMember, isMemberOnly, isOwner, isOwner, isTransient, isValidId, setDirty, setFlag, setFlags, setMembers, setMinMaxPoints, setOwners, setParent, setPriority, toStringpublic GlobalProtectedRegion(java.lang.String id)
GlobalProtectedRegion(id, false)transientRegion will be set to false, and this region can be saved.id - the IDpublic GlobalProtectedRegion(java.lang.String id,
boolean transientRegion)
id - the IDtransientRegion - whether this region should only be kept in memory and not be savedpublic boolean isPhysicalArea()
ProtectedRegionisPhysicalArea in class ProtectedRegionpublic java.util.List<com.sk89q.worldedit.math.BlockVector2> getPoints()
ProtectedRegiongetPoints in class ProtectedRegionpublic int volume()
ProtectedRegionvolume in class ProtectedRegionpublic boolean contains(com.sk89q.worldedit.math.BlockVector3 pt)
ProtectedRegioncontains in class ProtectedRegionpt - The point to checkpt is in this regionpublic RegionType getType()
ProtectedRegiongetType in class ProtectedRegionpublic java.util.List<ProtectedRegion> getIntersectingRegions(java.util.Collection<ProtectedRegion> regions)
ProtectedRegiongetIntersectingRegions in class ProtectedRegionregions - a list of regions to source fromregions that intersect with this region