Package net.minecraft.world.chunk
Class ChunkSection
java.lang.Object
net.minecraft.world.chunk.ChunkSection
-
Field Summary
Modifier and TypeFieldDescriptionprivate final int
private static final IPalette<BlockState>
private short
private final PalettedContainer<BlockState>
private short
private short
-
Constructor Summary
ConstructorDescriptionChunkSection
(int p_i49943_1_) ChunkSection
(int p_i49944_1_, short p_i49944_2_, short p_i49944_3_, short p_i49944_4_) -
Method Summary
Modifier and TypeMethodDescriptionvoid
acquire()
int
getBlockState
(int p_177485_1_, int p_177485_2_, int p_177485_3_) getFluidState
(int p_206914_1_, int p_206914_2_, int p_206914_3_) int
boolean
isEmpty()
static boolean
isEmpty
(ChunkSection p_222628_0_) boolean
boolean
boolean
boolean
maybeHas
(Predicate<BlockState> p_235962_1_) void
read
(PacketBuffer p_222634_1_) void
void
release()
setBlockState
(int p_222629_1_, int p_222629_2_, int p_222629_3_, BlockState p_222629_4_) 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 Details
-
GLOBAL_BLOCKSTATE_PALETTE
-
bottomBlockY
private final int bottomBlockY -
nonEmptyBlockCount
private short nonEmptyBlockCount -
tickingBlockCount
private short tickingBlockCount -
tickingFluidCount
private short tickingFluidCount -
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
-
getFluidState
-
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
-
isRandomlyTicking
public boolean isRandomlyTicking() -
isRandomlyTickingBlocks
public boolean isRandomlyTickingBlocks() -
isRandomlyTickingFluids
public boolean isRandomlyTickingFluids() -
bottomBlockY
public int bottomBlockY() -
recalcBlockCounts
public void recalcBlockCounts() -
getStates
-
read
-
write
-
getSerializedSize
public int getSerializedSize() -
maybeHas
-