Package net.minecraft.world.phys
Class AABB
java.lang.Object
net.minecraft.world.phys.AABB
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic BlockHitResult
private static Direction
clipPoint
(double[] p_82348_, Direction p_82349_, double p_82350_, double p_82351_, double p_82352_, double p_82353_, double p_82354_, double p_82355_, double p_82356_, double p_82357_, Direction p_82358_, double p_82359_, double p_82360_, double p_82361_) boolean
contains
(double p_82394_, double p_82395_, double p_82396_) boolean
contract
(double p_82311_, double p_82312_, double p_82313_) deflate
(double p_82407_) deflate
(double p_165898_, double p_165899_, double p_165900_) double
distanceToSqr
(Vec3 p_273572_) static AABB
encapsulatingFullBlocks
(BlockPos p_310039_, BlockPos p_309686_) boolean
expandTowards
(double p_82364_, double p_82365_, double p_82366_) expandTowards
(Vec3 p_82370_) private static Direction
getDirection
(AABB p_82326_, Vec3 p_82327_, double[] p_82328_, Direction p_82329_, double p_82330_, double p_82331_, double p_82332_) double
getSize()
double
getXsize()
double
getYsize()
double
getZsize()
int
hashCode()
boolean
hasNaN()
inflate
(double p_82401_) inflate
(double p_82378_, double p_82379_, double p_82380_) boolean
intersects
(double p_82315_, double p_82316_, double p_82317_, double p_82318_, double p_82319_, double p_82320_) boolean
intersects
(AABB p_82382_) boolean
intersects
(Vec3 p_82336_, Vec3 p_82337_) double
max
(Direction.Axis p_82375_) double
min
(Direction.Axis p_82341_) move
(double p_82387_, double p_82388_, double p_82389_) static AABB
of
(BoundingBox p_82322_) static AABB
setMaxX
(double p_165892_) setMaxY
(double p_165894_) setMaxZ
(double p_165896_) setMinX
(double p_165881_) setMinY
(double p_165888_) setMinZ
(double p_165890_) toString()
static AABB
unitCubeFromLowerCorner
(Vec3 p_82334_)
-
Field Details
-
EPSILON
private static final double EPSILON- See Also:
-
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
-
AABB
public AABB(double p_82295_, double p_82296_, double p_82297_, double p_82298_, double p_82299_, double p_82300_) -
AABB
-
AABB
-
-
Method Details
-
of
-
unitCubeFromLowerCorner
-
encapsulatingFullBlocks
-
setMinX
-
setMinY
-
setMinZ
-
setMaxX
-
setMaxY
-
setMaxZ
-
min
-
max
-
equals
-
hashCode
public int hashCode() -
contract
-
expandTowards
-
expandTowards
-
inflate
-
inflate
-
intersect
-
minmax
-
move
-
move
-
move
-
intersects
-
intersects
public boolean intersects(double p_82315_, double p_82316_, double p_82317_, double p_82318_, double p_82319_, double p_82320_) -
intersects
-
contains
-
contains
public boolean contains(double p_82394_, double p_82395_, double p_82396_) -
getSize
public double getSize() -
getXsize
public double getXsize() -
getYsize
public double getYsize() -
getZsize
public double getZsize() -
deflate
-
deflate
-
clip
-
clip
-
getDirection
-
clipPoint
@Nullable private static Direction clipPoint(double[] p_82348_, @Nullable Direction p_82349_, double p_82350_, double p_82351_, double p_82352_, double p_82353_, double p_82354_, double p_82355_, double p_82356_, double p_82357_, Direction p_82358_, double p_82359_, double p_82360_, double p_82361_) -
distanceToSqr
-
toString
-
hasNaN
public boolean hasNaN() -
getCenter
-
ofSize
-