net.minecraft.core

public class BlockPos

extends Vec3i

fx
net.minecraft.core.BlockPos
net.minecraft.class_2338
net.minecraft.util.math.BlockPos
net.minecraft.util.math.BlockPos
net.minecraft.server.v1_16_R2.BlockPosition

Field summary

Modifier and TypeField
public static final com.mojang.serialization.Codec<BlockPos>
a
CODEC
field_25064
CODEC
field_239578_a_
private static final org.apache.logging.log4j.Logger
e
LOGGER
field_18789
LOGGER
field_185335_c
public static final BlockPos
b
ZERO
field_10980
ORIGIN
field_177992_a
ZERO
private static final int
f
PACKED_X_LENGTH
field_10978
SIZE_BITS_X
field_177990_b
private static final int
g
PACKED_Z_LENGTH
field_10977
SIZE_BITS_Z
field_177991_c
private static final int
h
PACKED_Y_LENGTH
field_10975
SIZE_BITS_Y
field_177989_d
private static final long
i
PACKED_X_MASK
field_10976
BITS_X
field_177994_h
private static final long
j
PACKED_Y_MASK
field_10974
BITS_Y
field_177995_i
private static final long
k
PACKED_Z_MASK
field_10973
BITS_Z
field_177993_j
private static final int
l
Z_OFFSET
field_10983
BIT_SHIFT_Z
field_218292_j
private static final int
m
X_OFFSET
field_10981
BIT_SHIFT_X
field_218293_k

Constructor summary

ModifierConstructor
public (int arg0, int arg1, int arg2)
public (double arg0, double arg1, double arg2)
public (Vec3 pos)
public (Position pos)
public (Vec3i pos)

Method summary

