|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.minecraft.world.gen.structure.StructureBoundingBox
public class StructureBoundingBox
Field Summary | |
---|---|
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 Summary | |
---|---|
StructureBoundingBox()
|
|
StructureBoundingBox(int par1,
int par2,
int par3,
int par4)
|
|
StructureBoundingBox(int par1,
int par2,
int par3,
int par4,
int par5,
int par6)
|
|
StructureBoundingBox(StructureBoundingBox par1StructureBoundingBox)
|
Method Summary | |
---|---|
void |
expandTo(StructureBoundingBox par1StructureBoundingBox)
Expands a bounding box's dimensions to include the supplied bounding box. |
int |
getCenterX()
|
int |
getCenterY()
|
int |
getCenterZ()
|
static StructureBoundingBox |
getComponentToAddBoundingBox(int par0,
int par1,
int par2,
int par3,
int par4,
int par5,
int par6,
int par7,
int par8,
int par9)
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 par1,
int par2,
int par3,
int par4)
Discover if a coordinate is inside the bounding box area. |
boolean |
intersectsWith(StructureBoundingBox par1StructureBoundingBox)
Returns whether the given bounding box intersects with this one. |
boolean |
isVecInside(int par1,
int par2,
int par3)
Returns true if block is inside bounding box |
void |
offset(int par1,
int par2,
int par3)
Offsets the current bounding box by the specified coordinates. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public int minX
public int minY
public int minZ
public int maxX
public int maxY
public int maxZ
Constructor Detail |
---|
public StructureBoundingBox()
public StructureBoundingBox(StructureBoundingBox par1StructureBoundingBox)
public StructureBoundingBox(int par1, int par2, int par3, int par4, int par5, int par6)
public StructureBoundingBox(int par1, int par2, int par3, int par4)
Method Detail |
---|
public static StructureBoundingBox getNewBoundingBox()
public static StructureBoundingBox getComponentToAddBoundingBox(int par0, int par1, int par2, int par3, int par4, int par5, int par6, int par7, int par8, int par9)
public boolean intersectsWith(StructureBoundingBox par1StructureBoundingBox)
public boolean intersectsWith(int par1, int par2, int par3, int par4)
public void expandTo(StructureBoundingBox par1StructureBoundingBox)
public void offset(int par1, int par2, int par3)
public boolean isVecInside(int par1, int par2, int par3)
public int getXSize()
public int getYSize()
public int getZSize()
public int getCenterX()
public int getCenterY()
public int getCenterZ()
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |