Class BoundingBox
java.lang.Object
net.minecraft.world.level.levelgen.structure.BoundingBox
-
Field Summary
-
Constructor Summary
ConstructorDescriptionBoundingBox
(int p_71001_, int p_71002_, int p_71003_, int p_71004_, int p_71005_, int p_71006_) BoundingBox
(BlockPos p_162364_) -
Method Summary
Modifier and TypeMethodDescriptionencapsulate
(BlockPos p_162372_) Deprecated.encapsulate
(BoundingBox p_162387_) Deprecated.static Optional<BoundingBox>
encapsulatingBoxes
(Iterable<BoundingBox> p_162389_) static Optional<BoundingBox>
encapsulatingPositions
(Iterable<BlockPos> p_162379_) boolean
void
forAllCorners
(Consumer<BlockPos> p_162381_) static BoundingBox
fromCorners
(Vec3i p_162376_, Vec3i p_162377_) int
getXSpan()
int
getYSpan()
int
getZSpan()
int
hashCode()
static BoundingBox
infinite()
inflatedBy
(int p_191962_) boolean
intersects
(int p_71020_, int p_71021_, int p_71022_, int p_71023_) boolean
intersects
(BoundingBox p_71050_) boolean
int
maxX()
int
maxY()
int
maxZ()
int
minX()
int
minY()
int
minZ()
move
(int p_162368_, int p_162369_, int p_162370_) Deprecated.Deprecated.moved
(int p_71046_, int p_71047_, int p_71048_) static BoundingBox
orientBox
(int p_71032_, int p_71033_, int p_71034_, int p_71035_, int p_71036_, int p_71037_, int p_71038_, int p_71039_, int p_71040_, Direction p_71041_) toString()
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
CODEC
-
minX
private int minX -
minY
private int minY -
minZ
private int minZ -
maxX
private int maxX -
maxY
private int maxY -
maxZ
private int maxZ
-
-
Constructor Details
-
BoundingBox
-
BoundingBox
public BoundingBox(int p_71001_, int p_71002_, int p_71003_, int p_71004_, int p_71005_, int p_71006_)
-
-
Method Details
-
fromCorners
-
infinite
-
orientBox
public static BoundingBox orientBox(int p_71032_, int p_71033_, int p_71034_, int p_71035_, int p_71036_, int p_71037_, int p_71038_, int p_71039_, int p_71040_, Direction p_71041_) -
intersects
-
intersects
public boolean intersects(int p_71020_, int p_71021_, int p_71022_, int p_71023_) -
encapsulatingPositions
-
encapsulatingBoxes
-
encapsulate
Deprecated. -
encapsulate
Deprecated. -
move
Deprecated. -
move
Deprecated. -
moved
-
inflatedBy
-
isInside
-
getLength
-
getXSpan
public int getXSpan() -
getYSpan
public int getYSpan() -
getZSpan
public int getZSpan() -
getCenter
-
forAllCorners
-
toString
-
equals
-
hashCode
public int hashCode() -
minX
public int minX() -
minY
public int minY() -
minZ
public int minZ() -
maxX
public int maxX() -
maxY
public int maxY() -
maxZ
public int maxZ()
-