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 |
---|---|
RayTraceResult |
calculateIntercept(Vec3d vecA,
Vec3d vecB) |
double |
calculateXOffset(AxisAlignedBB other,
double offsetX) |
double |
calculateYOffset(AxisAlignedBB other,
double offsetY) |
double |
calculateZOffset(AxisAlignedBB other,
double offsetZ) |
(package private) Vec3d |
collideWithXPlane(double p_186671_1_,
Vec3d p_186671_3_,
Vec3d p_186671_4_) |
(package private) Vec3d |
collideWithYPlane(double p_186663_1_,
Vec3d p_186663_3_,
Vec3d p_186663_4_) |
(package private) Vec3d |
collideWithZPlane(double p_186665_1_,
Vec3d p_186665_3_,
Vec3d p_186665_4_) |
boolean |
contains(Vec3d vec) |
AxisAlignedBB |
contract(double x,
double y,
double z) |
boolean |
equals(java.lang.Object p_equals_1_) |
AxisAlignedBB |
expand(double x,
double y,
double z) |
double |
getAverageEdgeLength() |
Vec3d |
getCenter() |
AxisAlignedBB |
grow(double value) |
AxisAlignedBB |
grow(double x,
double y,
double z) |
int |
hashCode() |
boolean |
hasNaN() |
AxisAlignedBB |
intersect(AxisAlignedBB other) |
boolean |
intersects(AxisAlignedBB other) |
boolean |
intersects(double x1,
double y1,
double z1,
double x2,
double y2,
double z2) |
boolean |
intersects(Vec3d min,
Vec3d max) |
boolean |
intersectsWithXY(Vec3d vec) |
boolean |
intersectsWithXZ(Vec3d vec) |
boolean |
intersectsWithYZ(Vec3d vec) |
(package private) boolean |
isClosest(Vec3d p_186661_1_,
Vec3d p_186661_2_,
Vec3d p_186661_3_) |
AxisAlignedBB |
offset(BlockPos pos) |
AxisAlignedBB |
offset(double x,
double y,
double z) |
AxisAlignedBB |
offset(Vec3d vec) |
AxisAlignedBB |
setMaxY(double y2) |
AxisAlignedBB |
shrink(double value) |
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 x, double y, double z)
public AxisAlignedBB expand(double x, double y, double z)
public AxisAlignedBB grow(double x, double y, double z)
public AxisAlignedBB grow(double value)
public AxisAlignedBB intersect(AxisAlignedBB other)
public AxisAlignedBB union(AxisAlignedBB other)
public AxisAlignedBB offset(double x, double y, double z)
public AxisAlignedBB offset(BlockPos pos)
public AxisAlignedBB offset(Vec3d vec)
public double calculateXOffset(AxisAlignedBB other, double offsetX)
public double calculateYOffset(AxisAlignedBB other, double offsetY)
public double calculateZOffset(AxisAlignedBB other, double offsetZ)
public boolean intersects(AxisAlignedBB other)
public boolean intersects(double x1, double y1, double z1, double x2, double y2, double z2)
public boolean contains(Vec3d vec)
public double getAverageEdgeLength()
public AxisAlignedBB shrink(double value)
@Nullable public RayTraceResult calculateIntercept(Vec3d vecA, Vec3d vecB)
@Nullable Vec3d collideWithXPlane(double p_186671_1_, Vec3d p_186671_3_, Vec3d p_186671_4_)
@Nullable Vec3d collideWithYPlane(double p_186663_1_, Vec3d p_186663_3_, Vec3d p_186663_4_)
@Nullable Vec3d collideWithZPlane(double p_186665_1_, Vec3d p_186665_3_, Vec3d p_186665_4_)
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()