net.minecraft.core

public class SectionPos

extends Vec3i

kf
net.minecraft.core.SectionPos
net.minecraft.class_4076
net.minecraft.util.math.ChunkSectionPos
net.minecraft.src.C_4710_
net.minecraft.core.SectionPosition

Field summary

Modifier and TypeField
public static final int
a
SECTION_BITS
field_33096
field_33096
f_175535_
public static final int
b
SECTION_SIZE
field_33097
field_33097
f_175536_
public static final int
c
SECTION_MASK
field_33100
field_33100
f_175539_
public static final int
d
SECTION_HALF_SIZE
field_33098
field_33098
f_175537_
public static final int
e
SECTION_MAX_INDEX
field_33099
field_33099
f_175538_
private static final int
h
PACKED_X_LENGTH
field_33101
field_33101
f_175540_
private static final int
i
PACKED_Y_LENGTH
field_33102
field_33102
f_175541_
private static final int
j
PACKED_Z_LENGTH
field_33103
field_33103
f_175542_
private static final long
k
PACKED_X_MASK
field_33104
field_33104
f_175543_
private static final long
l
PACKED_Y_MASK
field_33105
field_33105
f_175544_
private static final long
m
PACKED_Z_MASK
field_33106
field_33106
f_175545_
private static final int
n
Y_OFFSET
field_33107
field_33107
f_175546_
private static final int
o
Z_OFFSET
field_33108
field_33108
f_175547_
private static final int
p
X_OFFSET
field_33109
field_33109
f_175548_
private static final int
q
RELATIVE_X_SHIFT
field_33110
field_33110
f_175549_
private static final int
r
RELATIVE_Y_SHIFT
field_33111
field_33111
f_175550_
private static final int
s
RELATIVE_Z_SHIFT
field_33112
field_33112
f_175551_

Constructor summary

ModifierConstructor
(int p_123163_, int p_123164_, int arg2)

Method summary

