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 int
private static long
private static int
private static long
private static int
private static long
private static int
private static int
private static int
static int
static int
private static int
static int
static int
private static int
private static int
private static int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic 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(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
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, closerThan, compareTo, cross, distManhattan, distSqr, distSqr, distSqr, distSqr, east, east, equals, get, getX, getY, getZ, hashCode, multiply, north, north, offset, offset, 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:
- Constant Field Values
-
SECTION_SIZE
public static final int SECTION_SIZE- See Also:
- Constant Field Values
-
SECTION_MASK
private static final int SECTION_MASK- See Also:
- Constant Field Values
-
SECTION_HALF_SIZE
public static final int SECTION_HALF_SIZE- See Also:
- Constant Field Values
-
SECTION_MAX_INDEX
public static final int SECTION_MAX_INDEX- See Also:
- Constant Field Values
-
PACKED_X_LENGTH
private static final int PACKED_X_LENGTH- See Also:
- Constant Field Values
-
PACKED_Y_LENGTH
private static final int PACKED_Y_LENGTH- See Also:
- Constant Field Values
-
PACKED_Z_LENGTH
private static final int PACKED_Z_LENGTH- See Also:
- Constant Field Values
-
PACKED_X_MASK
private static final long PACKED_X_MASK- See Also:
- Constant Field Values
-
PACKED_Y_MASK
private static final long PACKED_Y_MASK- See Also:
- Constant Field Values
-
PACKED_Z_MASK
private static final long PACKED_Z_MASK- See Also:
- Constant Field Values
-
Y_OFFSET
private static final int Y_OFFSET- See Also:
- Constant Field Values
-
Z_OFFSET
private static final int Z_OFFSET- See Also:
- Constant Field Values
-
X_OFFSET
private static final int X_OFFSET- See Also:
- Constant Field Values
-
RELATIVE_X_SHIFT
private static final int RELATIVE_X_SHIFT- See Also:
- Constant Field Values
-
RELATIVE_Y_SHIFT
private static final int RELATIVE_Y_SHIFT- See Also:
- Constant Field Values
-
RELATIVE_Z_SHIFT
private static final int RELATIVE_Z_SHIFT- See Also:
- Constant Field Values
-
-
Constructor Details
-
SectionPos
SectionPos(int p_123162_, int p_123163_, int p_123164_)
-
-
Method Details
-
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_) -
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_)
-