Package net.minecraft.util.math
Class AxisAlignedBB
java.lang.Object
net.minecraft.util.math.AxisAlignedBB
-
Field Summary
-
Constructor Summary
ConstructorDescriptionAxisAlignedBB
(double p_i2300_1_, double p_i2300_3_, double p_i2300_5_, double p_i2300_7_, double p_i2300_9_, double p_i2300_11_) AxisAlignedBB
(BlockPos p_i46612_1_) AxisAlignedBB
(BlockPos p_i45554_1_, BlockPos p_i45554_2_) AxisAlignedBB
(Vector3d p_i47144_1_, Vector3d p_i47144_2_) -
Method Summary
Modifier and TypeMethodDescriptionstatic BlockRayTraceResult
clip
(Iterable<AxisAlignedBB> p_197743_0_, Vector3d p_197743_1_, Vector3d p_197743_2_, BlockPos p_197743_3_) private static Direction
clipPoint
(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_) boolean
contains
(double p_197744_1_, double p_197744_3_, double p_197744_5_) boolean
contract
(double p_191195_1_, double p_191195_3_, double p_191195_5_) deflate
(double p_186664_1_) boolean
expandTowards
(double p_72321_1_, double p_72321_3_, double p_72321_5_) expandTowards
(Vector3d p_216361_1_) private static Direction
getDirection
(AxisAlignedBB p_197741_0_, Vector3d p_197741_1_, double[] p_197741_2_, Direction p_197741_3_, double p_197741_4_, double p_197741_6_, double p_197741_8_) double
getSize()
double
getXsize()
double
getYsize()
double
getZsize()
int
hashCode()
boolean
hasNaN()
inflate
(double p_186662_1_) inflate
(double p_72314_1_, double p_72314_3_, double p_72314_5_) intersect
(AxisAlignedBB p_191500_1_) boolean
intersects
(double p_186668_1_, double p_186668_3_, double p_186668_5_, double p_186668_7_, double p_186668_9_, double p_186668_11_) boolean
intersects
(AxisAlignedBB p_72326_1_) boolean
intersects
(Vector3d p_189973_1_, Vector3d p_189973_2_) double
max
(Direction.Axis p_197742_1_) double
min
(Direction.Axis p_197745_1_) minmax
(AxisAlignedBB p_111270_1_) move
(double p_72317_1_, double p_72317_3_, double p_72317_5_) static AxisAlignedBB
of
(MutableBoundingBox p_216363_0_) static AxisAlignedBB
ofSize
(double p_241550_0_, double p_241550_2_, double p_241550_4_) toString()
static AxisAlignedBB
unitCubeFromLowerCorner
(Vector3d p_241549_0_)
-
Field Details
-
minX
public final double minX -
minY
public final double minY -
minZ
public final double minZ -
maxX
public final double maxX -
maxY
public final double maxY -
maxZ
public final double maxZ
-
-
Constructor Details
-
AxisAlignedBB
public AxisAlignedBB(double p_i2300_1_, double p_i2300_3_, double p_i2300_5_, double p_i2300_7_, double p_i2300_9_, double p_i2300_11_) -
AxisAlignedBB
-
AxisAlignedBB
-
AxisAlignedBB
-
-
Method Details
-
of
-
unitCubeFromLowerCorner
-
min
-
max
-
equals
-
hashCode
public int hashCode() -
contract
-
expandTowards
-
expandTowards
-
inflate
-
inflate
-
intersect
-
minmax
-
move
-
move
-
move
-
intersects
-
intersects
public boolean intersects(double p_186668_1_, double p_186668_3_, double p_186668_5_, double p_186668_7_, double p_186668_9_, double p_186668_11_) -
intersects
-
contains
-
contains
public boolean contains(double p_197744_1_, double p_197744_3_, double p_197744_5_) -
getSize
public double getSize() -
getXsize
public double getXsize() -
getYsize
public double getYsize() -
getZsize
public double getZsize() -
deflate
-
clip
-
clip
@Nullable public static BlockRayTraceResult clip(Iterable<AxisAlignedBB> p_197743_0_, Vector3d p_197743_1_, Vector3d p_197743_2_, BlockPos p_197743_3_) -
getDirection
@Nullable private static Direction getDirection(AxisAlignedBB p_197741_0_, Vector3d p_197741_1_, double[] p_197741_2_, @Nullable Direction p_197741_3_, double p_197741_4_, double p_197741_6_, double p_197741_8_) -
clipPoint
@Nullable private static Direction clipPoint(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_) -
toString
-
hasNaN
public boolean hasNaN() -
getCenter
-
ofSize
-