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 SummaryNested Classes
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<BlockPos>private static final org.apache.logging.log4j.Loggerprivate static final intprivate static final longprivate static final intprivate static final longprivate static final intprivate static final longprivate static final intprivate static final intstatic final BlockPos
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionabove()above(int p_177981_1_) longasLong()static longasLong(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 longgetFlatIndex(long p_218288_0_) static intgetX(long p_218290_0_) static intgetY(long p_218274_0_) static intgetZ(long p_218282_0_) mutable()north()north(int p_177964_1_) static BlockPosof(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 longoffset(long p_218291_0_, int p_218291_2_, int p_218291_3_, int p_218291_4_) static longrandomBetweenClosed(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.Vector3icloserThan, closerThan, compareTo, distManhattan, distSqr, distSqr, distSqr, equals, get, getX, getY, getZ, hashCode, setX, setY, setZ, toShortString, toString
- 
Field Details- 
CODEC
- 
LOGGERprivate static final org.apache.logging.log4j.Logger LOGGER
- 
ZERO
- 
PACKED_X_LENGTHprivate static final int PACKED_X_LENGTH
- 
PACKED_Z_LENGTHprivate static final int PACKED_Z_LENGTH
- 
PACKED_Y_LENGTHprivate static final int PACKED_Y_LENGTH
- 
PACKED_X_MASKprivate static final long PACKED_X_MASK
- 
PACKED_Y_MASKprivate static final long PACKED_Y_MASK
- 
PACKED_Z_MASKprivate static final long PACKED_Z_MASK
- 
Z_OFFSETprivate static final int Z_OFFSET
- 
X_OFFSETprivate static final int X_OFFSET
 
- 
- 
Constructor Details- 
BlockPospublic BlockPos(int p_i46030_1_, int p_i46030_2_, int p_i46030_3_) 
- 
BlockPospublic BlockPos(double p_i46031_1_, double p_i46031_3_, double p_i46031_5_) 
- 
BlockPos
- 
BlockPos
- 
BlockPos
 
- 
- 
Method Details- 
offset
- 
offsetpublic static long offset(long p_218291_0_, int p_218291_2_, int p_218291_3_, int p_218291_4_) 
- 
getXpublic static int getX(long p_218290_0_) 
- 
getYpublic static int getY(long p_218274_0_) 
- 
getZpublic static int getZ(long p_218282_0_) 
- 
of
- 
asLongpublic long asLong()
- 
asLongpublic static long asLong(int p_218276_0_, int p_218276_1_, int p_218276_2_) 
- 
getFlatIndexpublic 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
- 
spiralAroundpublic static Iterable<BlockPos.Mutable> spiralAround(BlockPos p_243514_0_, int p_243514_1_, Direction p_243514_2_, Direction p_243514_3_) 
 
-