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[] p_i43000_1_) |
StructureBoundingBox(int p_i2033_1_,
int p_i2033_2_,
int p_i2033_3_,
int p_i2033_4_) |
StructureBoundingBox(int p_i2032_1_,
int p_i2032_2_,
int p_i2032_3_,
int p_i2032_4_,
int p_i2032_5_,
int p_i2032_6_) |
StructureBoundingBox(StructureBoundingBox p_i2031_1_) |
| Modifier and Type | Method and Description |
|---|---|
void |
expandTo(StructureBoundingBox p_78888_1_)
Expands a bounding box's dimensions to include the supplied bounding box.
|
NBTTagIntArray |
func_151535_h() |
int |
getCenterX() |
int |
getCenterY() |
int |
getCenterZ() |
static StructureBoundingBox |
getComponentToAddBoundingBox(int p_78889_0_,
int p_78889_1_,
int p_78889_2_,
int p_78889_3_,
int p_78889_4_,
int p_78889_5_,
int p_78889_6_,
int p_78889_7_,
int p_78889_8_,
int p_78889_9_)
used to project a possible new component Bounding Box - to check if it would cut anything already spawned
|
static StructureBoundingBox |
getNewBoundingBox()
returns a new StructureBoundingBox with MAX values
|
int |
getXSize()
Returns width of a bounding box
|
int |
getYSize()
Returns height of a bounding box
|
int |
getZSize()
Returns length of a bounding box
|
boolean |
intersectsWith(int p_78885_1_,
int p_78885_2_,
int p_78885_3_,
int p_78885_4_)
Discover if a coordinate is inside the bounding box area.
|
boolean |
intersectsWith(StructureBoundingBox p_78884_1_)
Returns whether the given bounding box intersects with this one.
|
boolean |
isVecInside(int p_78890_1_,
int p_78890_2_,
int p_78890_3_)
Returns true if block is inside bounding box
|
void |
offset(int p_78886_1_,
int p_78886_2_,
int p_78886_3_)
Offsets the current bounding box by the specified coordinates.
|
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[] p_i43000_1_)
public StructureBoundingBox(StructureBoundingBox p_i2031_1_)
public StructureBoundingBox(int p_i2032_1_,
int p_i2032_2_,
int p_i2032_3_,
int p_i2032_4_,
int p_i2032_5_,
int p_i2032_6_)
public StructureBoundingBox(int p_i2033_1_,
int p_i2033_2_,
int p_i2033_3_,
int p_i2033_4_)
public static StructureBoundingBox getNewBoundingBox()
public static StructureBoundingBox getComponentToAddBoundingBox(int p_78889_0_, int p_78889_1_, int p_78889_2_, int p_78889_3_, int p_78889_4_, int p_78889_5_, int p_78889_6_, int p_78889_7_, int p_78889_8_, int p_78889_9_)
public boolean intersectsWith(StructureBoundingBox p_78884_1_)
public boolean intersectsWith(int p_78885_1_,
int p_78885_2_,
int p_78885_3_,
int p_78885_4_)
public void expandTo(StructureBoundingBox p_78888_1_)
public void offset(int p_78886_1_,
int p_78886_2_,
int p_78886_3_)
public boolean isVecInside(int p_78890_1_,
int p_78890_2_,
int p_78890_3_)
public int getXSize()
public int getYSize()
public int getZSize()
public int getCenterX()
public int getCenterY()
public int getCenterZ()
public java.lang.String toString()
toString in class java.lang.Objectpublic NBTTagIntArray func_151535_h()