Class LevelChunkSection

java.lang.Object
net.minecraft.world.level.chunk.LevelChunkSection

public class LevelChunkSection extends Object
  • Field Details

  • Constructor Details

  • Method Details

    • getBlockState

      public BlockState getBlockState(int x, int y, int z)
    • getFluidState

      public FluidState getFluidState(int x, int y, int z)
    • acquire

      public void acquire()
    • release

      public void release()
    • setBlockState

      public BlockState setBlockState(int x, int y, int z, BlockState state)
    • setBlockState

      public BlockState setBlockState(int x, int y, int z, BlockState state, boolean useLocks)
    • hasOnlyAir

      public boolean hasOnlyAir()
    • isRandomlyTicking

      public boolean isRandomlyTicking()
    • isRandomlyTickingBlocks

      public boolean isRandomlyTickingBlocks()
    • isRandomlyTickingFluids

      public boolean isRandomlyTickingFluids()
    • recalcBlockCounts

      public void recalcBlockCounts()
    • getStates

      public PalettedContainer<BlockState> getStates()
    • getBiomes

      public PalettedContainerRO<Holder<Biome>> getBiomes()
    • read

      public void read(FriendlyByteBuf buffer)
    • readBiomes

      public void readBiomes(FriendlyByteBuf buffer)
    • write

      public void write(FriendlyByteBuf buffer)
    • getSerializedSize

      public int getSerializedSize()
    • maybeHas

      public boolean maybeHas(Predicate<BlockState> predicate)
      Returns:
      true if this section has any states matching the given predicate. As the internal representation uses a Palette, this is more efficient than looping through every position in the section, or indeed the chunk.
    • getNoiseBiome

      public Holder<Biome> getNoiseBiome(int x, int y, int z)
    • fillBiomesFromNoise

      public void fillBiomesFromNoise(BiomeResolver biomeResolver, Climate.Sampler climateSampler, int x, int y, int z)