Class StructureTemplate.SimplePalette
java.lang.Object
net.minecraft.world.level.levelgen.structure.templatesystem.StructureTemplate.SimplePalette
- All Implemented Interfaces:
Iterable<BlockState>
- Enclosing class:
StructureTemplate
-
Field Summary
Modifier and TypeFieldDescriptionstatic final BlockState
private final IdMapper
<BlockState> private int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addMapping
(BlockState p_74672_, int p_74673_) int
idFor
(BlockState p_74670_) iterator()
stateFor
(int p_74668_) 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
-
DEFAULT_BLOCK_STATE
-
ids
-
lastId
private int lastId
-
-
Constructor Details
-
SimplePalette
SimplePalette()
-
-
Method Details
-
idFor
-
stateFor
-
iterator
- Specified by:
iterator
in interfaceIterable<BlockState>
-
addMapping
-