Class ChunkSection

java.lang.Object
net.minecraft.world.chunk.ChunkSection

public class ChunkSection extends Object
  • Field Details

    • GLOBAL_BLOCKSTATE_PALETTE

      private static final IPalette<BlockState> GLOBAL_BLOCKSTATE_PALETTE
    • bottomBlockY

      private final int bottomBlockY
    • nonEmptyBlockCount

      private short nonEmptyBlockCount
    • tickingBlockCount

      private short tickingBlockCount
    • tickingFluidCount

      private short tickingFluidCount
    • states

      private final PalettedContainer<BlockState> states
  • Constructor Details

    • ChunkSection

      public ChunkSection(int p_i49943_1_)
    • ChunkSection

      public ChunkSection(int p_i49944_1_, short p_i49944_2_, short p_i49944_3_, short p_i49944_4_)
  • Method Details

    • getBlockState

      public BlockState getBlockState(int p_177485_1_, int p_177485_2_, int p_177485_3_)
    • getFluidState

      public FluidState getFluidState(int p_206914_1_, int p_206914_2_, int p_206914_3_)
    • acquire

      public void acquire()
    • release

      public void release()
    • setBlockState

      public BlockState setBlockState(int p_222629_1_, int p_222629_2_, int p_222629_3_, BlockState p_222629_4_)
    • setBlockState

      public BlockState setBlockState(int p_177484_1_, int p_177484_2_, int p_177484_3_, BlockState p_177484_4_, boolean p_177484_5_)
    • isEmpty

      public boolean isEmpty()
    • isEmpty

      public static boolean isEmpty(@Nullable ChunkSection p_222628_0_)
    • isRandomlyTicking

      public boolean isRandomlyTicking()
    • isRandomlyTickingBlocks

      public boolean isRandomlyTickingBlocks()
    • isRandomlyTickingFluids

      public boolean isRandomlyTickingFluids()
    • bottomBlockY

      public int bottomBlockY()
    • recalcBlockCounts

      public void recalcBlockCounts()
    • getStates

      public PalettedContainer<BlockState> getStates()
    • read

      public void read(PacketBuffer p_222634_1_)
    • write

      public void write(PacketBuffer p_222630_1_)
    • getSerializedSize

      public int getSerializedSize()
    • maybeHas

      public boolean maybeHas(Predicate<BlockState> p_235962_1_)