@Immutable public class BlockPos extends Vec3i implements IDynamicSerializable
Modifier and Type | Class and Description |
---|---|
static class |
BlockPos.MutableBlockPos |
static class |
BlockPos.PooledMutableBlockPos |
Modifier and Type | Field and Description |
---|---|
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 p_218281_0_,
BlockPos p_218281_1_) |
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.lang.Iterable<BlockPos> |
getAllInBoxMutable(BlockPos p_218278_0_,
BlockPos p_218278_1_) |
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, getX, getY, getZ, hashCode, manhattanDistance, toString, withinDistance, withinDistance
public static final BlockPos ZERO
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 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 crossProduct(Vec3i vec)
crossProduct
in class Vec3i
public BlockPos toImmutable()
public static java.lang.Iterable<BlockPos> getAllInBoxMutable(BlockPos p_218278_0_, BlockPos p_218278_1_)
public static java.util.stream.Stream<BlockPos> getAllInBox(BlockPos p_218281_0_, BlockPos p_218281_1_)
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)