类 SectionPos
java.lang.Object
net.minecraft.core.Vec3i
net.minecraft.core.SectionPos
- 所有已实现的接口:
Comparable<Vec3i>
-
字段概要
字段修饰符和类型字段说明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
private static final int
static final int
static final int
static final int
static final int
static final int
private static final int
private static final int
private static final int
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static void
aroundAndAtBlockPos
(int pX, int pY, int pZ, it.unimi.dsi.fastutil.longs.LongConsumer pConsumer) static void
aroundAndAtBlockPos
(long pPos, it.unimi.dsi.fastutil.longs.LongConsumer pConsumer) static void
aroundAndAtBlockPos
(BlockPos pPos, it.unimi.dsi.fastutil.longs.LongConsumer pConsumer) static Stream<SectionPos>
aroundChunk
(ChunkPos pChunkPos, int pX, int pY, int pZ) long
asLong()
static long
asLong
(int pX, int pY, int pZ) static long
static Stream<SectionPos>
betweenClosedStream
(int pX1, int pY1, int pZ1, int pX2, int pY2, int pZ2) static long
blockToSection
(long pLevelPos) static int
blockToSectionCoord
(double pCoord) static int
blockToSectionCoord
(int pBlockCoord) static SectionPos
bottomOf
(ChunkAccess pChunk) center()
chunk()
static Stream<SectionPos>
cube
(SectionPos pCenter, int pRadius) static long
getZeroNode
(int pX, int pZ) static long
getZeroNode
(long pPos) int
int
int
int
int
int
static SectionPos
of
(int pChunkX, int pChunkY, int pChunkZ) static SectionPos
of
(long pPacked) static SectionPos
static SectionPos
static SectionPos
static SectionPos
of
(EntityAccess pEntity) offset
(int pDx, int pDy, int pDz) static long
offset
(long pPacked, int pDx, int pDy, int pDz) static long
origin()
static int
posToSectionCoord
(double pPos) relativeToBlockPos
(short pPos) int
relativeToBlockX
(short pX) int
relativeToBlockY
(short pY) int
relativeToBlockZ
(short pZ) static int
sectionRelative
(int pRel) static short
sectionRelativePos
(BlockPos pPos) static int
sectionRelativeX
(short pX) static int
sectionRelativeY
(short pY) static int
sectionRelativeZ
(short pZ) static int
sectionToBlockCoord
(int pSectionCoord) static int
sectionToBlockCoord
(int pPos, int pOffset) int
x()
static int
x
(long pPacked) int
y()
static int
y
(long pPacked) int
z()
static int
z
(long pPacked) 从类继承的方法 net.minecraft.core.Vec3i
above, above, below, below, closerThan, closerToCenterThan, compareTo, cross, distManhattan, distSqr, distToCenterSqr, distToCenterSqr, distToLowCornerSqr, east, east, equals, get, getX, getY, getZ, hashCode, multiply, north, north, offset, offsetCodec, relative, relative, relative, setX, setY, setZ, south, south, subtract, toShortString, toString, west, west
-
字段详细资料
-
SECTION_BITS
public static final int SECTION_BITS- 另请参阅:
-
SECTION_SIZE
public static final int SECTION_SIZE- 另请参阅:
-
SECTION_MASK
public static final int SECTION_MASK- 另请参阅:
-
SECTION_HALF_SIZE
public static final int SECTION_HALF_SIZE- 另请参阅:
-
SECTION_MAX_INDEX
public static final int SECTION_MAX_INDEX- 另请参阅:
-
PACKED_X_LENGTH
private static final int PACKED_X_LENGTH- 另请参阅:
-
PACKED_Y_LENGTH
private static final int PACKED_Y_LENGTH- 另请参阅:
-
PACKED_Z_LENGTH
private static final int PACKED_Z_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- 另请参阅:
-
Y_OFFSET
private static final int Y_OFFSET- 另请参阅:
-
Z_OFFSET
private static final int Z_OFFSET- 另请参阅:
-
X_OFFSET
private static final int X_OFFSET- 另请参阅:
-
RELATIVE_X_SHIFT
private static final int RELATIVE_X_SHIFT- 另请参阅:
-
RELATIVE_Y_SHIFT
private static final int RELATIVE_Y_SHIFT- 另请参阅:
-
RELATIVE_Z_SHIFT
private static final int RELATIVE_Z_SHIFT- 另请参阅:
-
-
构造器详细资料
-
SectionPos
SectionPos(int pX, int pY, int pZ)
-
-
方法详细资料
-
of
-
of
-
of
-
of
-
of
-
of
-
bottomOf
-
offset
-
offset
public static long offset(long pPacked, int pDx, int pDy, int pDz) -
posToSectionCoord
public static int posToSectionCoord(double pPos) -
blockToSectionCoord
public static int blockToSectionCoord(int pBlockCoord) -
blockToSectionCoord
public static int blockToSectionCoord(double pCoord) -
sectionRelative
public static int sectionRelative(int pRel) -
sectionRelativePos
-
sectionRelativeX
public static int sectionRelativeX(short pX) -
sectionRelativeY
public static int sectionRelativeY(short pY) -
sectionRelativeZ
public static int sectionRelativeZ(short pZ) -
relativeToBlockX
public int relativeToBlockX(short pX) -
relativeToBlockY
public int relativeToBlockY(short pY) -
relativeToBlockZ
public int relativeToBlockZ(short pZ) -
relativeToBlockPos
-
sectionToBlockCoord
public static int sectionToBlockCoord(int pSectionCoord) -
sectionToBlockCoord
public static int sectionToBlockCoord(int pPos, int pOffset) -
x
public static int x(long pPacked) -
y
public static int y(long pPacked) -
z
public static int z(long pPacked) -
x
public int x() -
y
public int y() -
z
public int z() -
minBlockX
public int minBlockX() -
minBlockY
public int minBlockY() -
minBlockZ
public int minBlockZ() -
maxBlockX
public int maxBlockX() -
maxBlockY
public int maxBlockY() -
maxBlockZ
public int maxBlockZ() -
blockToSection
public static long blockToSection(long pLevelPos) -
getZeroNode
public static long getZeroNode(int pX, int pZ) -
getZeroNode
public static long getZeroNode(long pPos) -
origin
-
center
-
chunk
-
asLong
-
asLong
public static long asLong(int pX, int pY, int pZ) -
asLong
public long asLong() -
offset
-
blocksInside
-
cube
-
aroundChunk
-
betweenClosedStream
public static Stream<SectionPos> betweenClosedStream(int pX1, int pY1, int pZ1, int pX2, int pY2, int pZ2) -
aroundAndAtBlockPos
public static void aroundAndAtBlockPos(BlockPos pPos, it.unimi.dsi.fastutil.longs.LongConsumer pConsumer) -
aroundAndAtBlockPos
public static void aroundAndAtBlockPos(long pPos, it.unimi.dsi.fastutil.longs.LongConsumer pConsumer) -
aroundAndAtBlockPos
public static void aroundAndAtBlockPos(int pX, int pY, int pZ, it.unimi.dsi.fastutil.longs.LongConsumer pConsumer)
-