public interface ChunkSection
Modifier and Type | Field and Description |
---|---|
static int |
BIOME_SIZE
Size (dimensions) of biomes in a chunks section.
|
static int |
SIZE
Size (dimensions) of blocks in a chunks section.
|
Modifier and Type | Method and Description |
---|---|
default void |
addPaletteEntry(PaletteType type,
int id) |
@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) |
default boolean |
hasLight()
Returns whether this section holds light data.
|
static int |
index(int x,
int y,
int z) |
default void |
setFlatBlock(int idx,
int id) |
void |
setLight(@Nullable ChunkSectionLight light) |
void |
setNonAirBlocksCount(int nonAirBlocksCount) |
void |
setPalette(PaletteType type,
Palette blockPalette) |
default void |
setPaletteIndex(int idx,
int index) |
static int |
xFromIndex(int idx) |
static int |
yFromIndex(int idx) |
static int |
zFromIndex(int idx) |
static final int SIZE
static final int BIOME_SIZE
static int index(int x, int y, int z)
static int xFromIndex(int idx)
static int yFromIndex(int idx)
static int zFromIndex(int idx)
int getNonAirBlocksCount()
void setNonAirBlocksCount(int nonAirBlocksCount)
default boolean hasLight()
@Nullable ChunkSectionLight getLight()
void setLight(@Nullable ChunkSectionLight light)
@Nullable Palette getPalette(PaletteType type)
void setPalette(PaletteType type, Palette blockPalette)
default void setFlatBlock(int idx, int id)
default void setPaletteIndex(int idx, int index)
default void addPaletteEntry(PaletteType type, int id)