static class Structure.Palette extends Object implements Iterable<BlockState>
Modifier and Type | Field and Description |
---|---|
static BlockState |
AIR |
private int |
currentIndex |
private IdList<BlockState> |
ids |
Modifier | Constructor and Description |
---|---|
private |
Palette() |
Modifier and Type | Method and Description |
---|---|
int |
getId(BlockState state) |
BlockState |
getState(int id) |
Iterator<BlockState> |
iterator() |
void |
set(BlockState state,
int id) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public static final BlockState AIR
private final IdList<BlockState> ids
private int currentIndex
public int getId(BlockState state)
@Nullable public BlockState getState(int id)
public Iterator<BlockState> iterator()
iterator
in interface Iterable<BlockState>
public void set(BlockState state, int id)