Class LevelChunkSection

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

public class LevelChunkSection extends Object
  • Field Details

    • SECTION_WIDTH

      public static final int SECTION_WIDTH
      See Also:
      Constant Field Values
    • SECTION_HEIGHT

      public static final int SECTION_HEIGHT
      See Also:
      Constant Field Values
    • SECTION_SIZE

      public static final int SECTION_SIZE
      See Also:
      Constant Field Values
    • GLOBAL_BLOCKSTATE_PALETTE

      private static final Palette<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

    • LevelChunkSection

      public LevelChunkSection(int p_62975_)
    • LevelChunkSection

      public LevelChunkSection(int p_62977_, short p_62978_, short p_62979_, short p_62980_)
  • Method Details

    • getBottomBlockY

      public static int getBottomBlockY(int p_156459_)
    • getBlockState

      public BlockState getBlockState(int p_62983_, int p_62984_, int p_62985_)
    • getFluidState

      public FluidState getFluidState(int p_63008_, int p_63009_, int p_63010_)
    • acquire

      public void acquire()
    • release

      public void release()
    • setBlockState

      public BlockState setBlockState(int p_62987_, int p_62988_, int p_62989_, BlockState p_62990_)
    • setBlockState

      public BlockState setBlockState(int p_62992_, int p_62993_, int p_62994_, BlockState p_62995_, boolean p_62996_)
    • isEmpty

      public boolean isEmpty()
    • isEmpty

      public static boolean isEmpty(@Nullable LevelChunkSection p_63001_)
    • 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(FriendlyByteBuf p_63005_)
    • write

      public void write(FriendlyByteBuf p_63012_)
    • getSerializedSize

      public int getSerializedSize()
    • maybeHas

      public boolean maybeHas(Predicate<BlockState> p_63003_)