Class BoundingBox
java.lang.Object
cn.nukkit.level.generator.populator.impl.structure.utils.math.BoundingBox
-
Field Summary
-
Constructor Summary
ConstructorDescriptionBoundingBox
(int[] array) BoundingBox
(int x0, int z0, int x1, int z1) BoundingBox
(int x0, int y0, int z0, int x1, int y1, int z1) BoundingBox
(BoundingBox boundingBox) BoundingBox
(BlockVector3 vec0, BlockVector3 vec1) -
Method Summary
Modifier and TypeMethodDescriptionstatic BoundingBox
createProper
(int x0, int y0, int z0, int x1, int y1, int z1) void
expand
(BoundingBox boundingBox) static BoundingBox
int
getXSpan()
int
getYSpan()
int
getZSpan()
boolean
intersects
(int x0, int z0, int x1, int z1) boolean
intersects
(BoundingBox boundingBox) boolean
isInside
(BlockVector3 vec) void
move
(int x, int y, int z) moved
(int x, int y, int z) static BoundingBox
orientBox
(int x, int y, int z, int xOffset, int yOffset, int zOffset, int xLength, int yLength, int zLength, BlockFace orientation) toString()
-
Field Details
-
x0
public int x0 -
y0
public int y0 -
z0
public int z0 -
x1
public int x1 -
y1
public int y1 -
z1
public int z1
-
-
Constructor Details
-
BoundingBox
public BoundingBox() -
BoundingBox
public BoundingBox(int[] array) -
BoundingBox
-
BoundingBox
public BoundingBox(int x0, int y0, int z0, int x1, int y1, int z1) -
BoundingBox
-
BoundingBox
public BoundingBox(int x0, int z0, int x1, int z1)
-
-
Method Details
-
getUnknownBox
-
orientBox
public static BoundingBox orientBox(int x, int y, int z, int xOffset, int yOffset, int zOffset, int xLength, int yLength, int zLength, BlockFace orientation) -
createProper
-
intersects
-
intersects
public boolean intersects(int x0, int z0, int x1, int z1) -
expand
-
move
public void move(int x, int y, int z) -
moved
-
isInside
-
getLength
-
getXSpan
public int getXSpan() -
getYSpan
public int getYSpan() -
getZSpan
public int getZSpan() -
createTag
-
toString
-