public class ProtectedPolygonalRegion extends ProtectedRegion
ProtectedRegion.CircularInheritanceExceptionGLOBAL_REGION, max, min| Constructor and Description |
|---|
ProtectedPolygonalRegion(java.lang.String id,
boolean transientRegion,
java.util.List<com.sk89q.worldedit.math.BlockVector2> points,
int minY,
int maxY)
Construct a new instance of this polygonal region.
|
ProtectedPolygonalRegion(java.lang.String id,
java.util.List<com.sk89q.worldedit.math.BlockVector2> points,
int minY,
int maxY)
Construct a new instance of this polygonal region.
Equivalent to ProtectedPolygonalRegion(id, false, points, minY, maxY)transientRegion will be set to false, and this region can be saved. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(com.sk89q.worldedit.math.BlockVector3 position)
Check to see if a point is inside 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, getIntersectingRegions, 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 ProtectedPolygonalRegion(java.lang.String id,
java.util.List<com.sk89q.worldedit.math.BlockVector2> points,
int minY,
int maxY)
ProtectedPolygonalRegion(id, false, points, minY, maxY)transientRegion will be set to false, and this region can be saved.id - the region idpoints - a List of points that this region should containminY - the minimum y coordinatemaxY - the maximum y coordinatepublic ProtectedPolygonalRegion(java.lang.String id,
boolean transientRegion,
java.util.List<com.sk89q.worldedit.math.BlockVector2> points,
int minY,
int maxY)
id - the region idtransientRegion - whether this region should only be kept in memory and not be savedpoints - a List of points that this region should containminY - the minimum y coordinatemaxY - the maximum y coordinatepublic boolean isPhysicalArea()
ProtectedRegionisPhysicalArea in class ProtectedRegionpublic java.util.List<com.sk89q.worldedit.math.BlockVector2> getPoints()
ProtectedRegiongetPoints in class ProtectedRegionpublic boolean contains(com.sk89q.worldedit.math.BlockVector3 position)
ProtectedRegioncontains in class ProtectedRegionposition - The point to checkpt is in this regionpublic RegionType getType()
ProtectedRegiongetType in class ProtectedRegionpublic int volume()
ProtectedRegionvolume in class ProtectedRegion