Package net.minecraft.core
Class SectionPos
java.lang.Object
net.minecraft.core.Vec3i
net.minecraft.core.SectionPos
- All Implemented Interfaces:
Comparable<Vec3i>
-
Field Summary
Modifier and TypeFieldDescriptionprivate 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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
aroundAndAtBlockPos
(int p_194635_, int p_194636_, int p_194637_, it.unimi.dsi.fastutil.longs.LongConsumer p_194638_) static void
aroundAndAtBlockPos
(long p_194640_, it.unimi.dsi.fastutil.longs.LongConsumer p_194641_) static void
aroundAndAtBlockPos
(BlockPos p_194643_, it.unimi.dsi.fastutil.longs.LongConsumer p_194644_) static Stream<SectionPos>
aroundChunk
(ChunkPos p_175558_, int p_175559_, int p_175560_, int p_175561_) long
asLong()
static long
asLong
(int p_123210_, int p_123211_, int p_123212_) static long
static Stream<SectionPos>
betweenClosedStream
(int p_123178_, int p_123179_, int p_123180_, int p_123181_, int p_123182_, int p_123183_) static long
blockToSection
(long p_123236_) static int
blockToSectionCoord
(double p_235866_) static int
blockToSectionCoord
(int p_123172_) static SectionPos
bottomOf
(ChunkAccess p_175563_) center()
chunk()
static Stream<SectionPos>
cube
(SectionPos p_123202_, int p_123203_) static long
getZeroNode
(long p_123241_) int
int
int
int
int
int
static SectionPos
of
(int p_123174_, int p_123175_, int p_123176_) static SectionPos
of
(long p_123185_) static SectionPos
static SectionPos
static SectionPos
static SectionPos
of
(EntityAccess p_235862_) offset
(int p_175571_, int p_175572_, int p_175573_) static long
offset
(long p_123187_, int p_123188_, int p_123189_, int p_123190_) static long
origin()
static int
posToSectionCoord
(double p_175553_) relativeToBlockPos
(short p_123246_) int
relativeToBlockX
(short p_123233_) int
relativeToBlockY
(short p_123238_) int
relativeToBlockZ
(short p_123243_) static int
sectionRelative
(int p_123208_) static short
sectionRelativePos
(BlockPos p_123219_) static int
sectionRelativeX
(short p_123205_) static int
sectionRelativeY
(short p_123221_) static int
sectionRelativeZ
(short p_123228_) static int
sectionToBlockCoord
(int p_123224_) static int
sectionToBlockCoord
(int p_175555_, int p_175556_) int
x()
static int
x
(long p_123214_) int
y()
static int
y
(long p_123226_) int
z()
static int
z
(long p_123231_) Methods inherited from class 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
-
Field Details
-
SECTION_BITS
public static final int SECTION_BITS- See Also:
-
SECTION_SIZE
public static final int SECTION_SIZE- See Also:
-
SECTION_MASK
public static final int SECTION_MASK- See Also:
-
SECTION_HALF_SIZE
public static final int SECTION_HALF_SIZE- See Also:
-
SECTION_MAX_INDEX
public static final int SECTION_MAX_INDEX- See Also:
-
PACKED_X_LENGTH
private static final int PACKED_X_LENGTH- See Also:
-
PACKED_Y_LENGTH
private static final int PACKED_Y_LENGTH- See Also:
-
PACKED_Z_LENGTH
private static final int PACKED_Z_LENGTH- See Also:
-
PACKED_X_MASK
private static final long PACKED_X_MASK- See Also:
-
PACKED_Y_MASK
private static final long PACKED_Y_MASK- See Also:
-
PACKED_Z_MASK
private static final long PACKED_Z_MASK- See Also:
-
Y_OFFSET
private static final int Y_OFFSET- See Also:
-
Z_OFFSET
private static final int Z_OFFSET- See Also:
-
X_OFFSET
private static final int X_OFFSET- See Also:
-
RELATIVE_X_SHIFT
private static final int RELATIVE_X_SHIFT- See Also:
-
RELATIVE_Y_SHIFT
private static final int RELATIVE_Y_SHIFT- See Also:
-
RELATIVE_Z_SHIFT
private static final int RELATIVE_Z_SHIFT- See Also:
-
-
Constructor Details
-
SectionPos
SectionPos(int p_123162_, int p_123163_, int p_123164_)
-
-
Method Details
-
of
-
of
-
of
-
of
-
of
-
of
-
bottomOf
-
offset
-
offset
public static long offset(long p_123187_, int p_123188_, int p_123189_, int p_123190_) -
posToSectionCoord
public static int posToSectionCoord(double p_175553_) -
blockToSectionCoord
public static int blockToSectionCoord(int p_123172_) -
blockToSectionCoord
public static int blockToSectionCoord(double p_235866_) -
sectionRelative
public static int sectionRelative(int p_123208_) -
sectionRelativePos
-
sectionRelativeX
public static int sectionRelativeX(short p_123205_) -
sectionRelativeY
public static int sectionRelativeY(short p_123221_) -
sectionRelativeZ
public static int sectionRelativeZ(short p_123228_) -
relativeToBlockX
public int relativeToBlockX(short p_123233_) -
relativeToBlockY
public int relativeToBlockY(short p_123238_) -
relativeToBlockZ
public int relativeToBlockZ(short p_123243_) -
relativeToBlockPos
-
sectionToBlockCoord
public static int sectionToBlockCoord(int p_123224_) -
sectionToBlockCoord
public static int sectionToBlockCoord(int p_175555_, int p_175556_) -
x
public static int x(long p_123214_) -
y
public static int y(long p_123226_) -
z
public static int z(long p_123231_) -
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 p_123236_) -
getZeroNode
public static long getZeroNode(long p_123241_) -
origin
-
center
-
chunk
-
asLong
-
asLong
public static long asLong(int p_123210_, int p_123211_, int p_123212_) -
asLong
public long asLong() -
offset
-
blocksInside
-
cube
-
aroundChunk
public static Stream<SectionPos> aroundChunk(ChunkPos p_175558_, int p_175559_, int p_175560_, int p_175561_) -
betweenClosedStream
public static Stream<SectionPos> betweenClosedStream(int p_123178_, int p_123179_, int p_123180_, int p_123181_, int p_123182_, int p_123183_) -
aroundAndAtBlockPos
public static void aroundAndAtBlockPos(BlockPos p_194643_, it.unimi.dsi.fastutil.longs.LongConsumer p_194644_) -
aroundAndAtBlockPos
public static void aroundAndAtBlockPos(long p_194640_, it.unimi.dsi.fastutil.longs.LongConsumer p_194641_) -
aroundAndAtBlockPos
public static void aroundAndAtBlockPos(int p_194635_, int p_194636_, int p_194637_, it.unimi.dsi.fastutil.longs.LongConsumer p_194638_)
-