Package net.minecraft.core
Class SectionPos
java.lang.Object
net.minecraft.core.Vec3i
net.minecraft.core.SectionPos
- All Implemented Interfaces:
Comparable<Vec3i>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static intprivate static longprivate static intprivate static longprivate static intprivate static longprivate static intprivate static intprivate static intstatic intstatic intprivate static intstatic intstatic intprivate static intprivate static intprivate static int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Stream<SectionPos>aroundChunk(ChunkPos p_175558_, int p_175559_, int p_175560_, int p_175561_)longasLong()static longasLong(int p_123210_, int p_123211_, int p_123212_)static longstatic Stream<SectionPos>betweenClosedStream(int p_123178_, int p_123179_, int p_123180_, int p_123181_, int p_123182_, int p_123183_)static longblockToSection(long p_123236_)static intblockToSectionCoord(int p_123172_)static SectionPosbottomOf(ChunkAccess p_175563_)center()chunk()static Stream<SectionPos>cube(SectionPos p_123202_, int p_123203_)static longgetZeroNode(long p_123241_)intintintintintintstatic SectionPosof(int p_123174_, int p_123175_, int p_123176_)static SectionPosof(long p_123185_)static SectionPosstatic SectionPosstatic SectionPosoffset(int p_175571_, int p_175572_, int p_175573_)static longoffset(long p_123187_, int p_123188_, int p_123189_, int p_123190_)static longorigin()static intposToSectionCoord(double p_175553_)relativeToBlockPos(short p_123246_)intrelativeToBlockX(short p_123233_)intrelativeToBlockY(short p_123238_)intrelativeToBlockZ(short p_123243_)static intsectionRelative(int p_123208_)static shortsectionRelativePos(BlockPos p_123219_)static intsectionRelativeX(short p_123205_)static intsectionRelativeY(short p_123221_)static intsectionRelativeZ(short p_123228_)static intsectionToBlockCoord(int p_123224_)static intsectionToBlockCoord(int p_175555_, int p_175556_)intx()static intx(long p_123214_)inty()static inty(long p_123226_)intz()static intz(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_)
-