Package net.minecraft.structure
Class Structure.Palette
java.lang.Object
net.minecraft.structure.Structure.Palette
- All Implemented Interfaces:
Iterable<BlockState>
- Enclosing class:
- Structure
static class Structure.Palette extends Object implements Iterable<BlockState>
-
Field Summary
Fields Modifier and Type Field Description static BlockState
AIR
private int
currentIndex
private IdList<BlockState>
ids
-
Constructor Summary
Constructors Modifier Constructor Description private
Palette()
-
Method Summary
Modifier and Type Method Description int
getId(BlockState state)
BlockState
getState(int id)
Iterator<BlockState>
iterator()
void
set(BlockState state, int id)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
AIR
-
ids
-
currentIndex
private int currentIndex
-
-
Constructor Details
-
Palette
private Palette()
-
-
Method Details
-
getId
-
getState
-
iterator
- Specified by:
iterator
in interfaceIterable<BlockState>
-
set
-