net.minecraft.core

public class BlockPos

extends Vec3i

jh
net.minecraft.core.BlockPos
net.minecraft.class_2338
net.minecraft.util.math.BlockPos
net.minecraft.core.BlockPosition

Field summary

Modifier and TypeField
public static final com.mojang.serialization.Codec<BlockPos>
a
CODEC
field_25064
CODEC
public static final StreamCodec<io.netty.buffer.ByteBuf, BlockPos>
b
STREAM_CODEC
field_48404
PACKET_CODEC
private static final org.slf4j.Logger
i
LOGGER
field_18789
LOGGER
public static final BlockPos
c
ZERO
field_10980
ORIGIN
public static final int
d
PACKED_HORIZONTAL_LENGTH
field_54978
SIZE_BITS_XZ
public static final int
e
PACKED_Y_LENGTH
field_10975
SIZE_BITS_Y
private static final long
j
PACKED_X_MASK
field_10976
BITS_X
private static final long
k
PACKED_Y_MASK
field_10974
BITS_Y
private static final long
l
PACKED_Z_MASK
field_10973
BITS_Z
private static final int
m
Y_OFFSET
field_33083
field_33083
private static final int
n
Z_OFFSET
field_10983
BIT_SHIFT_Z
private static final int
o
X_OFFSET
field_10981
BIT_SHIFT_X
public static final int
f
MAX_HORIZONTAL_COORDINATE
field_54979
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, jm arg1)
offset(long arg0, Direction arg1)
method_10060(long arg0, class_2350 arg1)
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)
add(long value, int x, int y, int z)
public static int
a(long arg0)
getX(long arg0)
method_10061(long arg0)
unpackLongX(long packedPos)
public static int
b(long arg0)
getY(long arg0)
method_10071(long arg0)
unpackLongY(long packedPos)
public static int
c(long arg0)
getZ(long arg0)
method_10083(long arg0)
unpackLongZ(long packedPos)
public static BlockPos
d(long arg0)
of(long arg0)
method_10092(long arg0)
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)
ofFloored(double x, double y, double z)
public static BlockPos
a(ka arg0)
containing(Position arg0)
method_49638(class_2374 arg0)
ofFloored(Position pos)
public static BlockPos
a(jh arg0, jh arg1)
min(BlockPos arg0, BlockPos arg1)
method_58249(class_2338 arg0, class_2338 arg1)
min(BlockPos a, BlockPos b)
public static BlockPos
b(jh arg0, jh arg1)
max(BlockPos arg0, BlockPos arg1)
method_58250(class_2338 arg0, class_2338 arg1)
max(BlockPos a, BlockPos b)
public long
a()
asLong()
method_10063()
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)
public static long
e(long arg0)
getFlatIndex(long arg0)
method_10091(long arg0)
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)
add(int arg0, int arg1, int arg2)
public Vec3
b()
getCenter()
method_46558()
toCenterPos()
public Vec3
c()
getBottomCenter()
method_61082()
toBottomCenterPos()
public BlockPos
a(kl arg0)
offset(Vec3i arg0)
method_10081(class_2382 arg0)
add(Vec3i arg0)
public BlockPos
b(kl arg0)
subtract(Vec3i arg0)
method_10059(class_2382 arg0)
subtract(Vec3i arg0)
public BlockPos
a(int arg0)
multiply(int arg0)
method_35830(int arg0)
multiply(int arg0)
public BlockPos
d()
above()
method_10084()
up()
public BlockPos
b(int arg0)
above(int arg0)
method_10086(int arg0)
up(int distance)
public BlockPos
e()
below()
method_10074()
down()
public BlockPos
c(int arg0)
below(int arg0)
method_10087(int arg0)
down(int arg0)
public BlockPos
f()
north()
method_10095()
north()
public BlockPos
d(int arg0)
north(int arg0)
method_10076(int arg0)
north(int distance)
public BlockPos
g()
south()
method_10072()
south()
public BlockPos
e(int arg0)
south(int arg0)
method_10077(int arg0)
south(int distance)
public BlockPos
h()
west()
method_10067()
west()
public BlockPos
f(int arg0)
west(int arg0)
method_10088(int arg0)
west(int distance)
public BlockPos
i()
east()
method_10078()
east()
public BlockPos
g(int arg0)
east(int arg0)
method_10089(int arg0)
east(int distance)
public BlockPos
a(jm arg0)
relative(Direction arg0)
method_10093(class_2350 arg0)
offset(Direction arg0)
public BlockPos
a(jm arg0, int arg1)
relative(Direction arg0, int arg1)
method_10079(class_2350 arg0, int arg1)
offset(Direction arg0, int arg1)
public BlockPos
a(jm$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)
public BlockPos
a(drc arg0)
rotate(Rotation arg0)
method_10070(class_2470 arg0)
rotate(BlockRotation rotation)
public BlockPos
c(kl arg0)
cross(Vec3i arg0)
method_10075(class_2382 arg0)
crossProduct(Vec3i pos)
public BlockPos
h(int arg0)
atY(int arg0)
method_33096(int arg0)
withY(int y)
public BlockPos
j()
immutable()
method_10062()
toImmutable()
public BlockPos$MutableBlockPos
k()
mutable()
method_25503()
mutableCopy()
public Vec3
a(fby arg0)
clampLocationWithin(Vec3 arg0)
method_60913(class_243 arg0)
clampToWithin(Vec3d pos)
public static Iterable<BlockPos>
a(bam arg0, int arg1, jh 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)
public static Stream<BlockPos>
a(jh arg0)
squareOutSouthEast(BlockPos arg0)
method_51686(class_2338 arg0)
streamSouthEastSquare(BlockPos pos)
public static Iterable<BlockPos>
a(bam 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)
public static Iterable<BlockPos>
a(jh 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)
public static Optional<BlockPos>
a(jh arg0, int arg1, int arg2, Predicate<jh> 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)
public static Stream<BlockPos>
b(jh 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)
public static Iterable<BlockPos>
a(fbt arg0)
betweenClosed(AABB arg0)
method_62671(class_238 arg0)
iterate(Box box)
public static Iterable<BlockPos>
c(jh arg0, jh arg1)
betweenClosed(BlockPos arg0, BlockPos arg1)
method_10097(class_2338 arg0, class_2338 arg1)
iterate(BlockPos start, BlockPos end)
public static Stream<BlockPos>
d(jh arg0, jh arg1)
betweenClosedStream(BlockPos arg0, BlockPos arg1)
method_20437(class_2338 arg0, class_2338 arg1)
stream(BlockPos start, BlockPos end)
public static Stream<BlockPos>
a(eoc arg0)
betweenClosedStream(BoundingBox arg0)
method_23627(class_3341 arg0)
stream(BlockBox box)
public static Stream<BlockPos>
b(fbt arg0)
betweenClosedStream(AABB arg0)
method_29715(class_238 arg0)
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)
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)
iterate(int startX, int startY, int startZ, int endX, int endY, int endZ)
public static Iterable<BlockPos$MutableBlockPos>
a(jh arg0, int arg1, jm arg2, jm 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)
public static int
a(jh arg0, int arg1, int arg2, BiConsumer<jh, Consumer<jh>> arg3, Predicate<jh> 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)