Package net.minecraft.world.level.chunk
Class LevelChunkSection
java.lang.Object
net.minecraft.world.level.chunk.LevelChunkSection
-
Field Summary
Modifier and TypeFieldDescriptionprivate int
private static Palette<BlockState>
private short
static int
static int
static int
private PalettedContainer<BlockState>
private short
private short
-
Constructor Summary
ConstructorDescriptionLevelChunkSection(int p_62975_)
LevelChunkSection(int p_62977_, short p_62978_, short p_62979_, short p_62980_)
-
Method Summary
Modifier and TypeMethodDescriptionvoid
acquire()
int
getBlockState(int p_62983_, int p_62984_, int p_62985_)
static int
getBottomBlockY(int p_156459_)
getFluidState(int p_63008_, int p_63009_, int p_63010_)
int
boolean
isEmpty()
static boolean
isEmpty(LevelChunkSection p_63001_)
boolean
boolean
boolean
boolean
maybeHas(Predicate<BlockState> p_63003_)
void
read(FriendlyByteBuf p_63005_)
void
void
release()
setBlockState(int p_62987_, int p_62988_, int p_62989_, BlockState p_62990_)
setBlockState(int p_62992_, int p_62993_, int p_62994_, BlockState p_62995_, boolean p_62996_)
void
write(FriendlyByteBuf p_63012_)
-
Field Details
-
SECTION_WIDTH
public static final int SECTION_WIDTH- See Also:
- Constant Field Values
-
SECTION_HEIGHT
public static final int SECTION_HEIGHT- See Also:
- Constant Field Values
-
SECTION_SIZE
public static final int SECTION_SIZE- See Also:
- Constant Field Values
-
GLOBAL_BLOCKSTATE_PALETTE
-
bottomBlockY
private final int bottomBlockY -
nonEmptyBlockCount
private short nonEmptyBlockCount -
tickingBlockCount
private short tickingBlockCount -
tickingFluidCount
private short tickingFluidCount -
states
-
-
Constructor Details
-
LevelChunkSection
public LevelChunkSection(int p_62975_) -
LevelChunkSection
public LevelChunkSection(int p_62977_, short p_62978_, short p_62979_, short p_62980_)
-
-
Method Details
-
getBottomBlockY
public static int getBottomBlockY(int p_156459_) -
getBlockState
-
getFluidState
-
acquire
public void acquire() -
release
public void release() -
setBlockState
-
setBlockState
public BlockState setBlockState(int p_62992_, int p_62993_, int p_62994_, BlockState p_62995_, boolean p_62996_) -
isEmpty
public boolean isEmpty() -
isEmpty
-
isRandomlyTicking
public boolean isRandomlyTicking() -
isRandomlyTickingBlocks
public boolean isRandomlyTickingBlocks() -
isRandomlyTickingFluids
public boolean isRandomlyTickingFluids() -
bottomBlockY
public int bottomBlockY() -
recalcBlockCounts
public void recalcBlockCounts() -
getStates
-
read
-
write
-
getSerializedSize
public int getSerializedSize() -
maybeHas
-