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
FieldsModifier and TypeFieldDescriptionstatic final BlockStateprivate final IdMapper<BlockState> private int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddMapping(BlockState state, int id) intidFor(BlockState state) iterator()stateFor(int index) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Iterable
forEach, spliterator
-
Field Details
-
DEFAULT_BLOCK_STATE
-
ids
-
lastId
private int lastId
-
-
Constructor Details
-
SimplePalette
private SimplePalette()
-
-
Method Details
-
idFor
-
stateFor
-
iterator
- Specified by:
iteratorin interfaceIterable<BlockState>
-
addMapping
-