Package net.minecraft.util.math
Class BlockPos
java.lang.Object
net.minecraft.util.math.vector.Vector3i
net.minecraft.util.math.BlockPos
- All Implemented Interfaces:
Comparable<Vector3i>
- Direct Known Subclasses:
BlockPos.Mutable
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<BlockPos>
private static final org.apache.logging.log4j.Logger
private static final int
private static final long
private static final int
private static final long
private static final int
private static final long
private static final int
private static final int
static final BlockPos
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabove()
above
(int p_177981_1_) long
asLong()
static long
asLong
(int p_218276_0_, int p_218276_1_, int p_218276_2_) below()
below
(int p_177979_1_) betweenClosed
(int p_191531_0_, int p_191531_1_, int p_191531_2_, int p_191531_3_, int p_191531_4_, int p_191531_5_) betweenClosed
(BlockPos p_218278_0_, BlockPos p_218278_1_) betweenClosedStream
(int p_218287_0_, int p_218287_1_, int p_218287_2_, int p_218287_3_, int p_218287_4_, int p_218287_5_) betweenClosedStream
(AxisAlignedBB p_239581_0_) betweenClosedStream
(BlockPos p_218281_0_, BlockPos p_218281_1_) betweenClosedStream
(MutableBoundingBox p_229383_0_) east()
east
(int p_177965_1_) findClosestMatch
(BlockPos p_239584_0_, int p_239584_1_, int p_239584_2_, Predicate<BlockPos> p_239584_3_) static long
getFlatIndex
(long p_218288_0_) static int
getX
(long p_218290_0_) static int
getY
(long p_218274_0_) static int
getZ
(long p_218282_0_) mutable()
north()
north
(int p_177964_1_) static BlockPos
of
(long p_218283_0_) offset
(double p_177963_1_, double p_177963_3_, double p_177963_5_) offset
(int p_177982_1_, int p_177982_2_, int p_177982_3_) static long
offset
(long p_218291_0_, int p_218291_2_, int p_218291_3_, int p_218291_4_) static long
randomBetweenClosed
(Random p_239585_0_, int p_239585_1_, int p_239585_2_, int p_239585_3_, int p_239585_4_, int p_239585_5_, int p_239585_6_, int p_239585_7_) relative
(Direction.Axis p_241872_1_, int p_241872_2_) south()
south
(int p_177970_1_) static Iterable<BlockPos.Mutable>
spiralAround
(BlockPos p_243514_0_, int p_243514_1_, Direction p_243514_2_, Direction p_243514_3_) west()
west
(int p_177985_1_) withinManhattan
(BlockPos p_239583_0_, int p_239583_1_, int p_239583_2_, int p_239583_3_) withinManhattanStream
(BlockPos p_239588_0_, int p_239588_1_, int p_239588_2_, int p_239588_3_) Methods inherited from class net.minecraft.util.math.vector.Vector3i
closerThan, closerThan, compareTo, distManhattan, distSqr, distSqr, distSqr, equals, get, getX, getY, getZ, hashCode, setX, setY, setZ, toShortString, toString
-
Field Details
-
CODEC
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER -
ZERO
-
PACKED_X_LENGTH
private static final int PACKED_X_LENGTH -
PACKED_Z_LENGTH
private static final int PACKED_Z_LENGTH -
PACKED_Y_LENGTH
private static final int PACKED_Y_LENGTH -
PACKED_X_MASK
private static final long PACKED_X_MASK -
PACKED_Y_MASK
private static final long PACKED_Y_MASK -
PACKED_Z_MASK
private static final long PACKED_Z_MASK -
Z_OFFSET
private static final int Z_OFFSET -
X_OFFSET
private static final int X_OFFSET
-
-
Constructor Details
-
BlockPos
public BlockPos(int p_i46030_1_, int p_i46030_2_, int p_i46030_3_) -
BlockPos
public BlockPos(double p_i46031_1_, double p_i46031_3_, double p_i46031_5_) -
BlockPos
-
BlockPos
-
BlockPos
-
-
Method Details
-
offset
-
offset
public static long offset(long p_218291_0_, int p_218291_2_, int p_218291_3_, int p_218291_4_) -
getX
public static int getX(long p_218290_0_) -
getY
public static int getY(long p_218274_0_) -
getZ
public static int getZ(long p_218282_0_) -
of
-
asLong
public long asLong() -
asLong
public static long asLong(int p_218276_0_, int p_218276_1_, int p_218276_2_) -
getFlatIndex
public static long getFlatIndex(long p_218288_0_) -
offset
-
offset
-
offset
-
subtract
-
above
-
above
-
below
-
below
-
north
-
north
-
south
-
south
-
west
-
west
-
east
-
east
-
relative
-
relative
-
relative
-
rotate
-
cross
-
immutable
-
mutable
-
randomBetweenClosed
-
withinManhattan
-
findClosestMatch
-
withinManhattanStream
-
betweenClosed
-
betweenClosedStream
-
betweenClosedStream
-
betweenClosedStream
-
betweenClosedStream
-
betweenClosed
-
spiralAround
public static Iterable<BlockPos.Mutable> spiralAround(BlockPos p_243514_0_, int p_243514_1_, Direction p_243514_2_, Direction p_243514_3_)
-