public class BlockPos extends Vec3i
Modifier and Type | Class and Description |
---|---|
static class |
BlockPos.MutableBlockPos |
Modifier and Type | Field and Description |
---|---|
static BlockPos |
ORIGIN |
NULL_VECTOR
Constructor and Description |
---|
BlockPos(double x,
double y,
double z) |
BlockPos(Entity source) |
BlockPos(int x,
int y,
int z) |
BlockPos(Vec3 source) |
BlockPos(Vec3i source) |
Modifier and Type | Method and Description |
---|---|
BlockPos |
add(double x,
double y,
double z) |
BlockPos |
add(int x,
int y,
int z) |
BlockPos |
add(Vec3i vec) |
Vec3i |
crossProduct(Vec3i vec) |
BlockPos |
crossProductBP(Vec3i vec) |
BlockPos |
down() |
BlockPos |
down(int n) |
BlockPos |
east() |
BlockPos |
east(int n) |
static BlockPos |
fromLong(long serialized) |
static java.lang.Iterable |
getAllInBox(BlockPos from,
BlockPos to) |
static java.lang.Iterable |
getAllInBoxMutable(BlockPos from,
BlockPos to) |
BlockPos |
multiply(int factor) |
BlockPos |
north() |
BlockPos |
north(int n) |
BlockPos |
offset(EnumFacing facing) |
BlockPos |
offset(EnumFacing facing,
int n) |
BlockPos |
south() |
BlockPos |
south(int n) |
BlockPos |
subtract(Vec3i vec) |
long |
toLong() |
BlockPos |
up() |
BlockPos |
up(int n) |
BlockPos |
west() |
BlockPos |
west(int n) |
compareTo, compareTo, distanceSq, distanceSq, distanceSqToCenter, equals, getX, getY, getZ, hashCode, toString
public static final BlockPos ORIGIN
public BlockPos(int x, int y, int z)
public BlockPos(double x, double y, double z)
public BlockPos(Entity source)
public BlockPos(Vec3 source)
public BlockPos(Vec3i source)
public BlockPos add(double x, double y, double z)
public BlockPos add(int x, int y, int z)
public BlockPos multiply(int factor)
public BlockPos up()
public BlockPos up(int n)
public BlockPos down()
public BlockPos down(int n)
public BlockPos north()
public BlockPos north(int n)
public BlockPos south()
public BlockPos south(int n)
public BlockPos west()
public BlockPos west(int n)
public BlockPos east()
public BlockPos east(int n)
public BlockPos offset(EnumFacing facing)
public BlockPos offset(EnumFacing facing, int n)
public long toLong()
public static BlockPos fromLong(long serialized)
public Vec3i crossProduct(Vec3i vec)
crossProduct
in class Vec3i