net.minecraft.core

public class BlockPos

extends Vec3i

gu
net.minecraft.core.BlockPos
net.minecraft.class_2338
net.minecraft.unmapped.C_hynzadkk
net.minecraft.util.math.BlockPos
net.minecraft.util.math.BlockPos
net.minecraft.src.C_4675_
net.minecraft.core.BlockPosition

Field summary

Modifier and TypeField
public static final com.mojang.serialization.Codec<BlockPos>
a
CODEC
field_25064
f_tuydkllc
CODEC
CODEC
f_121852_
private static final org.slf4j.Logger
d
LOGGER
field_18789
f_hsekmekl
LOGGER
LOGGER
f_121854_
public static final BlockPos
b
ZERO
field_10980
f_tziahdbe
ORIGIN
ORIGIN
f_121853_
private static final int
e
PACKED_X_LENGTH
field_10978
f_aoehwwsf
SIZE_BITS_X
SIZE_BITS_X
f_121855_
private static final int
h
PACKED_Z_LENGTH
field_10977
f_lxmqztxq
SIZE_BITS_Z
SIZE_BITS_Z
f_121856_
public static final int
c
PACKED_Y_LENGTH
field_10975
f_ktlgsitz
SIZE_BITS_Y
SIZE_BITS_Y
f_121857_
private static final long
i
PACKED_X_MASK
field_10976
f_bxvvupqt
BITS_X
BITS_X
f_121858_
private static final long
j
PACKED_Y_MASK
field_10974
f_kjunxshk
BITS_Y
BITS_Y
f_121859_
private static final long
k
PACKED_Z_MASK
field_10973
f_rkdfzepm
BITS_Z
BITS_Z
f_121860_
private static final int
l
Y_OFFSET
field_33083
f_uqzvztbx
field_33083
BIT_SHIFT_Y
f_175261_
private static final int
m
Z_OFFSET
field_10983
f_tudfxhtp
BIT_SHIFT_Z
BIT_SHIFT_Z
f_121861_
private static final int
n
X_OFFSET
field_10981
f_xfvuulqh
BIT_SHIFT_X
BIT_SHIFT_X
f_121862_

Constructor summary

ModifierConstructor
public (int p_121870_, int p_121871_, int arg2)
public (Vec3i pos)

Method summary

