net.minecraft.core

public class BlockPos

extends Vec3i

iu
net.minecraft.core.BlockPos
net.minecraft.class_2338
net.minecraft.unmapped.C_hynzadkk
net.minecraft.util.math.BlockPos
net.minecraft.util.math.BlockPos

Field summary

Modifier and TypeField
public static final com.mojang.serialization.Codec<BlockPos>
a
CODEC
field_25064
f_tuydkllc
CODEC
CODEC
public static final StreamCodec<io.netty.buffer.ByteBuf, BlockPos>
b
STREAM_CODEC
field_48404
f_mcthbtbh
PACKET_CODEC
PACKET_CODEC
private static final org.slf4j.Logger
j
LOGGER
field_18789
f_hsekmekl
LOGGER
LOGGER
public static final BlockPos
c
ZERO
field_10980
f_tziahdbe
ORIGIN
ORIGIN
public static final int
d
PACKED_HORIZONTAL_LENGTH
field_54978
f_tkvjsduy
SIZE_BITS_XZ
public static final int
e
PACKED_Y_LENGTH
field_10975
f_ktlgsitz
SIZE_BITS_Y
SIZE_BITS_Y
private static final long
k
PACKED_X_MASK
field_10976
f_bxvvupqt
BITS_X
BITS_X
private static final long
l
PACKED_Y_MASK
field_10974
f_kjunxshk
BITS_Y
BITS_Y
private static final long
m
PACKED_Z_MASK
field_10973
f_rkdfzepm
BITS_Z
BITS_Z
private static final int
n
Y_OFFSET
field_33083
f_uqzvztbx
field_33083
BIT_SHIFT_Y
private static final int
o
Z_OFFSET
field_10983
f_tudfxhtp
BIT_SHIFT_Z
BIT_SHIFT_Z
private static final int
p
X_OFFSET
field_10981
f_xfvuulqh
BIT_SHIFT_X
BIT_SHIFT_X
public static final int
f
MAX_HORIZONTAL_COORDINATE
field_54979
f_lmtvgjwi
MAX_XZ

Constructor summary

ModifierConstructor
public (int arg0, int arg1, int arg2)
public (Vec3i pos)

Method summary

