public interface Palette
| Modifier and Type | Method and Description |
|---|---|
void |
addId(int id)
Adds a new id to the palette.
|
void |
clear()
Clears the palette.
|
int[] |
getValues() |
int |
idAt(int sectionCoordinate)
Returns the value of the given chunk coordinate.
|
default int |
idAt(int sectionX,
int sectionY,
int sectionZ)
Returns the value of the section coordinate.
|
int |
idByIndex(int index)
Returns the id assigned to the given palette index.
|
int |
index(int x,
int y,
int z)
Returns the packet section index of the given coordinates.
|
int |
paletteIndexAt(int packedCoordinate)
Returns the palette index of the given section index.
|
void |
replaceId(int oldId,
int newId)
Replaces an id in the palette.
|
void |
setIdAt(int sectionCoordinate,
int id)
Set a value in the chunk section.
|
default void |
setIdAt(int sectionX,
int sectionY,
int sectionZ,
int id)
Set a value in the chunk section.
|
void |
setIdByIndex(int index,
int id)
Assigns an id assigned to the given palette index.
|
void |
setPaletteIndexAt(int sectionCoordinate,
int index)
Sets the index of the given section coordinate.
|
int |
size()
Returns the size of the palette.
|
int index(int x,
int y,
int z)
x - xy - yz - zint idAt(int sectionCoordinate)
sectionCoordinate - section index within the sectiondefault int idAt(int sectionX,
int sectionY,
int sectionZ)
sectionX - section xsectionY - section ysectionZ - section zvoid setIdAt(int sectionCoordinate,
int id)
sectionCoordinate - section index within the sectionid - id valuedefault void setIdAt(int sectionX,
int sectionY,
int sectionZ,
int id)
sectionX - section xsectionY - section ysectionZ - section zid - id valueint idByIndex(int index)
index - palette indexvoid setIdByIndex(int index,
int id)
index - palette indexid - id valueint paletteIndexAt(int packedCoordinate)
packedCoordinate - section indexvoid setPaletteIndexAt(int sectionCoordinate,
int index)
sectionCoordinate - section indexindex - palette indexvoid addId(int id)
id - id valuevoid replaceId(int oldId,
int newId)
oldId - old idnewId - new idint size()
void clear()
int[] getValues()