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 short
static final int
static final int
static final int
private final PalettedContainer<BlockState>
private short
private short
-
Constructor Summary
ConstructorDescriptionLevelChunkSection
(Registry<Biome> p_282873_) LevelChunkSection
(PalettedContainer<BlockState> p_282846_, PalettedContainerRO<Holder<Biome>> p_281695_) -
Method Summary
Modifier and TypeMethodDescriptionvoid
acquire()
void
fillBiomesFromNoise
(BiomeResolver p_282075_, Climate.Sampler p_283084_, int p_282310_, int p_281510_, int p_283057_) getBlockState
(int p_62983_, int p_62984_, int p_62985_) 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
readBiomes
(FriendlyByteBuf p_275669_) 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:
-
nonEmptyBlockCount
private short nonEmptyBlockCount -
tickingBlockCount
private short tickingBlockCount -
tickingFluidCount
private short tickingFluidCount -
states
-
biomes
-
-
Constructor Details
-
LevelChunkSection
public LevelChunkSection(PalettedContainer<BlockState> p_282846_, PalettedContainerRO<Holder<Biome>> p_281695_) -
LevelChunkSection
-
-
Method Details
-
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() -
recalcBlockCounts
public void recalcBlockCounts() -
getStates
-
getBiomes
-
read
-
readBiomes
-
write
-
getSerializedSize
public int getSerializedSize() -
maybeHas
-
getNoiseBiome
-
fillBiomesFromNoise
public void fillBiomesFromNoise(BiomeResolver p_282075_, Climate.Sampler p_283084_, int p_282310_, int p_281510_, int p_283057_)
-