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) |
AxisAlignedBB(Vec3d min,
Vec3d max) |
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) |
AxisAlignedBB |
contract(double p_191195_1_,
double p_191195_3_,
double p_191195_5_) |
boolean |
equals(java.lang.Object p_equals_1_) |
AxisAlignedBB |
expand(double x,
double y,
double z) |
AxisAlignedBB |
expandXyz(double value) |
double |
getAverageEdgeLength() |
Vec3d |
getCenter() |
int |
hashCode() |
boolean |
hasNaN() |
AxisAlignedBB |
intersect(AxisAlignedBB p_191500_1_) |
boolean |
intersects(double x1,
double y1,
double z1,
double x2,
double y2,
double z2) |
boolean |
intersects(Vec3d min,
Vec3d max) |
boolean |
intersectsWith(AxisAlignedBB other) |
boolean |
intersectsWithXY(Vec3d vec) |
boolean |
intersectsWithXZ(Vec3d vec) |
boolean |
intersectsWithYZ(Vec3d vec) |
boolean |
isVecInside(Vec3d vec) |
AxisAlignedBB |
move(Vec3d p_191194_1_) |
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 contract(double p_191195_1_, double p_191195_3_, double p_191195_5_)
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 intersect(AxisAlignedBB p_191500_1_)
public AxisAlignedBB union(AxisAlignedBB other)
public AxisAlignedBB offset(double x, double y, double z)
public AxisAlignedBB offset(BlockPos pos)
public AxisAlignedBB move(Vec3d p_191194_1_)
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()
public Vec3d getCenter()