public class ProtectedCuboidRegion extends ProtectedRegion
ProtectedRegion.CircularInheritanceExceptionGLOBAL_REGION, max, min| Constructor and Description |
|---|
ProtectedCuboidRegion(String id,
com.sk89q.worldedit.BlockVector pt1,
com.sk89q.worldedit.BlockVector pt2)
Construct a new instance of this cuboid region.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(com.sk89q.worldedit.Vector pt)
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.
|
protected boolean |
intersects(ProtectedRegion region,
Area thisArea)
Test whether the given region intersects with this area.
|
boolean |
isPhysicalArea()
Return whether this type of region encompasses physical area.
|
void |
setMaximumPoint(com.sk89q.worldedit.BlockVector position)
Set the upper point of the cuboid.
|
void |
setMinimumPoint(com.sk89q.worldedit.BlockVector position)
Set the lower point of the cuboid.
|
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, intersectsBoundingBox, intersectsEdges, isDirty, isMember, isMember, isMemberOnly, isOwner, isOwner, isValidId, setDirty, setFlag, setFlags, setMembers, setMinMaxPoints, setOwners, setParent, setPriority, toStringpublic ProtectedCuboidRegion(String id, com.sk89q.worldedit.BlockVector pt1, com.sk89q.worldedit.BlockVector pt2)
id - the region idpt1 - the first point of this regionpt2 - the second point of this regionpublic void setMinimumPoint(com.sk89q.worldedit.BlockVector position)
position - the point to set as the minimum pointpublic void setMaximumPoint(com.sk89q.worldedit.BlockVector position)
position - the point to set as the maximum pointpublic boolean isPhysicalArea()
ProtectedRegionisPhysicalArea in class ProtectedRegionpublic List<com.sk89q.worldedit.BlockVector2D> getPoints()
ProtectedRegiongetPoints in class ProtectedRegionpublic boolean contains(com.sk89q.worldedit.Vector pt)
ProtectedRegioncontains in class ProtectedRegionpt - The point to checkpt is in this regionpublic RegionType getType()
ProtectedRegiongetType in class ProtectedRegionprotected boolean intersects(ProtectedRegion region, Area thisArea)
ProtectedRegionintersects in class ProtectedRegionregion - the region to testthisArea - an area object for this regionpublic int volume()
ProtectedRegionvolume in class ProtectedRegionCopyright © 2015. All Rights Reserved.