Modifier and TypeMethod
public static long
a(long arg0, ja arg1)
offset(long arg0, Direction arg1)
method_10060(long arg0, class_2350 arg1)
m_qsregrem(long arg0, C_xpuuihxf arg1)
offset(long value, Direction direction)
offset(long value, Direction direction)
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)
m_kxtxdkke(long arg0, int arg1, int arg2, int arg3)
add(long value, int x, int y, int z)
add(long value, int x, int y, int z)
public static int
a(long arg0)
getX(long arg0)
method_10061(long arg0)
m_vyqvnkfq(long arg0)
unpackLongX(long packedPos)
unpackLongX(long packedPos)
public static int
b(long arg0)
getY(long arg0)
method_10071(long arg0)
m_elynlcyj(long arg0)
unpackLongY(long packedPos)
unpackLongY(long packedPos)
public static int
c(long arg0)
getZ(long arg0)
method_10083(long arg0)
m_ibctoofh(long arg0)
unpackLongZ(long packedPos)
unpackLongZ(long packedPos)
public static BlockPos
d(long arg0)
of(long arg0)
method_10092(long arg0)
m_bzuqniby(long arg0)
fromLong(long packedPos)
fromLong(long packedPos)
public static BlockPos
a(double arg0, double arg1, double arg2)
containing(double arg0, double arg1, double arg2)
method_49637(double arg0, double arg1, double arg2)
m_uyfzkufr(double arg0, double arg1, double arg2)
ofFloored(double x, double y, double z)
create(double x, double y, double z)
public static BlockPos
a(jo arg0)
containing(Position arg0)
method_49638(class_2374 arg0)
m_raunemtc(C_ogbhoqwb arg0)
ofFloored(Position pos)
fromPosition(Position position)
public static BlockPos
a(iu arg0, iu arg1)
min(BlockPos arg0, BlockPos arg1)
method_58249(class_2338 arg0, class_2338 arg1)
m_dtustqhj(C_hynzadkk arg0, C_hynzadkk arg1)
min(BlockPos a, BlockPos b)
public static BlockPos
b(iu arg0, iu arg1)
max(BlockPos arg0, BlockPos arg1)
method_58250(class_2338 arg0, class_2338 arg1)
m_kuzfrxxn(C_hynzadkk arg0, C_hynzadkk arg1)
max(BlockPos a, BlockPos b)
public long
a()
asLong()
method_10063()
m_kijgmyso()
asLong()
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)
m_niydddbn(int arg0, int arg1, int arg2)
asLong(int x, int y, int z)
asLong(int x, int y, int z)
public static long
e(long arg0)
getFlatIndex(long arg0)
method_10091(long arg0)
m_cprltrsg(long arg0)
removeChunkSectionLocalY(long y)
removeChunkSectionLocalY(long y)
public BlockPos
b(int arg0, int arg1, int arg2)
offset(int arg0, int arg1, int arg2)
method_10069(int arg0, int arg1, int arg2)
m_helckfyc(int arg0, int arg1, int arg2)
add(int arg0, int arg1, int arg2)
add(int arg0, int arg1, int arg2)
public Vec3
b()
getCenter()
method_46558()
m_lsxjsqgq()
toCenterPos()
ofCenter()
public Vec3
c()
getBottomCenter()
method_61082()
m_rtputfdg()
toBottomCenterPos()
ofBottomCenter()
public BlockPos
a(jz arg0)
offset(Vec3i arg0)
method_10081(class_2382 arg0)
m_fzzimhyd(C_ceivtqhh arg0)
add(Vec3i arg0)
add(Vec3i arg0)
public BlockPos
b(jz arg0)
subtract(Vec3i arg0)
method_10059(class_2382 arg0)
m_lvvqtypp(C_ceivtqhh arg0)
subtract(Vec3i arg0)
subtract(Vec3i arg0)
public BlockPos
a(int arg0)
multiply(int arg0)
method_35830(int arg0)
m_ifesfxmw(int arg0)
multiply(int arg0)
multiply(int arg0)
public BlockPos
d()
above()
method_10084()
m_iscpckqf()
up()
up()
public BlockPos
b(int arg0)
above(int arg0)
method_10086(int arg0)
m_qqrmdwts(int arg0)
up(int distance)
up(int arg0)
public BlockPos
e()
below()
method_10074()
m_xssxgvff()
down()
down()
public BlockPos
c(int arg0)
below(int arg0)
method_10087(int arg0)
m_ydrkqgel(int arg0)
down(int arg0)
down(int arg0)
public BlockPos
f()
north()
method_10095()
m_fekixumx()
north()
north()
public BlockPos
d(int arg0)
north(int arg0)
method_10076(int arg0)
m_pymcjqbq(int arg0)
north(int distance)
north(int arg0)
public BlockPos
g()
south()
method_10072()
m_ynferynv()
south()
south()
public BlockPos
e(int arg0)
south(int arg0)
method_10077(int arg0)
m_vtdlizfn(int arg0)
south(int distance)
south(int arg0)
public BlockPos
h()
west()
method_10067()
m_imqsaqnz()
west()
west()
public BlockPos
f(int arg0)
west(int arg0)
method_10088(int arg0)
m_deankwbp(int arg0)
west(int distance)
west(int arg0)
public BlockPos
i()
east()
method_10078()
m_ibzagvsa()
east()
east()
public BlockPos
g(int arg0)
east(int arg0)
method_10089(int arg0)
m_eemhxpnc(int arg0)
east(int distance)
east(int arg0)
public BlockPos
a(ja arg0)
relative(Direction arg0)
method_10093(class_2350 arg0)
m_lxfryztv(C_xpuuihxf arg0)
offset(Direction arg0)
offset(Direction direction)
public BlockPos
a(ja arg0, int arg1)
relative(Direction arg0, int arg1)
method_10079(class_2350 arg0, int arg1)
m_fquswwec(C_xpuuihxf arg0, int arg1)
offset(Direction arg0, int arg1)
offset(Direction direction, int arg1)
public BlockPos
a(ja$a arg0, int arg1)
relative(Direction$Axis arg0, int arg1)
method_30513(class_2350$class_2351 arg0, int arg1)
m_rcbownun(C_xpuuihxf$C_rmpfouoz arg0, int arg1)
offset(Direction$Axis arg0, int arg1)
offset(Direction$Axis arg0, int arg1)
public BlockPos
a(dsz arg0)
rotate(Rotation arg0)
method_10070(class_2470 arg0)
m_rragasjv(C_mboglirk arg0)
rotate(BlockRotation rotation)
rotate(BlockRotation rotation)
public BlockPos
c(jz arg0)
cross(Vec3i arg0)
method_10075(class_2382 arg0)
m_hkslycew(C_ceivtqhh arg0)
crossProduct(Vec3i pos)
crossProduct(Vec3i arg0)
public BlockPos
h(int arg0)
atY(int arg0)
method_33096(int arg0)
m_qqrmblnw(int arg0)
withY(int y)
withY(int y)
public BlockPos
j()
immutable()
method_10062()
m_mbxphwhv()
toImmutable()
toImmutable()
public BlockPos$MutableBlockPos
k()
mutable()
method_25503()
m_rqxosvyc()
mutableCopy()
mutableCopy()
public Vec3
a(feq arg0)
clampLocationWithin(Vec3 arg0)
method_60913(class_243 arg0)
m_dnbavdft(C_vgpupfxx arg0)
clampToWithin(Vec3d pos)
public static Iterable<BlockPos>
a(azv arg0, int arg1, iu arg2, int arg3)
randomInCube(RandomSource arg0, int arg1, BlockPos arg2, int arg3)
method_34848(class_5819 arg0, int arg1, class_2338 arg2, int arg3)
m_kdyfclny(C_rlomrsco arg0, int arg1, C_hynzadkk arg2, int arg3)
iterateRandomly(Random random, int count, BlockPos around, int range)
iterateRandomly(RandomGenerator random, int count, BlockPos around, int range)
public static Stream<BlockPos>
a(iu arg0)
squareOutSouthEast(BlockPos arg0)
method_51686(class_2338 arg0)
m_qnstdsck(C_hynzadkk arg0)
streamSouthEastSquare(BlockPos pos)
streamSouthEastSquare(BlockPos pos)
public static Iterable<BlockPos>
a(azv arg0, int arg1, int arg2, int arg3, int arg4, int arg5, int arg6, int arg7)
randomBetweenClosed(RandomSource arg0, int arg1, int arg2, int arg3, int arg4, int arg5, int arg6, int arg7)
method_27156(class_5819 arg0, int arg1, int arg2, int arg3, int arg4, int arg5, int arg6, int arg7)
m_dvruotvh(C_rlomrsco 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)
iterateRandomly(RandomGenerator random, int count, int minX, int minY, int minZ, int maxX, int maxY, int maxZ)
public static Iterable<BlockPos>
a(iu 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)
m_qwyfxequ(C_hynzadkk arg0, int arg1, int arg2, int arg3)
iterateOutwards(BlockPos center, int rangeX, int rangeY, int rangeZ)
iterateOutwards(BlockPos center, int rangeX, int rangeY, int rangeZ)
public static Optional<BlockPos>
a(iu arg0, int arg1, int arg2, Predicate<iu> arg3)
findClosestMatch(BlockPos arg0, int arg1, int arg2, Predicate<BlockPos> arg3)
method_25997(class_2338 arg0, int arg1, int arg2, Predicate<class_2338> arg3)
m_yepfwcyc(C_hynzadkk arg0, int arg1, int arg2, Predicate<C_hynzadkk> arg3)
findClosest(BlockPos pos, int horizontalRange, int verticalRange, Predicate<BlockPos> condition)
findClosest(BlockPos pos, int horizontalRange, int verticalRange, Predicate<BlockPos> condition)
public static Stream<BlockPos>
b(iu 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)
m_jscknakh(C_hynzadkk arg0, int arg1, int arg2, int arg3)
streamOutwards(BlockPos center, int maxX, int maxY, int maxZ)
streamOutwards(BlockPos center, int maxX, int maxY, int maxZ)
public static Iterable<BlockPos>
a(fel arg0)
betweenClosed(AABB arg0)
method_62671(class_238 arg0)
m_fkelicrp(C_hbcjzgoe arg0)
iterate(Box box)
iterate(Box box)
public static Iterable<BlockPos>
c(iu arg0, iu arg1)
betweenClosed(BlockPos arg0, BlockPos arg1)
method_10097(class_2338 arg0, class_2338 arg1)
m_ofkvaftr(C_hynzadkk arg0, C_hynzadkk arg1)
iterate(BlockPos start, BlockPos end)
iterate(BlockPos start, BlockPos end)
public static Stream<BlockPos>
d(iu arg0, iu arg1)
betweenClosedStream(BlockPos arg0, BlockPos arg1)
method_20437(class_2338 arg0, class_2338 arg1)
m_wjwhgqmy(C_hynzadkk arg0, C_hynzadkk arg1)
stream(BlockPos start, BlockPos end)
stream(BlockPos start, BlockPos end)
public static Stream<BlockPos>
a(eqt arg0)
betweenClosedStream(BoundingBox arg0)
method_23627(class_3341 arg0)
m_amjyhiav(C_hmqypqzz arg0)
stream(BlockBox box)
stream(BlockBox box)
public static Stream<BlockPos>
b(fel arg0)
betweenClosedStream(AABB arg0)
method_29715(class_238 arg0)
m_uxberzqa(C_hbcjzgoe arg0)
stream(Box box)
stream(Box box)
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)
m_mvoqirpg(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)
stream(int startX, int startY, int startZ, int endX, int endY, int endZ)
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)
m_vhemcawy(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)
iterate(int startX, int startY, int startZ, int endX, int endY, int endZ)
public static Iterable<BlockPos$MutableBlockPos>
a(iu arg0, int arg1, ja arg2, ja arg3)
spiralAround(BlockPos arg0, int arg1, Direction arg2, Direction arg3)
method_30512(class_2338 arg0, int arg1, class_2350 arg2, class_2350 arg3)
m_ocxffvqb(C_hynzadkk arg0, int arg1, C_xpuuihxf arg2, C_xpuuihxf arg3)
iterateInSquare(BlockPos center, int radius, Direction firstDirection, Direction secondDirection)
iterateInSquare(BlockPos center, int radius, Direction firstDirection, Direction secondDirection)
public static int
a(iu arg0, int arg1, int arg2, BiConsumer<iu, Consumer<iu>> arg3, Function<iu, iu$b> arg4)
breadthFirstTraversal(BlockPos arg0, int arg1, int arg2, BiConsumer<BlockPos, Consumer<BlockPos>> arg3, Function<BlockPos, BlockPos$TraversalNodeStatus> arg4)
method_49925(class_2338 arg0, int arg1, int arg2, BiConsumer<class_2338, Consumer<class_2338>> arg3, Function<class_2338, class_2338$class_10384> arg4)
m_elaibfvn(C_hynzadkk arg0, int arg1, int arg2, BiConsumer<C_hynzadkk, Consumer<C_hynzadkk>> arg3, Function<C_hynzadkk, C_hynzadkk$C_bsemxekq> arg4)
iterateRecursively(BlockPos pos, int maxDepth, int maxIterations, BiConsumer<BlockPos, Consumer<BlockPos>> nextQueuer, Function<BlockPos, BlockPos$IterationState> callback)
breadthFirstTraversal(BlockPos pos, int maxDepth, int maxIterations, BiConsumer<BlockPos, Consumer<BlockPos>> consumer, Function<BlockPos, BlockPos$C_bsemxekq> arg4)