|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.minecraft.util.AxisAlignedBB
public class AxisAlignedBB
Field Summary | |
---|---|
double |
maxX
|
double |
maxY
|
double |
maxZ
|
double |
minX
|
double |
minY
|
double |
minZ
|
Method Summary | |
---|---|
AxisAlignedBB |
addCoord(double par1,
double par3,
double par5)
Adds the coordinates to the bounding box extending it if the point lies outside the current ranges. |
MovingObjectPosition |
calculateIntercept(Vec3 par1Vec3,
Vec3 par2Vec3)
|
double |
calculateXOffset(AxisAlignedBB par1AxisAlignedBB,
double par2)
if instance and the argument bounding boxes overlap in the Y and Z dimensions, calculate the offset between them in the X dimension. |
double |
calculateYOffset(AxisAlignedBB par1AxisAlignedBB,
double par2)
if instance and the argument bounding boxes overlap in the X and Z dimensions, calculate the offset between them in the Y dimension. |
double |
calculateZOffset(AxisAlignedBB par1AxisAlignedBB,
double par2)
if instance and the argument bounding boxes overlap in the Y and X dimensions, calculate the offset between them in the Z dimension. |
AxisAlignedBB |
contract(double par1,
double par3,
double par5)
Returns a bounding box that is inset by the specified amounts |
AxisAlignedBB |
copy()
Returns a copy of the bounding box. |
AxisAlignedBB |
expand(double par1,
double par3,
double par5)
Returns a bounding box expanded by the specified vector (if negative numbers are given it will shrink). |
static AABBPool |
getAABBPool()
Gets the ThreadLocal AABBPool |
double |
getAverageEdgeLength()
Returns the average length of the edges of the bounding box. |
static AxisAlignedBB |
getBoundingBox(double par0,
double par2,
double par4,
double par6,
double par8,
double par10)
Returns a bounding box with the specified bounds. |
AxisAlignedBB |
getOffsetBoundingBox(double par1,
double par3,
double par5)
Returns a bounding box offseted by the specified vector (if negative numbers are given it will shrink). |
boolean |
intersectsWith(AxisAlignedBB par1AxisAlignedBB)
Returns whether the given bounding box intersects with this one. |
boolean |
isVecInside(Vec3 par1Vec3)
Returns if the supplied Vec3D is completely inside the bounding box |
AxisAlignedBB |
offset(double par1,
double par3,
double par5)
Offsets the current bounding box by the specified coordinates. |
void |
setBB(AxisAlignedBB par1AxisAlignedBB)
Sets the bounding box to the same bounds as the bounding box passed in. |
AxisAlignedBB |
setBounds(double par1,
double par3,
double par5,
double par7,
double par9,
double par11)
Sets the bounds of the bounding box. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public double minX
public double minY
public double minZ
public double maxX
public double maxY
public double maxZ
Method Detail |
---|
public static AxisAlignedBB getBoundingBox(double par0, double par2, double par4, double par6, double par8, double par10)
public static AABBPool getAABBPool()
public AxisAlignedBB setBounds(double par1, double par3, double par5, double par7, double par9, double par11)
public AxisAlignedBB addCoord(double par1, double par3, double par5)
public AxisAlignedBB expand(double par1, double par3, double par5)
public AxisAlignedBB getOffsetBoundingBox(double par1, double par3, double par5)
public double calculateXOffset(AxisAlignedBB par1AxisAlignedBB, double par2)
public double calculateYOffset(AxisAlignedBB par1AxisAlignedBB, double par2)
public double calculateZOffset(AxisAlignedBB par1AxisAlignedBB, double par2)
public boolean intersectsWith(AxisAlignedBB par1AxisAlignedBB)
public AxisAlignedBB offset(double par1, double par3, double par5)
public boolean isVecInside(Vec3 par1Vec3)
public double getAverageEdgeLength()
public AxisAlignedBB contract(double par1, double par3, double par5)
public AxisAlignedBB copy()
public MovingObjectPosition calculateIntercept(Vec3 par1Vec3, Vec3 par2Vec3)
public void setBB(AxisAlignedBB par1AxisAlignedBB)
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |