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, waitaddPaletteEntry, hasLight, index, setFlatBlock, setPaletteIndex, xFromIndex, yFromIndex, zFromIndexpublic ChunkSectionImpl()
public ChunkSectionImpl(boolean holdsLight)
public ChunkSectionImpl(boolean holdsLight,
int expectedPaletteLength)
public int getNonAirBlocksCount()
ChunkSectiongetNonAirBlocksCount in interface ChunkSectionpublic void setNonAirBlocksCount(int nonAirBlocksCount)
setNonAirBlocksCount in interface ChunkSectionpublic @Nullable ChunkSectionLight getLight()
ChunkSectiongetLight in interface ChunkSectionpublic void setLight(@Nullable ChunkSectionLight light)
setLight in interface ChunkSectionpublic @Nullable Palette getPalette(PaletteType type)
getPalette in interface ChunkSectionpublic void setPalette(PaletteType type, Palette blockPalette)
setPalette in interface ChunkSection