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 |
---|---|
boolean |
contains(double x,
double y,
double z) |
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) |
AxisAlignedBB |
expand(Vec3d p_216361_1_) |
private static Direction |
func_197740_a(double[] p_197740_0_,
Direction p_197740_1_,
double p_197740_2_,
double p_197740_4_,
double p_197740_6_,
double p_197740_8_,
double p_197740_10_,
double p_197740_12_,
double p_197740_14_,
double p_197740_16_,
Direction p_197740_18_,
double p_197740_19_,
double p_197740_21_,
double p_197740_23_) |
private static Direction |
func_197741_a(AxisAlignedBB aabb,
Vec3d p_197741_1_,
double[] p_197741_2_,
Direction facing,
double p_197741_4_,
double p_197741_6_,
double p_197741_8_) |
double |
getAverageEdgeLength() |
Vec3d |
getCenter() |
double |
getMax(Direction.Axis axis) |
double |
getMin(Direction.Axis axis) |
double |
getXSize() |
double |
getYSize() |
double |
getZSize() |
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) |
AxisAlignedBB |
offset(BlockPos pos) |
AxisAlignedBB |
offset(double x,
double y,
double z) |
AxisAlignedBB |
offset(Vec3d vec) |
static BlockRayTraceResult |
rayTrace(java.lang.Iterable<AxisAlignedBB> boxes,
Vec3d start,
Vec3d end,
BlockPos pos) |
java.util.Optional<Vec3d> |
rayTrace(Vec3d p_216365_1_,
Vec3d p_216365_2_) |
AxisAlignedBB |
shrink(double value) |
static AxisAlignedBB |
toImmutable(MutableBoundingBox p_216363_0_) |
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 static AxisAlignedBB toImmutable(MutableBoundingBox p_216363_0_)
public double getMin(Direction.Axis axis)
public double getMax(Direction.Axis axis)
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(Vec3d p_216361_1_)
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 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 boolean contains(double x, double y, double z)
public double getAverageEdgeLength()
public double getXSize()
public double getYSize()
public double getZSize()
public AxisAlignedBB shrink(double value)
@Nullable public static BlockRayTraceResult rayTrace(java.lang.Iterable<AxisAlignedBB> boxes, Vec3d start, Vec3d end, BlockPos pos)
@Nullable private static Direction func_197741_a(AxisAlignedBB aabb, Vec3d p_197741_1_, double[] p_197741_2_, @Nullable Direction facing, double p_197741_4_, double p_197741_6_, double p_197741_8_)
@Nullable private static Direction func_197740_a(double[] p_197740_0_, @Nullable Direction p_197740_1_, double p_197740_2_, double p_197740_4_, double p_197740_6_, double p_197740_8_, double p_197740_10_, double p_197740_12_, double p_197740_14_, double p_197740_16_, Direction p_197740_18_, double p_197740_19_, double p_197740_21_, double p_197740_23_)
public java.lang.String toString()
toString
in class java.lang.Object
public boolean hasNaN()
public Vec3d getCenter()