Class ChunkSection


  • public class ChunkSection
    extends java.lang.Object
    • Field Detail

      • 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
    • Constructor Detail

      • 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 Detail

      • 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()
      • getSerializedSize

        public int getSerializedSize()
      • maybeHas

        public boolean maybeHas​(java.util.function.Predicate<BlockState> p_235962_1_)