@Immutable public class BlockPos extends Vec3i implements IDynamicSerializable
Modifier and Type | Class and Description |
---|---|
static class |
BlockPos.Mutable |
static class |
BlockPos.PooledMutable |
Modifier and Type | Field and Description |
---|---|
private static int |
field_218292_j |
private static int |
field_218293_k |
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 |
private static long |
X_MASK |
private static long |
Y_MASK |
private static long |
Z_MASK |
static BlockPos |
ZERO |
NULL_VECTOR
Constructor and Description |
---|
BlockPos(double x,
double y,
double z) |
BlockPos(Entity source) |
BlockPos(int x,
int y,
int z) |
BlockPos(IPosition p_i50799_1_) |
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) |
static <T> BlockPos |
deserialize(com.mojang.datafixers.Dynamic<T> p_218286_0_) |
BlockPos |
down() |
BlockPos |
down(int n) |
BlockPos |
east() |
BlockPos |
east(int n) |
static BlockPos |
fromLong(long p_218283_0_) |
static long |
func_218288_f(long p_218288_0_) |
static java.util.stream.Stream<BlockPos> |
getAllInBox(BlockPos firstPos,
BlockPos secondPos) |
static java.util.stream.Stream<BlockPos> |
getAllInBox(int p_218287_0_,
int p_218287_1_,
int p_218287_2_,
int p_218287_3_,
int p_218287_4_,
int p_218287_5_) |
static java.util.stream.Stream<BlockPos> |
getAllInBox(MutableBoundingBox p_229383_0_) |
static java.lang.Iterable<BlockPos> |
getAllInBoxMutable(BlockPos firstPos,
BlockPos secondPos) |
static java.lang.Iterable<BlockPos> |
getAllInBoxMutable(int x1,
int y1,
int z1,
int x2,
int y2,
int z2) |
BlockPos |
north() |
BlockPos |
north(int n) |
BlockPos |
offset(Direction facing) |
BlockPos |
offset(Direction facing,
int n) |
static long |
offset(long pos,
Direction p_218289_2_) |
static long |
offset(long pos,
int dx,
int dy,
int dz) |
static long |
pack(int p_218276_0_,
int p_218276_1_,
int p_218276_2_) |
BlockPos |
rotate(Rotation rotationIn) |
<T> T |
serialize(com.mojang.datafixers.types.DynamicOps<T> p_218175_1_) |
BlockPos |
south() |
BlockPos |
south(int n) |
BlockPos |
subtract(Vec3i vec) |
BlockPos |
toImmutable() |
long |
toLong() |
static int |
unpackX(long p_218290_0_) |
static int |
unpackY(long p_218274_0_) |
static int |
unpackZ(long p_218282_0_) |
BlockPos |
up() |
BlockPos |
up(int n) |
BlockPos |
west() |
BlockPos |
west(int n) |
compareTo, distanceSq, distanceSq, distanceSq, equals, func_229422_x_, getX, getY, getZ, hashCode, manhattanDistance, toString, withinDistance, withinDistance
private static final org.apache.logging.log4j.Logger LOGGER
public static final BlockPos ZERO
private static final int NUM_X_BITS
private static final int NUM_Z_BITS
private static final int NUM_Y_BITS
private static final long X_MASK
private static final long Y_MASK
private static final long Z_MASK
private static final int field_218292_j
private static final int field_218293_k
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(IPosition p_i50799_1_)
public BlockPos(Vec3i source)
public static <T> BlockPos deserialize(com.mojang.datafixers.Dynamic<T> p_218286_0_)
public <T> T serialize(com.mojang.datafixers.types.DynamicOps<T> p_218175_1_)
serialize
in interface IDynamicSerializable
public static long offset(long pos, Direction p_218289_2_)
public static long offset(long pos, int dx, int dy, int dz)
public static int unpackX(long p_218290_0_)
public static int unpackY(long p_218274_0_)
public static int unpackZ(long p_218282_0_)
public static BlockPos fromLong(long p_218283_0_)
public static long pack(int p_218276_0_, int p_218276_1_, int p_218276_2_)
public static long func_218288_f(long p_218288_0_)
public long toLong()
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 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 crossProduct(Vec3i vec)
crossProduct
in class Vec3i
public BlockPos toImmutable()
public static java.lang.Iterable<BlockPos> getAllInBoxMutable(BlockPos firstPos, BlockPos secondPos)
public static java.util.stream.Stream<BlockPos> getAllInBox(BlockPos firstPos, BlockPos secondPos)
public static java.util.stream.Stream<BlockPos> getAllInBox(MutableBoundingBox p_229383_0_)
public static java.util.stream.Stream<BlockPos> getAllInBox(int p_218287_0_, int p_218287_1_, int p_218287_2_, int p_218287_3_, int p_218287_4_, int p_218287_5_)
public static java.lang.Iterable<BlockPos> getAllInBoxMutable(int x1, int y1, int z1, int x2, int y2, int z2)