Package net.minecraft.util.math
Class AxisAlignedBB
- java.lang.Object
-
- net.minecraft.util.math.AxisAlignedBB
-
public class AxisAlignedBB extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description 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(BlockPos p_i46612_1_)
AxisAlignedBB(BlockPos p_i45554_1_, BlockPos p_i45554_2_)
AxisAlignedBB(Vector3d p_i47144_1_, Vector3d p_i47144_2_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static BlockRayTraceResult
clip(java.lang.Iterable<AxisAlignedBB> p_197743_0_, Vector3d p_197743_1_, Vector3d p_197743_2_, BlockPos p_197743_3_)
java.util.Optional<Vector3d>
clip(Vector3d p_216365_1_, Vector3d p_216365_2_)
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
contains(Vector3d p_72318_1_)
AxisAlignedBB
contract(double p_191195_1_, double p_191195_3_, double p_191195_5_)
AxisAlignedBB
deflate(double p_186664_1_)
boolean
equals(java.lang.Object p_equals_1_)
AxisAlignedBB
expandTowards(double p_72321_1_, double p_72321_3_, double p_72321_5_)
AxisAlignedBB
expandTowards(Vector3d p_216361_1_)
Vector3d
getCenter()
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()
AxisAlignedBB
inflate(double p_186662_1_)
AxisAlignedBB
inflate(double p_72314_1_, double p_72314_3_, double p_72314_5_)
AxisAlignedBB
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_)
AxisAlignedBB
minmax(AxisAlignedBB p_111270_1_)
AxisAlignedBB
move(double p_72317_1_, double p_72317_3_, double p_72317_5_)
AxisAlignedBB
move(BlockPos p_186670_1_)
AxisAlignedBB
move(Vector3d p_191194_1_)
static AxisAlignedBB
of(MutableBoundingBox p_216363_0_)
static AxisAlignedBB
ofSize(double p_241550_0_, double p_241550_2_, double p_241550_4_)
java.lang.String
toString()
static AxisAlignedBB
unitCubeFromLowerCorner(Vector3d p_241549_0_)
-
-
-
Constructor Detail
-
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
public AxisAlignedBB(BlockPos p_i46612_1_)
-
-
Method Detail
-
of
public static AxisAlignedBB of(MutableBoundingBox p_216363_0_)
-
unitCubeFromLowerCorner
public static AxisAlignedBB unitCubeFromLowerCorner(Vector3d p_241549_0_)
-
min
public double min(Direction.Axis p_197745_1_)
-
max
public double max(Direction.Axis p_197742_1_)
-
equals
public boolean equals(java.lang.Object p_equals_1_)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
contract
public AxisAlignedBB contract(double p_191195_1_, double p_191195_3_, double p_191195_5_)
-
expandTowards
public AxisAlignedBB expandTowards(Vector3d p_216361_1_)
-
expandTowards
public AxisAlignedBB expandTowards(double p_72321_1_, double p_72321_3_, double p_72321_5_)
-
inflate
public AxisAlignedBB inflate(double p_72314_1_, double p_72314_3_, double p_72314_5_)
-
inflate
public AxisAlignedBB inflate(double p_186662_1_)
-
intersect
public AxisAlignedBB intersect(AxisAlignedBB p_191500_1_)
-
minmax
public AxisAlignedBB minmax(AxisAlignedBB p_111270_1_)
-
move
public AxisAlignedBB move(double p_72317_1_, double p_72317_3_, double p_72317_5_)
-
move
public AxisAlignedBB move(BlockPos p_186670_1_)
-
move
public AxisAlignedBB move(Vector3d p_191194_1_)
-
intersects
public boolean intersects(AxisAlignedBB p_72326_1_)
-
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_)
-
contains
public boolean contains(Vector3d p_72318_1_)
-
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
public AxisAlignedBB deflate(double p_186664_1_)
-
clip
@Nullable public static BlockRayTraceResult clip(java.lang.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
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
hasNaN
public boolean hasNaN()
-
getCenter
public Vector3d getCenter()
-
ofSize
public static AxisAlignedBB ofSize(double p_241550_0_, double p_241550_2_, double p_241550_4_)
-
-