Modifier and TypeMethod
public static SectionPos
a(int arg0, int arg1, int arg2)
of(int arg0, int arg1, int arg2)
method_18676(int arg0, int arg1, int arg2)
from(int x, int y, int z)
m_123173_(int p_123174_, int p_123175_, int p_123176_)
public static SectionPos
a(jd arg0)
of(BlockPos arg0)
method_18682(class_2338 arg0)
from(BlockPos pos)
m_123199_(C_4675_ p_123200_)
public static SectionPos
a(dcd arg0, int arg1)
of(ChunkPos arg0, int arg1)
method_18681(class_1923 arg0, int arg1)
from(ChunkPos chunkPos, int y)
m_123196_(C_1560_ p_123197_, int p_123198_)
public static SectionPos
a(dxg arg0)
of(EntityAccess arg0)
method_42614(class_5568 arg0)
from(EntityLike entity)
m_235861_(C_141279_ p_235862_)
public static SectionPos
a(jw arg0)
of(Position arg0)
method_18680(class_2374 arg0)
from(Position pos)
m_235863_(C_4703_ p_235864_)
public static SectionPos
a(long arg0)
of(long arg0)
method_18677(long arg0)
from(long packed)
m_123184_(long p_123185_)
public static SectionPos
a(duy arg0)
bottomOf(ChunkAccess arg0)
method_33705(class_2791 arg0)
from(Chunk chunk)
m_175562_(C_2116_ p_175563_)
public static long
a(long arg0, ji arg1)
offset(long arg0, Direction arg1)
method_18679(long arg0, class_2350 arg1)
offset(long packed, Direction direction)
m_123191_(long p_123192_, C_4687_ arg1)
public static long
a(long arg0, int arg1, int arg2, int arg3)
offset(long arg0, int arg1, int arg2, int arg3)
method_18678(long arg0, int arg1, int arg2, int arg3)
offset(long packed, int x, int y, int z)
m_123186_(long p_123187_, int p_123189_, int p_123190_, int arg3)
public static int
a(double arg0)
posToSectionCoord(double arg0)
method_32204(double arg0)
getSectionCoord(double coord)
m_175552_(double p_175553_)
public static int
a(int arg0)
blockToSectionCoord(int arg0)
method_18675(int arg0)
getSectionCoord(int coord)
m_123171_(int p_123172_)
public static int
b(double arg0)
blockToSectionCoord(double arg0)
method_42615(double arg0)
getSectionCoordFloored(double coord)
m_235865_(double p_235866_)
public static int
b(int arg0)
sectionRelative(int arg0)
method_18684(int arg0)
getLocalCoord(int coord)
m_123207_(int p_123208_)
public static short
b(jd arg0)
sectionRelativePos(BlockPos arg0)
method_19454(class_2338 arg0)
packLocal(BlockPos pos)
m_123218_(C_4675_ p_123219_)
public static int
a(short arg0)
sectionRelativeX(short arg0)
method_30551(short arg0)
unpackLocalX(short packedLocalPos)
m_123204_(short p_123205_)
public static int
b(short arg0)
sectionRelativeY(short arg0)
method_30552(short arg0)
unpackLocalY(short packedLocalPos)
m_123220_(short p_123221_)
public static int
c(short arg0)
sectionRelativeZ(short arg0)
method_30553(short arg0)
unpackLocalZ(short packedLocalPos)
m_123227_(short p_123228_)
public int
d(short arg0)
relativeToBlockX(short arg0)
method_30554(short arg0)
unpackBlockX(short packedLocalPos)
m_123232_(short arg0)
public int
e(short arg0)
relativeToBlockY(short arg0)
method_30555(short arg0)
unpackBlockY(short packedLocalPos)
m_123237_(short arg0)
public int
f(short arg0)
relativeToBlockZ(short arg0)
method_30556(short arg0)
unpackBlockZ(short packedLocalPos)
m_123242_(short arg0)
public BlockPos
g(short arg0)
relativeToBlockPos(short arg0)
method_30557(short arg0)
unpackBlockPos(short packedLocalPos)
m_123245_(short arg0)
public static int
c(int arg0)
sectionToBlockCoord(int arg0)
method_18688(int arg0)
getBlockCoord(int sectionCoord)
m_123223_(int p_123224_)
public static int
a(int arg0, int arg1)
sectionToBlockCoord(int arg0, int arg1)
method_32205(int arg0, int arg1)
getOffsetPos(int chunkCoord, int offset)
m_175554_(int p_175555_, int p_175556_)
public static int
b(long arg0)
x(long arg0)
method_18686(long arg0)
unpackX(long packed)
m_123213_(long p_123214_)
public static int
c(long arg0)
y(long arg0)
method_18689(long arg0)
unpackY(long packed)
m_123225_(long p_123226_)
public static int
d(long arg0)
z(long arg0)
method_18690(long arg0)
unpackZ(long packed)
m_123230_(long p_123231_)
public int
a()
x()
method_18674()
getSectionX()
m_123170_()
public int
b()
y()
method_18683()
getSectionY()
m_123206_()
public int
c()
z()
method_18687()
getSectionZ()
m_123222_()
public int
d()
minBlockX()
method_19527()
getMinX()
m_123229_()
public int
e()
minBlockY()
method_19528()
getMinY()
m_123234_()
public int
f()
minBlockZ()
method_19529()
getMinZ()
m_123239_()
public int
g()
maxBlockX()
method_19530()
getMaxX()
m_123244_()
public int
h()
maxBlockY()
method_19531()
getMaxY()
m_123247_()
public int
i()
maxBlockZ()
method_19532()
getMaxZ()
m_123248_()
public static long
e(long arg0)
blockToSection(long arg0)
method_18691(long arg0)
fromBlockPos(long blockPos)
m_123235_(long p_123236_)
public static long
b(int arg0, int arg1)
getZeroNode(int arg0, int arg1)
method_51687(int arg0, int arg1)
withZeroY(int x, int z)
m_284454_(int p_285381_, int p_285068_)
public static long
f(long arg0)
getZeroNode(long arg0)
method_18693(long arg0)
withZeroY(long pos)
m_123240_(long p_123241_)
public BlockPos
j()
origin()
method_19767()
getMinPos()
m_123249_()
public BlockPos
k()
center()
method_19768()
getCenterPos()
m_123250_()
public ChunkPos
r()
chunk()
method_18692()
toChunkPos()
m_123251_()
public static long
c(jd arg0)
asLong(BlockPos arg0)
method_33706(class_2338 arg0)
toLong(BlockPos pos)
m_175568_(C_4675_ p_175569_)
public static long
b(int arg0, int arg1, int arg2)
asLong(int arg0, int arg1, int arg2)
method_18685(int arg0, int arg1, int arg2)
asLong(int x, int y, int z)
m_123209_(int p_123210_, int p_123211_, int p_123212_)
public long
s()
asLong()
method_18694()
asLong()
m_123252_()
public SectionPos
d(int arg0, int arg1, int arg2)
offset(int arg0, int arg1, int arg2)
method_34591(int arg0, int arg1, int arg2)
add(int arg0, int arg1, int arg2)
m_7918_(int p_175572_, int p_175573_, int arg2)
public Stream<BlockPos>
t()
blocksInside()
method_19533()
streamBlocks()
m_123253_()
public static Stream<SectionPos>
a(kf arg0, int arg1)
cube(SectionPos arg0, int arg1)
method_20439(class_4076 arg0, int arg1)
stream(ChunkSectionPos center, int radius)
m_123201_(C_4710_ p_123202_, int p_123203_)
public static Stream<SectionPos>
a(dcd arg0, int arg1, int arg2, int arg3)
aroundChunk(ChunkPos arg0, int arg1, int arg2, int arg3)
method_22446(class_1923 arg0, int arg1, int arg2, int arg3)
stream(ChunkPos center, int radius, int minY, int maxY)
m_175557_(C_1560_ p_175558_, int p_175559_, int p_175560_, int p_175561_)
public static Stream<SectionPos>
a(int arg0, int arg1, int arg2, int arg3, int arg4, int arg5)
betweenClosedStream(int arg0, int arg1, int arg2, int arg3, int arg4, int arg5)
method_20438(int arg0, int arg1, int arg2, int arg3, int arg4, int arg5)
stream(int minX, int minY, int minZ, int maxX, int maxY, int maxZ)
m_123177_(int p_123178_, int p_123179_, int p_123180_, int p_123181_, int p_123182_, int p_123183_)
public static void
a(jd arg0, it.unimi.dsi.fastutil.longs.LongConsumer arg1)
aroundAndAtBlockPos(BlockPos arg0, it.unimi.dsi.fastutil.longs.LongConsumer arg1)
method_39491(class_2338 arg0, it.unimi.dsi.fastutil.longs.LongConsumer arg1)
forEachChunkSectionAround(BlockPos pos, it.unimi.dsi.fastutil.longs.LongConsumer consumer)
m_194642_(C_4675_ p_194643_, it.unimi.dsi.fastutil.longs.LongConsumer p_194644_)
public static void
a(long arg0, it.unimi.dsi.fastutil.longs.LongConsumer arg1)
aroundAndAtBlockPos(long arg0, it.unimi.dsi.fastutil.longs.LongConsumer arg1)
method_39490(long arg0, it.unimi.dsi.fastutil.longs.LongConsumer arg1)
forEachChunkSectionAround(long pos, it.unimi.dsi.fastutil.longs.LongConsumer consumer)
m_194639_(long p_194640_, it.unimi.dsi.fastutil.longs.LongConsumer arg1)
public static void
a(int arg0, int arg1, int arg2, it.unimi.dsi.fastutil.longs.LongConsumer arg3)
aroundAndAtBlockPos(int arg0, int arg1, int arg2, it.unimi.dsi.fastutil.longs.LongConsumer arg3)
method_39489(int arg0, int arg1, int arg2, it.unimi.dsi.fastutil.longs.LongConsumer arg3)
forEachChunkSectionAround(int x, int y, int z, it.unimi.dsi.fastutil.longs.LongConsumer consumer)
m_194634_(int p_194635_, int p_194636_, int p_194637_, it.unimi.dsi.fastutil.longs.LongConsumer p_194638_)