| Constructor and Description |
|---|
ListPalette(int bitsPerEntry) |
ListPalette(int bitsPerEntry,
com.github.steveice10.packetlib.io.NetInput in) |
| Modifier and Type | Method and Description |
|---|---|
int |
idToState(int id)
Converts a storage ID to a block state.
|
int |
size()
Gets the number of block states known by this palette.
|
int |
stateToId(int state)
Converts a block state to a storage ID.
|
public ListPalette(int bitsPerEntry)
public ListPalette(int bitsPerEntry,
com.github.steveice10.packetlib.io.NetInput in)
throws IOException
IOExceptionpublic int size()
Palettepublic int stateToId(int state)
Palettepublic int idToState(int id)
PaletteCopyright © 2021. All rights reserved.