public class ProtectedCuboidRegion extends ProtectedRegion
ProtectedRegion.CircularInheritanceExceptionGLOBAL_REGION, max, min| Constructor and Description |
|---|
ProtectedCuboidRegion(java.lang.String id,
com.sk89q.worldedit.math.BlockVector3 pt1,
com.sk89q.worldedit.math.BlockVector3 pt2)
Construct a new instance of this cuboid region.
Equivalent to ProtectedCuboidRegion(id, false, pt1, pt2)transientRegion will be set to false, and this region can be saved. |
ProtectedCuboidRegion(java.lang.String id,
boolean transientRegion,
com.sk89q.worldedit.math.BlockVector3 pt1,
com.sk89q.worldedit.math.BlockVector3 pt2)
Construct a new instance of this cuboid region.
|
| 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<com.sk89q.worldedit.math.BlockVector2> |
getPoints()
Get points of the region projected onto the X-Z plane.
|
RegionType |
getType()
Get the type of region.
|
protected boolean |
intersects(ProtectedRegion region,
java.awt.geom.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.math.BlockVector3 position)
Set the upper point of the cuboid.
|
void |
setMinimumPoint(com.sk89q.worldedit.math.BlockVector3 position)
Set the lower point of the cuboid.
|
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, intersectsBoundingBox, intersectsEdges, isDirty, isMember, isMember, isMemberOnly, isOwner, isOwner, isTransient, isValidId, setDirty, setFlag, setFlags, setMembers, setMinMaxPoints, setOwners, setParent, setPriority, toStringpublic ProtectedCuboidRegion(java.lang.String id,
com.sk89q.worldedit.math.BlockVector3 pt1,
com.sk89q.worldedit.math.BlockVector3 pt2)
ProtectedCuboidRegion(id, false, pt1, pt2)transientRegion will be set to false, and this region can be saved.id - the region idpt1 - the first point of this regionpt2 - the second point of this regionpublic ProtectedCuboidRegion(java.lang.String id,
boolean transientRegion,
com.sk89q.worldedit.math.BlockVector3 pt1,
com.sk89q.worldedit.math.BlockVector3 pt2)
id - the region idtransientRegion - whether this region should only be kept in memory and not be savedpt1 - the first point of this regionpt2 - the second point of this regionpublic void setMinimumPoint(com.sk89q.worldedit.math.BlockVector3 position)
position - the point to set as the minimum pointpublic void setMaximumPoint(com.sk89q.worldedit.math.BlockVector3 position)
position - the point to set as the maximum pointpublic 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 pt)
ProtectedRegioncontains in class ProtectedRegionpt - The point to checkpt is in this regionpublic RegionType getType()
ProtectedRegiongetType in class ProtectedRegionprotected boolean intersects(ProtectedRegion region, java.awt.geom.Area thisArea)
ProtectedRegionintersects in class ProtectedRegionregion - the region to testthisArea - an area object for this regionpublic int volume()
ProtectedRegionvolume in class ProtectedRegion