@Immutable public class BlockPos extends Vec3i
Modifier and Type | Class and Description |
---|---|
static class |
BlockPos.MutableBlockPos |
static class |
BlockPos.PooledMutableBlockPos |
Modifier and Type | Field and Description |
---|---|
private static org.apache.logging.log4j.Logger |
LOGGER |
private static int |
NUM_X_BITS |
private static int |
NUM_Y_BITS |
private static int |
NUM_Z_BITS |
static BlockPos |
ORIGIN |
private static long |
X_MASK |
private static int |
X_SHIFT |
private static long |
Y_MASK |
private static int |
Y_SHIFT |
private static long |
Z_MASK |
NULL_VECTOR
Constructor and Description |
---|
BlockPos(double x,
double y,
double z) |
BlockPos(Entity source) |
BlockPos(int x,
int y,
int z) |
BlockPos(Vec3d vec) |
BlockPos(Vec3i source) |
compareTo, distanceSq, distanceSq, distanceSqToCenter, equals, getDistance, getX, getY, getZ, hashCode, toString
private static final org.apache.logging.log4j.Logger LOGGER
public static final BlockPos ORIGIN
private static final int NUM_X_BITS
private static final int NUM_Z_BITS
private static final int NUM_Y_BITS
private static final int Y_SHIFT
private static final int X_SHIFT
private static final long X_MASK
private static final long Y_MASK
private static final long Z_MASK
public BlockPos(int x, int y, int z)
public BlockPos(double x, double y, double z)
public BlockPos(Entity source)
public BlockPos(Vec3d vec)
public BlockPos(Vec3i source)
public BlockPos add(double x, double y, double z)
public BlockPos add(int x, int y, int z)
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 BlockPos crossProduct(Vec3i vec)
crossProduct
in class Vec3i
public long toLong()
public static BlockPos fromLong(long serialized)
public static java.lang.Iterable<BlockPos> getAllInBox(int x1, int y1, int z1, int x2, int y2, int z2)
public BlockPos toImmutable()
public static java.lang.Iterable<BlockPos.MutableBlockPos> getAllInBoxMutable(BlockPos from, BlockPos to)
public static java.lang.Iterable<BlockPos.MutableBlockPos> getAllInBoxMutable(int x1, int y1, int z1, int x2, int y2, int z2)