public class AxisAlignedBB
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
double |
maxX |
double |
maxY |
double |
maxZ |
double |
minX |
double |
minY |
double |
minZ |
Constructor and Description |
---|
AxisAlignedBB(BlockPos pos) |
AxisAlignedBB(BlockPos pos1,
BlockPos pos2) |
AxisAlignedBB(double x1,
double y1,
double z1,
double x2,
double y2,
double z2) |
Modifier and Type | Method and Description |
---|---|
AxisAlignedBB |
addCoord(double x,
double y,
double z) |
RayTraceResult |
calculateIntercept(Vec3d vecA,
Vec3d vecB) |
double |
calculateXOffset(AxisAlignedBB other,
double offsetX) |
double |
calculateYOffset(AxisAlignedBB other,
double offsetY) |
double |
calculateZOffset(AxisAlignedBB other,
double offsetZ) |
AxisAlignedBB |
contract(double value) |
boolean |
equals(java.lang.Object p_equals_1_) |
AxisAlignedBB |
expand(double x,
double y,
double z) |
AxisAlignedBB |
expandXyz(double value) |
double |
getAverageEdgeLength() |
int |
hashCode() |
boolean |
hasNaN() |
boolean |
intersects(double x1,
double y1,
double z1,
double x2,
double y2,
double z2) |
boolean |
intersectsWith(AxisAlignedBB other) |
boolean |
intersectsWithXY(Vec3d vec) |
boolean |
intersectsWithXZ(Vec3d vec) |
boolean |
intersectsWithYZ(Vec3d vec) |
boolean |
isVecInside(Vec3d vec) |
AxisAlignedBB |
offset(BlockPos pos) |
AxisAlignedBB |
offset(double x,
double y,
double z) |
AxisAlignedBB |
setMaxY(double y2) |
java.lang.String |
toString() |
AxisAlignedBB |
union(AxisAlignedBB other) |
public final double minX
public final double minY
public final double minZ
public final double maxX
public final double maxY
public final double maxZ
public AxisAlignedBB(double x1, double y1, double z1, double x2, double y2, double z2)
public AxisAlignedBB(BlockPos pos)
public AxisAlignedBB setMaxY(double y2)
public boolean equals(java.lang.Object p_equals_1_)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public AxisAlignedBB addCoord(double x, double y, double z)
public AxisAlignedBB expand(double x, double y, double z)
public AxisAlignedBB expandXyz(double value)
public AxisAlignedBB union(AxisAlignedBB other)
public AxisAlignedBB offset(double x, double y, double z)
public AxisAlignedBB offset(BlockPos pos)
public double calculateXOffset(AxisAlignedBB other, double offsetX)
public double calculateYOffset(AxisAlignedBB other, double offsetY)
public double calculateZOffset(AxisAlignedBB other, double offsetZ)
public boolean intersectsWith(AxisAlignedBB other)
public boolean intersects(double x1, double y1, double z1, double x2, double y2, double z2)
public boolean isVecInside(Vec3d vec)
public double getAverageEdgeLength()
public AxisAlignedBB contract(double value)
@Nullable public RayTraceResult calculateIntercept(Vec3d vecA, Vec3d vecB)
public boolean intersectsWithYZ(Vec3d vec)
public boolean intersectsWithXZ(Vec3d vec)
public boolean intersectsWithXY(Vec3d vec)
public java.lang.String toString()
toString
in class java.lang.Object
public boolean hasNaN()