public class ProtectedPolygonalRegion extends ProtectedRegion
ProtectedRegion.CircularInheritanceExceptionGLOBAL_REGION, max, min| Constructor and Description |
|---|
ProtectedPolygonalRegion(String id,
List<com.sk89q.worldedit.BlockVector2D> points,
int minY,
int maxY) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(com.sk89q.worldedit.Vector position)
Check to see if a point is inside this region.
|
List<com.sk89q.worldedit.BlockVector2D> |
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, equals, getFlag, getFlags, getId, getIntersectingRegions, getMaximumPoint, getMembers, getMinimumPoint, getOwners, getParent, getPriority, getTypeName, hashCode, hasMembersOrOwners, intersects, intersectsBoundingBox, intersectsEdges, isDirty, isMember, isMember, isMemberOnly, isOwner, isOwner, isValidId, setDirty, setFlag, setFlags, setMembers, setMinMaxPoints, setOwners, setParent, setPriority, toStringpublic boolean isPhysicalArea()
ProtectedRegionisPhysicalArea in class ProtectedRegionpublic List<com.sk89q.worldedit.BlockVector2D> getPoints()
ProtectedRegiongetPoints in class ProtectedRegionpublic boolean contains(com.sk89q.worldedit.Vector position)
ProtectedRegioncontains in class ProtectedRegionposition - The point to checkpt is in this regionpublic RegionType getType()
ProtectedRegiongetType in class ProtectedRegionpublic int volume()
ProtectedRegionvolume in class ProtectedRegionCopyright © 2015. All Rights Reserved.