net.minecraft.core

public class BlockPos

extends Vec3i

gu
net.minecraft.core.BlockPos
net.minecraft.class_2338
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
CODEC
f_121852_
private static final org.slf4j.Logger
d
LOGGER
field_18789
LOGGER
f_121854_
public static final BlockPos
b
ZERO
field_10980
ORIGIN
f_121853_
private static final int
e
PACKED_X_LENGTH
field_10978
SIZE_BITS_X
f_121855_
private static final int
h
PACKED_Z_LENGTH
field_10977
SIZE_BITS_Z
f_121856_
public static final int
c
PACKED_Y_LENGTH
field_10975
SIZE_BITS_Y
f_121857_
private static final long
i
PACKED_X_MASK
field_10976
BITS_X
f_121858_
private static final long
j
PACKED_Y_MASK
field_10974
BITS_Y
f_121859_
private static final long
k
PACKED_Z_MASK
field_10973
BITS_Z
f_121860_
private static final int
l
Y_OFFSET
field_33083
field_33083
f_175261_
private static final int
m
Z_OFFSET
field_10983
BIT_SHIFT_Z
f_121861_
private static final int
n
X_OFFSET
field_10981
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)
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)
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)
unpackLongX(long packedPos)
m_121983_(long p_121984_)
public static int
b(long arg0)
getY(long arg0)
method_10071(long arg0)
unpackLongY(long packedPos)
m_122008_(long p_122009_)
public static int
c(long arg0)
getZ(long arg0)
method_10083(long arg0)
unpackLongZ(long packedPos)
m_122015_(long p_122016_)
public static BlockPos
d(long arg0)
of(long arg0)
method_10092(long arg0)
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)
ofFloored(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)
ofFloored(Position pos)
m_274446_(C_4703_ p_275443_)
public long
a()
asLong()
method_10063()
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)
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)
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)
add(int arg0, int arg1, int arg2)
m_7918_(int p_121974_, int p_121975_, int arg2)
public Vec3
b()
getCenter()
method_46558()
toCenterPos()
m_252807_()
public BlockPos
a(hz arg0)
offset(Vec3i arg0)
method_10081(class_2382 arg0)
add(Vec3i arg0)
m_121955_(C_4713_ arg0)
public BlockPos
b(hz arg0)
subtract(Vec3i arg0)
method_10059(class_2382 arg0)
subtract(Vec3i arg0)
m_121996_(C_4713_ arg0)
public BlockPos
a(int arg0)
multiply(int arg0)
method_35830(int arg0)
multiply(int arg0)
m_142393_(int arg0)
public BlockPos
c()
above()
method_10084()
up()
m_7494_()
public BlockPos
b(int arg0)
above(int arg0)
method_10086(int arg0)
up(int distance)
m_6630_(int arg0)
public BlockPos
d()
below()
method_10074()
down()
m_7495_()
public BlockPos
c(int arg0)
below(int arg0)
method_10087(int arg0)
down(int arg0)
m_6625_(int arg0)
public BlockPos
e()
north()
method_10095()
north()
m_122012_()
public BlockPos
d(int arg0)
north(int arg0)
method_10076(int arg0)
north(int distance)
m_122013_(int arg0)
public BlockPos
f()
south()
method_10072()
south()
m_122019_()
public BlockPos
e(int arg0)
south(int arg0)
method_10077(int arg0)
south(int distance)
m_122020_(int arg0)
public BlockPos
g()
west()
method_10067()
west()
m_122024_()
public BlockPos
f(int arg0)
west(int arg0)
method_10088(int arg0)
west(int distance)
m_122025_(int arg0)
public BlockPos
h()
east()
method_10078()
east()
m_122029_()
public BlockPos
g(int arg0)
east(int arg0)
method_10089(int arg0)
east(int distance)
m_122030_(int arg0)
public BlockPos
a(ha arg0)
relative(Direction arg0)
method_10093(class_2350 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)
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)
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)
rotate(BlockRotation rotation)
m_7954_(C_1886_ arg0)
public BlockPos
c(hz arg0)
cross(Vec3i arg0)
method_10075(class_2382 arg0)
crossProduct(Vec3i pos)
m_7724_(C_4713_ arg0)
public BlockPos
h(int arg0)
atY(int arg0)
method_33096(int arg0)
withY(int y)
m_175288_(int arg0)
public BlockPos
i()
immutable()
method_10062()
toImmutable()
m_7949_()
public BlockPos$MutableBlockPos
j()
mutable()
method_25503()
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)
iterateRandomly(Random 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)
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)
iterateRandomly(Random 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)
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)
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)
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)
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)
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)
stream(BlockBox box)
m_121919_(C_2478_ p_121920_)
public static Stream<BlockPos>
a(eed arg0)
betweenClosedStream(AABB arg0)
method_29715(class_238 arg0)
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)
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)
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)
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)
iterateRecursively(BlockPos pos, int maxDepth, int maxIterations, BiConsumer<BlockPos, Consumer<BlockPos>> nextQueuer, Predicate<BlockPos> callback)
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_)