public class BlockBox extends Object
Modifier and Type | Field and Description |
---|---|
int |
maxX |
int |
maxY |
int |
maxZ |
int |
minX |
int |
minY |
int |
minZ |
Constructor and Description |
---|
BlockBox() |
BlockBox(BlockBox source) |
BlockBox(int[] data) |
BlockBox(int minX,
int minZ,
int maxX,
int maxZ) |
BlockBox(int minX,
int minY,
int minZ,
int maxX,
int maxY,
int maxZ) |
BlockBox(Vec3i v1,
Vec3i v2) |
Modifier and Type | Method and 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() |
public int minX
public int minY
public int minZ
public int maxX
public int maxY
public int maxZ
public BlockBox()
public BlockBox(int[] data)
public BlockBox(BlockBox source)
public BlockBox(int minX, int minY, int minZ, int maxX, int maxY, int maxZ)
public BlockBox(int minX, int minZ, int maxX, int maxZ)
public static BlockBox empty()
public static BlockBox infinite()
public static BlockBox rotated(int x, int y, int z, int offsetX, int offsetY, int offsetZ, int sizeX, int sizeY, int sizeZ, Direction facing)
public static BlockBox create(int x1, int y1, int z1, int x2, int y2, int z2)
public boolean intersects(BlockBox other)
public boolean intersectsXZ(int minX, int minZ, int maxX, int maxZ)
public void encompass(BlockBox region)
public void move(int dx, int dy, int dz)
public BlockBox offset(int x, int y, int z)
public void move(Vec3i vec3i)
public boolean contains(Vec3i vec)
public Vec3i getDimensions()
public int getBlockCountX()
public int getBlockCountY()
public int getBlockCountZ()
public Vec3i getCenter()
public IntArrayTag toNbt()