Package net.minecraft.world.level.chunk
Class LevelChunkSection
java.lang.Object
net.minecraft.world.level.chunk.LevelChunkSection
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
private PalettedContainerRO<Holder<Biome>>
private final int
private short
static final int
static final int
static final int
private final PalettedContainer<BlockState>
private short
private short
-
Constructor Summary
ConstructorDescriptionLevelChunkSection
(int p_188001_, Registry<Biome> p_188002_) LevelChunkSection
(int p_238255_, PalettedContainer<BlockState> p_238256_, PalettedContainerRO<Holder<Biome>> p_238257_) -
Method Summary
Modifier and TypeMethodDescriptionvoid
acquire()
int
void
fillBiomesFromNoise
(BiomeResolver p_188004_, Climate.Sampler p_188005_, int p_188006_, int p_188007_) 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_) getNoiseBiome
(int p_204434_, int p_204435_, int p_204436_) int
boolean
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:
-
SECTION_HEIGHT
public static final int SECTION_HEIGHT- See Also:
-
SECTION_SIZE
public static final int SECTION_SIZE- See Also:
-
BIOME_CONTAINER_BITS
public static final int BIOME_CONTAINER_BITS- See Also:
-
bottomBlockY
private final int bottomBlockY -
nonEmptyBlockCount
private short nonEmptyBlockCount -
tickingBlockCount
private short tickingBlockCount -
tickingFluidCount
private short tickingFluidCount -
states
-
biomes
-
-
Constructor Details
-
LevelChunkSection
public LevelChunkSection(int p_238255_, PalettedContainer<BlockState> p_238256_, PalettedContainerRO<Holder<Biome>> p_238257_) -
LevelChunkSection
-
-
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_) -
hasOnlyAir
public boolean hasOnlyAir() -
isRandomlyTicking
public boolean isRandomlyTicking() -
isRandomlyTickingBlocks
public boolean isRandomlyTickingBlocks() -
isRandomlyTickingFluids
public boolean isRandomlyTickingFluids() -
bottomBlockY
public int bottomBlockY() -
recalcBlockCounts
public void recalcBlockCounts() -
getStates
-
getBiomes
-
read
-
write
-
getSerializedSize
public int getSerializedSize() -
maybeHas
-
getNoiseBiome
-
fillBiomesFromNoise
public void fillBiomesFromNoise(BiomeResolver p_188004_, Climate.Sampler p_188005_, int p_188006_, int p_188007_)
-