Package net.minecraft.util.math
Class BlockBox
java.lang.Object
net.minecraft.util.math.BlockBox
public class BlockBox extends Object
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description boolean
contains(Vec3i vec)
static BlockBox
create(int x1, int y1, int z1, int x2, int y2, int z2)
static BlockBox
empty()
void
encompass(BlockBox region)
int
getBlockCountX()
int
getBlockCountY()
int
getBlockCountZ()
Vec3i
getCenter()
Vec3i
getDimensions()
static BlockBox
infinite()
boolean
intersects(BlockBox other)
boolean
intersectsXZ(int minX, int minZ, int maxX, int maxZ)
void
move(int dx, int dy, int dz)
void
move(Vec3i vec3i)
BlockBox
offset(int x, int y, int z)
static BlockBox
rotated(int x, int y, int z, int offsetX, int offsetY, int offsetZ, int sizeX, int sizeY, int sizeZ, Direction facing)
IntArrayTag
toNbt()
String
toString()
-
Field Details
-
minX
public int minX -
minY
public int minY -
minZ
public int minZ -
maxX
public int maxX -
maxY
public int maxY -
maxZ
public int maxZ
-
-
Constructor Details
-
BlockBox
public BlockBox() -
BlockBox
public BlockBox(int[] data) -
BlockBox
-
BlockBox
public BlockBox(int minX, int minY, int minZ, int maxX, int maxY, int maxZ) -
BlockBox
-
BlockBox
public BlockBox(int minX, int minZ, int maxX, int maxZ)
-
-
Method Details
-
empty
-
infinite
-
rotated
-
create
-
intersects
-
intersectsXZ
public boolean intersectsXZ(int minX, int minZ, int maxX, int maxZ) -
encompass
-
move
public void move(int dx, int dy, int dz) -
offset
-
move
-
contains
-
getDimensions
-
getBlockCountX
public int getBlockCountX() -
getBlockCountY
public int getBlockCountY() -
getBlockCountZ
public int getBlockCountZ() -
getCenter
-
toString
-
toNbt
-