@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 |
---|---|
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(Vec3d vec) |
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) |
BlockPos |
crossProduct(Vec3i vec) |
BlockPos |
down() |
BlockPos |
down(int n) |
BlockPos |
east() |
BlockPos |
east(int n) |
static BlockPos |
fromLong(long serialized) |
static java.lang.Iterable<BlockPos.MutableBlockPos> |
func_191531_b(int p_191531_0_,
int p_191531_1_,
int p_191531_2_,
int p_191531_3_,
int p_191531_4_,
int p_191531_5_) |
static java.lang.Iterable<BlockPos> |
func_191532_a(int p_191532_0_,
int p_191532_1_,
int p_191532_2_,
int p_191532_3_,
int p_191532_4_,
int p_191532_5_) |
static java.lang.Iterable<BlockPos> |
getAllInBox(BlockPos from,
BlockPos to) |
static java.lang.Iterable<BlockPos.MutableBlockPos> |
getAllInBoxMutable(BlockPos from,
BlockPos to) |
BlockPos |
north() |
BlockPos |
north(int n) |
BlockPos |
offset(EnumFacing facing) |
BlockPos |
offset(EnumFacing facing,
int n) |
BlockPos |
rotate(Rotation rotationIn) |
BlockPos |
south() |
BlockPos |
south(int n) |
BlockPos |
subtract(Vec3i vec) |
BlockPos |
toImmutable() |
long |
toLong() |
BlockPos |
up() |
BlockPos |
up(int n) |
BlockPos |
west() |
BlockPos |
west(int n) |
compareTo, distanceSq, distanceSq, distanceSqToCenter, equals, getDistance, 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(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> func_191532_a(int p_191532_0_, int p_191532_1_, int p_191532_2_, int p_191532_3_, int p_191532_4_, int p_191532_5_)
public BlockPos toImmutable()
public static java.lang.Iterable<BlockPos.MutableBlockPos> getAllInBoxMutable(BlockPos from, BlockPos to)
public static java.lang.Iterable<BlockPos.MutableBlockPos> func_191531_b(int p_191531_0_, int p_191531_1_, int p_191531_2_, int p_191531_3_, int p_191531_4_, int p_191531_5_)