Package net.minecraft.world.chunk
Class ChunkSection
- java.lang.Object
-
- net.minecraft.world.chunk.ChunkSection
-
public class ChunkSection extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private int
bottomBlockY
private static IPalette<BlockState>
GLOBAL_BLOCKSTATE_PALETTE
private short
nonEmptyBlockCount
private PalettedContainer<BlockState>
states
private short
tickingBlockCount
private short
tickingFluidCount
-
Constructor Summary
Constructors Constructor Description ChunkSection(int p_i49943_1_)
ChunkSection(int p_i49944_1_, short p_i49944_2_, short p_i49944_3_, short p_i49944_4_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
acquire()
int
bottomBlockY()
BlockState
getBlockState(int p_177485_1_, int p_177485_2_, int p_177485_3_)
FluidState
getFluidState(int p_206914_1_, int p_206914_2_, int p_206914_3_)
int
getSerializedSize()
PalettedContainer<BlockState>
getStates()
boolean
isEmpty()
static boolean
isEmpty(ChunkSection p_222628_0_)
boolean
isRandomlyTicking()
boolean
isRandomlyTickingBlocks()
boolean
isRandomlyTickingFluids()
boolean
maybeHas(java.util.function.Predicate<BlockState> p_235962_1_)
void
read(PacketBuffer p_222634_1_)
void
recalcBlockCounts()
void
release()
BlockState
setBlockState(int p_222629_1_, int p_222629_2_, int p_222629_3_, BlockState p_222629_4_)
BlockState
setBlockState(int p_177484_1_, int p_177484_2_, int p_177484_3_, BlockState p_177484_4_, boolean p_177484_5_)
void
write(PacketBuffer p_222630_1_)
-
-
-
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
-
states
private final PalettedContainer<BlockState> states
-
-
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()
-
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(java.util.function.Predicate<BlockState> p_235962_1_)
-
-