public class StructureBoundingBox
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
int |
maxX
The second x coordinate of a bounding box.
|
int |
maxY
The second y coordinate of a bounding box.
|
int |
maxZ
The second z coordinate of a bounding box.
|
int |
minX
The first x coordinate of a bounding box.
|
int |
minY
The first y coordinate of a bounding box.
|
int |
minZ
The first z coordinate of a bounding box.
|
Constructor and Description |
---|
StructureBoundingBox() |
StructureBoundingBox(int[] coords) |
StructureBoundingBox(int xMin,
int zMin,
int xMax,
int zMax) |
StructureBoundingBox(int xMin,
int yMin,
int zMin,
int xMax,
int yMax,
int zMax) |
StructureBoundingBox(StructureBoundingBox structurebb) |
StructureBoundingBox(Vec3i vec1,
Vec3i vec2) |
Modifier and Type | Method and Description |
---|---|
static StructureBoundingBox |
createProper(int p_175899_0_,
int p_175899_1_,
int p_175899_2_,
int p_175899_3_,
int p_175899_4_,
int p_175899_5_) |
void |
expandTo(StructureBoundingBox sbb)
Expands a bounding box's dimensions to include the supplied bounding box.
|
static StructureBoundingBox |
getComponentToAddBoundingBox(int structureMinX,
int structureMinY,
int structureMinZ,
int xMin,
int yMin,
int zMin,
int xMax,
int yMax,
int zMax,
EnumFacing facing)
Create a bounding box with the specified dimensions and rotate it.
|
Vec3i |
getLength() |
static StructureBoundingBox |
getNewBoundingBox()
returns a new StructureBoundingBox with MAX values
|
int |
getXSize()
Get dimension of the bounding box in the x direction.
|
int |
getYSize()
Get dimension of the bounding box in the y direction.
|
int |
getZSize()
Get dimension of the bounding box in the z direction.
|
boolean |
intersectsWith(int minXIn,
int minZIn,
int maxXIn,
int maxZIn)
Discover if a coordinate is inside the bounding box area.
|
boolean |
intersectsWith(StructureBoundingBox structurebb)
Discover if bounding box can fit within the current bounding box object.
|
boolean |
isVecInside(Vec3i vec)
Checks if given Vec3i is inside of StructureBoundingBox
|
void |
offset(int x,
int y,
int z)
Offsets the current bounding box by the specified amount.
|
NBTTagIntArray |
toNBTTagIntArray() |
java.lang.String |
toString() |
public int minX
public int minY
public int minZ
public int maxX
public int maxY
public int maxZ
public StructureBoundingBox()
public StructureBoundingBox(int[] coords)
public StructureBoundingBox(StructureBoundingBox structurebb)
public StructureBoundingBox(int xMin, int yMin, int zMin, int xMax, int yMax, int zMax)
public StructureBoundingBox(int xMin, int zMin, int xMax, int zMax)
public static StructureBoundingBox getNewBoundingBox()
public static StructureBoundingBox getComponentToAddBoundingBox(int structureMinX, int structureMinY, int structureMinZ, int xMin, int yMin, int zMin, int xMax, int yMax, int zMax, EnumFacing facing)
public static StructureBoundingBox createProper(int p_175899_0_, int p_175899_1_, int p_175899_2_, int p_175899_3_, int p_175899_4_, int p_175899_5_)
public boolean intersectsWith(StructureBoundingBox structurebb)
public boolean intersectsWith(int minXIn, int minZIn, int maxXIn, int maxZIn)
public void expandTo(StructureBoundingBox sbb)
public void offset(int x, int y, int z)
public boolean isVecInside(Vec3i vec)
public Vec3i getLength()
public int getXSize()
public int getYSize()
public int getZSize()
public java.lang.String toString()
toString
in class java.lang.Object
public NBTTagIntArray toNBTTagIntArray()