Modifier and TypeMethod
public static long
a(long arg0, ha 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)
m_121915_(long p_121916_, C_4687_ 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)
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)
m_121910_(long p_121911_, int p_121913_, int p_121914_, int arg3)
public static int
a(long arg0)
getX(long arg0)
method_10061(long arg0)
m_vyqvnkfq(long arg0)
unpackLongX(long packedPos)
unpackLongX(long packedPos)
m_121983_(long p_121984_)
public static int
b(long arg0)
getY(long arg0)
method_10071(long arg0)
m_elynlcyj(long arg0)
unpackLongY(long packedPos)
unpackLongY(long packedPos)
m_122008_(long p_122009_)
public static int
c(long arg0)
getZ(long arg0)
method_10083(long arg0)
m_ibctoofh(long arg0)
unpackLongZ(long packedPos)
unpackLongZ(long packedPos)
m_122015_(long p_122016_)
public static BlockPos
d(long arg0)
of(long arg0)
method_10092(long arg0)
m_bzuqniby(long arg0)
fromLong(long packedPos)
fromLong(long packedPos)
m_122022_(long p_122023_)
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)
m_274561_(double p_275310_, double p_275737_, double arg2)
public static BlockPos
a(ho arg0)
containing(Position arg0)
method_49638(class_2374 arg0)
m_raunemtc(C_ogbhoqwb arg0)
ofFloored(Position pos)
fromPosition(Position position)
m_274446_(C_4703_ p_275443_)
public long
a()
asLong()
method_10063()
m_kijgmyso()
asLong()
asLong()
m_121878_()
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)
m_121882_(int p_121883_, int p_121884_, int p_121885_)
public static long
e(long arg0)
getFlatIndex(long arg0)
method_10091(long arg0)
m_cprltrsg(long arg0)
removeChunkSectionLocalY(long y)
removeChunkSectionLocalY(long y)
m_122027_(long p_122028_)
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)
m_7918_(int p_121974_, int p_121975_, int arg2)
public Vec3
b()
getCenter()
method_46558()
m_lsxjsqgq()
toCenterPos()
ofCenter()
m_252807_()
public BlockPos
a(hz arg0)
offset(Vec3i arg0)
method_10081(class_2382 arg0)
m_fzzimhyd(C_ceivtqhh arg0)
add(Vec3i arg0)
add(Vec3i arg0)
m_121955_(C_4713_ arg0)
public BlockPos
b(hz arg0)
subtract(Vec3i arg0)
method_10059(class_2382 arg0)
m_lvvqtypp(C_ceivtqhh arg0)
subtract(Vec3i arg0)
subtract(Vec3i arg0)
m_121996_(C_4713_ arg0)
public BlockPos
a(int arg0)
multiply(int arg0)
method_35830(int arg0)
m_ifesfxmw(int arg0)
multiply(int arg0)
multiply(int arg0)
m_142393_(int arg0)
public BlockPos
c()
above()
method_10084()
m_iscpckqf()
up()
up()
m_7494_()
public BlockPos
b(int arg0)
above(int arg0)
method_10086(int arg0)
m_qqrmdwts(int arg0)
up(int distance)
up(int arg0)
m_6630_(int arg0)
public BlockPos
d()
below()
method_10074()
m_xssxgvff()
down()
down()
m_7495_()
public BlockPos
c(int arg0)
below(int arg0)
method_10087(int arg0)
m_ydrkqgel(int arg0)
down(int arg0)
down(int arg0)
m_6625_(int arg0)
public BlockPos
e()
north()
method_10095()
m_fekixumx()
north()
north()
m_122012_()
public BlockPos
d(int arg0)
north(int arg0)
method_10076(int arg0)
m_pymcjqbq(int arg0)
north(int distance)
north(int arg0)
m_122013_(int arg0)
public BlockPos
f()
south()
method_10072()
m_ynferynv()
south()
south()
m_122019_()
public BlockPos
e(int arg0)
south(int arg0)
method_10077(int arg0)
m_vtdlizfn(int arg0)
south(int distance)
south(int arg0)
m_122020_(int arg0)
public BlockPos
g()
west()
method_10067()
m_imqsaqnz()
west()
west()
m_122024_()
public BlockPos
f(int arg0)
west(int arg0)
method_10088(int arg0)
m_deankwbp(int arg0)
west(int distance)
west(int arg0)
m_122025_(int arg0)
public BlockPos
h()
east()
method_10078()
m_ibzagvsa()
east()
east()
m_122029_()
public BlockPos
g(int arg0)
east(int arg0)
method_10089(int arg0)
m_eemhxpnc(int arg0)
east(int distance)
east(int arg0)
m_122030_(int arg0)
public BlockPos
a(ha arg0)
relative(Direction arg0)
method_10093(class_2350 arg0)
m_lxfryztv(C_xpuuihxf arg0)
offset(Direction arg0)
offset(Direction arg0)
m_121945_(C_4687_ arg0)
public BlockPos
a(ha 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 arg0, int arg1)
m_5484_(C_4687_ p_121949_, int arg1)
public BlockPos
a(ha$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)
m_5487_(C_4687_$C_4689_ p_121944_, int arg1)
public BlockPos
a(cvz arg0)
rotate(Rotation arg0)
method_10070(class_2470 arg0)
m_rragasjv(C_mboglirk arg0)
rotate(BlockRotation rotation)
rotate(BlockRotation rotation)
m_7954_(C_1886_ arg0)
public BlockPos
c(hz arg0)
cross(Vec3i arg0)
method_10075(class_2382 arg0)
m_hkslycew(C_ceivtqhh arg0)
crossProduct(Vec3i pos)
crossProduct(Vec3i arg0)
m_7724_(C_4713_ arg0)
public BlockPos
h(int arg0)
atY(int arg0)
method_33096(int arg0)
m_qqrmblnw(int arg0)
withY(int y)
withY(int y)
m_175288_(int arg0)
public BlockPos
i()
immutable()
method_10062()
m_mbxphwhv()
toImmutable()
toImmutable()
m_7949_()
public BlockPos$MutableBlockPos
j()
mutable()
method_25503()
m_rqxosvyc()
mutableCopy()
mutableCopy()
m_122032_()
public static Iterable<BlockPos>
a(apf arg0, int arg1, gu 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)
m_235650_(C_212974_ p_235651_, int p_235652_, C_4675_ p_235653_, int p_235654_)
public static Stream<BlockPos>
a(gu arg0)
squareOutSouthEast(BlockPos arg0)
method_51686(class_2338 arg0)
m_qnstdsck(C_hynzadkk arg0)
streamSouthEastSquare(BlockPos pos)
streamSouthEastSquare(BlockPos pos)
m_284476_(C_4675_ p_284978_)
public static Iterable<BlockPos>
a(apf 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)
m_235641_(C_212974_ p_235642_, int p_235643_, int p_235644_, int p_235645_, int p_235646_, int p_235647_, int p_235648_, int p_235649_)
public static Iterable<BlockPos>
a(gu 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)
m_121925_(C_4675_ p_121926_, int p_121927_, int p_121928_, int p_121929_)
public static Optional<BlockPos>
a(gu arg0, int arg1, int arg2, Predicate<gu> 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)
m_121930_(C_4675_ p_121931_, int p_121932_, int p_121933_, Predicate<C_4675_> p_121934_)
public static Stream<BlockPos>
b(gu 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)
m_121985_(C_4675_ p_121986_, int p_121987_, int p_121988_, int p_121989_)
public static Iterable<BlockPos>
a(gu arg0, gu 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)
m_121940_(C_4675_ p_121941_, C_4675_ p_121942_)
public static Stream<BlockPos>
b(gu arg0, gu 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)
m_121990_(C_4675_ p_121991_, C_4675_ p_121992_)
public static Stream<BlockPos>
a(drs arg0)
betweenClosedStream(BoundingBox arg0)
method_23627(class_3341 arg0)
m_amjyhiav(C_hmqypqzz arg0)
stream(BlockBox box)
stream(BlockBox box)
m_121919_(C_2478_ p_121920_)
public static Stream<BlockPos>
a(eed arg0)
betweenClosedStream(AABB arg0)
method_29715(class_238 arg0)
m_uxberzqa(C_hbcjzgoe arg0)
stream(Box box)
stream(Box box)
m_121921_(C_3040_ p_121922_)
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)
m_121886_(int p_121887_, int p_121888_, int p_121889_, int p_121890_, int p_121891_, int p_121892_)
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)
m_121976_(int p_121977_, int p_121978_, int p_121979_, int p_121980_, int p_121981_, int p_121982_)
public static Iterable<BlockPos$MutableBlockPos>
a(gu arg0, int arg1, ha arg2, ha 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)
m_121935_(C_4675_ p_121936_, int p_121937_, C_4687_ p_121938_, C_4687_ p_121939_)
public static int
a(gu arg0, int arg1, int arg2, BiConsumer<gu, Consumer<gu>> arg3, Predicate<gu> arg4)
breadthFirstTraversal(BlockPos arg0, int arg1, int arg2, BiConsumer<BlockPos, Consumer<BlockPos>> arg3, Predicate<BlockPos> arg4)
method_49925(class_2338 arg0, int arg1, int arg2, BiConsumer<class_2338, Consumer<class_2338>> arg3, Predicate<class_2338> arg4)
m_elaibfvn(C_hynzadkk arg0, int arg1, int arg2, BiConsumer<C_hynzadkk, Consumer<C_hynzadkk>> arg3, Predicate<C_hynzadkk> arg4)
iterateRecursively(BlockPos pos, int maxDepth, int maxIterations, BiConsumer<BlockPos, Consumer<BlockPos>> nextQueuer, Predicate<BlockPos> callback)
breadthFirstTraversal(BlockPos pos, int arg1, int arg2, BiConsumer<BlockPos, Consumer<BlockPos>> consumer, Predicate<BlockPos> predicate)
m_276833_(C_4675_ p_278078_, int p_277385_, int p_277666_, BiConsumer<C_4675_, Consumer<C_4675_>> p_277755_, Predicate<C_4675_> p_278094_)