YATS/Forge Documentation
 All Classes Namespaces Files Functions Variables Enumerator Pages
net.minecraft.util.AxisAlignedBB Class Reference

Public Member Functions

AxisAlignedBB setBounds (double par1, double par3, double par5, double par7, double par9, double par11)
 
AxisAlignedBB addCoord (double par1, double par3, double par5)
 
AxisAlignedBB expand (double par1, double par3, double par5)
 
AxisAlignedBB getOffsetBoundingBox (double par1, double par3, double par5)
 
double calculateXOffset (AxisAlignedBB par1AxisAlignedBB, double par2)
 
double calculateYOffset (AxisAlignedBB par1AxisAlignedBB, double par2)
 
double calculateZOffset (AxisAlignedBB par1AxisAlignedBB, double par2)
 
boolean intersectsWith (AxisAlignedBB par1AxisAlignedBB)
 
AxisAlignedBB offset (double par1, double par3, double par5)
 
boolean isVecInside (Vec3 par1Vec3)
 
double getAverageEdgeLength ()
 
AxisAlignedBB contract (double par1, double par3, double par5)
 
AxisAlignedBB copy ()
 
MovingObjectPosition calculateIntercept (Vec3 par1Vec3, Vec3 par2Vec3)
 
void setBB (AxisAlignedBB par1AxisAlignedBB)
 
String toString ()
 

Static Public Member Functions

static AxisAlignedBB getBoundingBox (double par0, double par2, double par4, double par6, double par8, double par10)
 
static AABBPool getAABBPool ()
 

Public Attributes

double minX
 
double minY
 
double minZ
 
double maxX
 
double maxY
 
double maxZ
 

Protected Member Functions

 AxisAlignedBB (double par1, double par3, double par5, double par7, double par9, double par11)
 

Constructor & Destructor Documentation

net.minecraft.util.AxisAlignedBB.AxisAlignedBB ( double  par1,
double  par3,
double  par5,
double  par7,
double  par9,
double  par11 
)
protected

Member Function Documentation

AxisAlignedBB net.minecraft.util.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. Args: x, y, z

MovingObjectPosition net.minecraft.util.AxisAlignedBB.calculateIntercept ( Vec3  par1Vec3,
Vec3  par2Vec3 
)
double net.minecraft.util.AxisAlignedBB.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. return var2 if the bounding boxes do not overlap or if var2 is closer to 0 then the calculated offset. Otherwise return the calculated offset.

double net.minecraft.util.AxisAlignedBB.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. return var2 if the bounding boxes do not overlap or if var2 is closer to 0 then the calculated offset. Otherwise return the calculated offset.

double net.minecraft.util.AxisAlignedBB.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. return var2 if the bounding boxes do not overlap or if var2 is closer to 0 then the calculated offset. Otherwise return the calculated offset.

AxisAlignedBB net.minecraft.util.AxisAlignedBB.contract ( double  par1,
double  par3,
double  par5 
)

Returns a bounding box that is inset by the specified amounts

AxisAlignedBB net.minecraft.util.AxisAlignedBB.copy ( )

Returns a copy of the bounding box.

AxisAlignedBB net.minecraft.util.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). Args: x, y, z

static AABBPool net.minecraft.util.AxisAlignedBB.getAABBPool ( )
static

Gets the ThreadLocal AABBPool

double net.minecraft.util.AxisAlignedBB.getAverageEdgeLength ( )

Returns the average length of the edges of the bounding box.

static AxisAlignedBB net.minecraft.util.AxisAlignedBB.getBoundingBox ( double  par0,
double  par2,
double  par4,
double  par6,
double  par8,
double  par10 
)
static

Returns a bounding box with the specified bounds. Args: minX, minY, minZ, maxX, maxY, maxZ

AxisAlignedBB net.minecraft.util.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). Args: x, y, z

boolean net.minecraft.util.AxisAlignedBB.intersectsWith ( AxisAlignedBB  par1AxisAlignedBB)

Returns whether the given bounding box intersects with this one. Args: axisAlignedBB

boolean net.minecraft.util.AxisAlignedBB.isVecInside ( Vec3  par1Vec3)

Returns if the supplied Vec3D is completely inside the bounding box

AxisAlignedBB net.minecraft.util.AxisAlignedBB.offset ( double  par1,
double  par3,
double  par5 
)

Offsets the current bounding box by the specified coordinates. Args: x, y, z

void net.minecraft.util.AxisAlignedBB.setBB ( AxisAlignedBB  par1AxisAlignedBB)

Sets the bounding box to the same bounds as the bounding box passed in. Args: axisAlignedBB

AxisAlignedBB net.minecraft.util.AxisAlignedBB.setBounds ( double  par1,
double  par3,
double  par5,
double  par7,
double  par9,
double  par11 
)

Sets the bounds of the bounding box. Args: minX, minY, minZ, maxX, maxY, maxZ

String net.minecraft.util.AxisAlignedBB.toString ( )

Member Data Documentation

double net.minecraft.util.AxisAlignedBB.maxX
double net.minecraft.util.AxisAlignedBB.maxY
double net.minecraft.util.AxisAlignedBB.maxZ
double net.minecraft.util.AxisAlignedBB.minX
double net.minecraft.util.AxisAlignedBB.minY
double net.minecraft.util.AxisAlignedBB.minZ

The documentation for this class was generated from the following file: