public class ChunkSectionImpl extends Object implements ChunkSection
BIOME_SIZE, SIZE
Constructor and Description |
---|
ChunkSectionImpl() |
ChunkSectionImpl(boolean holdsLight) |
ChunkSectionImpl(boolean holdsLight,
int expectedPaletteLength) |
Modifier and Type | Method and Description |
---|---|
@Nullable ChunkSectionLight |
getLight()
Returns the light of the chunk section.
|
int |
getNonAirBlocksCount()
Returns the number of non-air blocks in this section.
|
@Nullable Palette |
getPalette(PaletteType type) |
void |
setLight(@Nullable ChunkSectionLight light) |
void |
setNonAirBlocksCount(int nonAirBlocksCount) |
void |
setPalette(PaletteType type,
Palette blockPalette) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addPaletteEntry, hasLight, index, setFlatBlock, setPaletteIndex, xFromIndex, yFromIndex, zFromIndex
public ChunkSectionImpl()
public ChunkSectionImpl(boolean holdsLight)
public ChunkSectionImpl(boolean holdsLight, int expectedPaletteLength)
public int getNonAirBlocksCount()
ChunkSection
getNonAirBlocksCount
in interface ChunkSection
public void setNonAirBlocksCount(int nonAirBlocksCount)
setNonAirBlocksCount
in interface ChunkSection
public @Nullable ChunkSectionLight getLight()
ChunkSection
getLight
in interface ChunkSection
public void setLight(@Nullable ChunkSectionLight light)
setLight
in interface ChunkSection
public @Nullable Palette getPalette(PaletteType type)
getPalette
in interface ChunkSection
public void setPalette(PaletteType type, Palette blockPalette)
setPalette
in interface ChunkSection