Package net.minecraft.src
Class StructureBoundingBox
java.lang.Object
net.minecraft.src.StructureBoundingBox
-
Field Summary
FieldsModifier and TypeFieldDescriptionintThe second x coordinate of a bounding box.intThe second y coordinate of a bounding box.intThe second z coordinate of a bounding box.intThe first x coordinate of a bounding box.intThe first y coordinate of a bounding box.intThe first z coordinate of a bounding box. -
Constructor Summary
ConstructorsConstructorDescriptionStructureBoundingBox(int[] par1ArrayOfInteger) 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
Modifier and TypeMethodDescriptionvoidexpandTo(StructureBoundingBox par1StructureBoundingBox) Expands a bounding box's dimensions to include the supplied bounding box.func_143047_a(String par1Str) intintintstatic StructureBoundingBoxgetComponentToAddBoundingBox(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 spawnedstatic StructureBoundingBoxreturns a new StructureBoundingBox with MAX valuesintgetXSize()Returns width of a bounding boxintgetYSize()Returns height of a bounding boxintgetZSize()Returns length of a bounding boxbooleanintersectsWith(int par1, int par2, int par3, int par4) Discover if a coordinate is inside the bounding box area.booleanintersectsWith(StructureBoundingBox par1StructureBoundingBox) Returns whether the given bounding box intersects with this one.booleanisVecInside(int par1, int par2, int par3) Returns true if block is inside bounding boxvoidoffset(int par1, int par2, int par3) Offsets the current bounding box by the specified coordinates.toString()
-
Field Details
-
minX
public int minXThe first x coordinate of a bounding box. -
minY
public int minYThe first y coordinate of a bounding box. -
minZ
public int minZThe first z coordinate of a bounding box. -
maxX
public int maxXThe second x coordinate of a bounding box. -
maxY
public int maxYThe second y coordinate of a bounding box. -
maxZ
public int maxZThe second z coordinate of a bounding box.
-
-
Constructor Details
-
StructureBoundingBox
public StructureBoundingBox() -
StructureBoundingBox
public StructureBoundingBox(int[] par1ArrayOfInteger) -
StructureBoundingBox
-
StructureBoundingBox
public StructureBoundingBox(int par1, int par2, int par3, int par4, int par5, int par6) -
StructureBoundingBox
public StructureBoundingBox(int par1, int par2, int par3, int par4)
-
-
Method Details
-
getNewBoundingBox
returns a new StructureBoundingBox with MAX values -
getComponentToAddBoundingBox
public 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 -
intersectsWith
Returns whether the given bounding box intersects with this one. Args: structureboundingbox -
intersectsWith
public boolean intersectsWith(int par1, int par2, int par3, int par4) Discover if a coordinate is inside the bounding box area. -
expandTo
Expands a bounding box's dimensions to include the supplied bounding box. -
offset
public void offset(int par1, int par2, int par3) Offsets the current bounding box by the specified coordinates. Args: x, y, z -
isVecInside
public boolean isVecInside(int par1, int par2, int par3) Returns true if block is inside bounding box -
getXSize
public int getXSize()Returns width of a bounding box -
getYSize
public int getYSize()Returns height of a bounding box -
getZSize
public int getZSize()Returns length of a bounding box -
getCenterX
public int getCenterX() -
getCenterY
public int getCenterY() -
getCenterZ
public int getCenterZ() -
toString
-
func_143047_a
-