Modifier and TypeMethod
public static long
a(long arg0, gc arg1)
offset(long arg0, Direction arg1)
method_10060(long arg0, class_2350 arg1)
offset(long value, Direction direction)
func_218289_a(long arg0, Direction arg1)
public static long
a(long arg0, int arg1, int arg2, int arg3)
offset(long arg0, int arg1, int arg2, int arg3)
method_10096(long arg0, int arg1, int arg2, int arg3)
add(long value, int x, int y, int z)
func_218291_a(long arg0, int arg1, int arg2, int arg3)
public static int
b(long arg0)
getX(long arg0)
method_10061(long arg0)
unpackLongX(long packedPos)
func_218290_b(long arg0)
public static int
c(long arg0)
getY(long arg0)
method_10071(long arg0)
unpackLongY(long packedPos)
func_218274_c(long arg0)
public static int
d(long arg0)
getZ(long arg0)
method_10083(long arg0)
unpackLongZ(long packedPos)
func_218282_d(long arg0)
public static BlockPos
e(long arg0)
of(long arg0)
method_10092(long arg0)
fromLong(long packedPos)
func_218283_e(long arg0)
fromLong(long arg0)
public long
a()
asLong()
method_10063()
asLong()
func_218275_a()
asLong()
public static long
a(int arg0, int arg1, int arg2)
asLong(int arg0, int arg1, int arg2)
method_10064(int arg0, int arg1, int arg2)
asLong(int x, int y, int z)
func_218276_a(int arg0, int arg1, int arg2)
public static long
f(long arg0)
getFlatIndex(long arg0)
method_10091(long arg0)
removeChunkSectionLocalY(long y)
func_218288_f(long arg0)
public BlockPos
a(double arg0, double arg1, double arg2)
offset(double arg0, double arg1, double arg2)
method_10080(double arg0, double arg1, double arg2)
add(double x, double y, double z)
func_177963_a(double arg0, double arg1, double arg2)
public BlockPos
b(int arg0, int arg1, int arg2)
offset(int arg0, int arg1, int arg2)
method_10069(int arg0, int arg1, int arg2)
add(int x, int y, int z)
func_177982_a(int arg0, int arg1, int arg2)
public BlockPos
a(gr arg0)
offset(Vec3i arg0)
method_10081(class_2382 arg0)
add(Vec3i pos)
func_177971_a(Vector3i arg0)
public BlockPos
b(gr arg0)
subtract(Vec3i arg0)
method_10059(class_2382 arg0)
subtract(Vec3i pos)
func_177973_b(Vector3i arg0)
public BlockPos
b()
above()
method_10084()
up()
func_177984_a()
up()
public BlockPos
b(int arg0)
above(int arg0)
method_10086(int arg0)
up(int distance)
func_177981_b(int arg0)
up(int arg0)
public BlockPos
c()
below()
method_10074()
down()
func_177977_b()
down()
public BlockPos
c(int arg0)
below(int arg0)
method_10087(int arg0)
down(int arg0)
func_177979_c(int arg0)
down(int arg0)
public BlockPos
d()
north()
method_10095()
north()
func_177978_c()
north()
public BlockPos
d(int arg0)
north(int arg0)
method_10076(int arg0)
north(int distance)
func_177964_d(int arg0)
north(int arg0)
public BlockPos
e()
south()
method_10072()
south()
func_177968_d()
south()
public BlockPos
e(int arg0)
south(int arg0)
method_10077(int arg0)
south(int distance)
func_177970_e(int arg0)
south(int arg0)
public BlockPos
f()
west()
method_10067()
west()
func_177976_e()
west()
public BlockPos
f(int arg0)
west(int arg0)
method_10088(int arg0)
west(int distance)
func_177985_f(int arg0)
west(int arg0)
public BlockPos
g()
east()
method_10078()
east()
func_177974_f()
east()
public BlockPos
g(int arg0)
east(int arg0)
method_10089(int arg0)
east(int distance)
func_177965_g(int arg0)
east(int arg0)
public BlockPos
a(gc arg0)
relative(Direction arg0)
method_10093(class_2350 arg0)
offset(Direction direction)
func_177972_a(Direction arg0)
shift(EnumDirection arg0)
public BlockPos
a(gc arg0, int arg1)
relative(Direction arg0, int arg1)
method_10079(class_2350 arg0, int arg1)
offset(Direction arg0, int arg1)
func_177967_a(Direction arg0, int arg1)
shift(EnumDirection arg0, int arg1)
public BlockPos
a(gc$a arg0, int arg1)
relative(Direction$Axis arg0, int arg1)
method_30513(class_2350$class_2351 arg0, int arg1)
offset(Direction$Axis axis, int distance)
func_241872_a(Direction$Axis arg0, int arg1)
public BlockPos
a(bzj arg0)
rotate(Rotation arg0)
method_10070(class_2470 arg0)
rotate(BlockRotation rotation)
func_190942_a(Rotation arg0)
public BlockPos
c(gr arg0)
cross(Vec3i arg0)
method_10075(class_2382 arg0)
crossProduct(Vec3i pos)
func_177955_d(Vector3i arg0)
public BlockPos
h()
immutable()
method_10062()
toImmutable()
func_185334_h()
immutableCopy()
public BlockPos$MutableBlockPos
i()
mutable()
method_25503()
mutableCopy()
func_239590_i_()
public static Iterable<BlockPos>
a(Random arg0, int arg1, int arg2, int arg3, int arg4, int arg5, int arg6, int arg7)
randomBetweenClosed(Random arg0, int arg1, int arg2, int arg3, int arg4, int arg5, int arg6, int arg7)
method_27156(Random arg0, int arg1, int arg2, int arg3, int arg4, int arg5, int arg6, int arg7)
iterateRandomly(Random random, int count, int minX, int minY, int minZ, int maxX, int maxY, int maxZ)
func_239585_a_(Random arg0, int arg1, int arg2, int arg3, int arg4, int arg5, int arg6, int arg7)
public static Iterable<BlockPos>
a(fx arg0, int arg1, int arg2, int arg3)
withinManhattan(BlockPos arg0, int arg1, int arg2, int arg3)
method_25996(class_2338 arg0, int arg1, int arg2, int arg3)
iterateOutwards(BlockPos center, int xRange, int yRange, int zRange)
func_239583_a_(BlockPos arg0, int arg1, int arg2, int arg3)
public static Optional<BlockPos>
a(fx arg0, int arg1, int arg2, Predicate<fx> arg3)
findClosestMatch(BlockPos arg0, int arg1, int arg2, Predicate<BlockPos> arg3)
method_25997(class_2338 arg0, int arg1, int arg2, Predicate<class_2338> arg3)
findClosest(BlockPos pos, int horizontalRange, int verticalRange, Predicate<BlockPos> condition)
func_239584_a_(BlockPos arg0, int arg1, int arg2, Predicate<BlockPos> arg3)
public static Stream<BlockPos>
b(fx arg0, int arg1, int arg2, int arg3)
withinManhattanStream(BlockPos arg0, int arg1, int arg2, int arg3)
method_25998(class_2338 arg0, int arg1, int arg2, int arg3)
streamOutwards(BlockPos center, int maxX, int maxY, int maxZ)
func_239588_b_(BlockPos arg0, int arg1, int arg2, int arg3)
public static Iterable<BlockPos>
a(fx arg0, fx arg1)
betweenClosed(BlockPos arg0, BlockPos arg1)
method_10097(class_2338 arg0, class_2338 arg1)
iterate(BlockPos start, BlockPos end)
func_218278_a(BlockPos arg0, BlockPos arg1)
public static Stream<BlockPos>
b(fx arg0, fx arg1)
betweenClosedStream(BlockPos arg0, BlockPos arg1)
method_20437(class_2338 arg0, class_2338 arg1)
stream(BlockPos start, BlockPos end)
func_218281_b(BlockPos arg0, BlockPos arg1)
public static Stream<BlockPos>
a(cqx arg0)
betweenClosedStream(BoundingBox arg0)
method_23627(class_3341 arg0)
stream(BlockBox box)
func_229383_a_(MutableBoundingBox arg0)
public static Stream<BlockPos>
a(dcf arg0)
betweenClosedStream(AABB arg0)
method_29715(class_238 arg0)
stream(Box box)
func_239581_a_(AxisAlignedBB arg0)
public static Stream<BlockPos>
a(int arg0, int arg1, int arg2, int arg3, int arg4, int arg5)
betweenClosedStream(int arg0, int arg1, int arg2, int arg3, int arg4, int arg5)
method_17962(int arg0, int arg1, int arg2, int arg3, int arg4, int arg5)
stream(int startX, int startY, int startZ, int endX, int endY, int endZ)
func_218287_a(int arg0, int arg1, int arg2, int arg3, int arg4, int arg5)
public static Iterable<BlockPos>
b(int arg0, int arg1, int arg2, int arg3, int arg4, int arg5)
betweenClosed(int arg0, int arg1, int arg2, int arg3, int arg4, int arg5)
method_10094(int arg0, int arg1, int arg2, int arg3, int arg4, int arg5)
iterate(int startX, int startY, int startZ, int endX, int endY, int endZ)
func_191531_b(int arg0, int arg1, int arg2, int arg3, int arg4, int arg5)
public static Iterable<BlockPos$MutableBlockPos>
a(fx arg0, int arg1, gc arg2, gc arg3)
spiralAround(BlockPos arg0, int arg1, Direction arg2, Direction arg3)
method_30512(class_2338 arg0, int arg1, class_2350 arg2, class_2350 arg3)
method_30512(BlockPos arg0, int arg1, Direction arg2, Direction arg3)
func_243514_a(BlockPos arg0, int arg1, Direction arg2, Direction arg3)