Class Template.BasicPalette
- java.lang.Object
-
- net.minecraft.world.gen.feature.template.Template.BasicPalette
-
- All Implemented Interfaces:
java.lang.Iterable<BlockState>
- Enclosing class:
- Template
static class Template.BasicPalette extends java.lang.Object implements java.lang.Iterable<BlockState>
-
-
Field Summary
Fields Modifier and Type Field Description static BlockState
DEFAULT_BLOCK_STATE
private ObjectIntIdentityMap<BlockState>
ids
private int
lastId
-
Constructor Summary
Constructors Modifier Constructor Description private
BasicPalette()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addMapping(BlockState p_189956_1_, int p_189956_2_)
int
idFor(BlockState p_189954_1_)
java.util.Iterator<BlockState>
iterator()
BlockState
stateFor(int p_189955_1_)
-
-
-
Field Detail
-
DEFAULT_BLOCK_STATE
public static final BlockState DEFAULT_BLOCK_STATE
-
ids
private final ObjectIntIdentityMap<BlockState> ids
-
lastId
private int lastId
-
-
Method Detail
-
idFor
public int idFor(BlockState p_189954_1_)
-
stateFor
@Nullable public BlockState stateFor(int p_189955_1_)
-
iterator
public java.util.Iterator<BlockState> iterator()
- Specified by:
iterator
in interfacejava.lang.Iterable<BlockState>
-
addMapping
public void addMapping(BlockState p_189956_1_, int p_189956_2_)
-
-