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>
- Mappings:
Namespace Name official cyo$b
intermediary net/minecraft/class_3499$class_3500
named net/minecraft/structure/Structure$Palette
-
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
- Mappings:
Namespace Name Mixin selector official a
Lcyo$b;a:Lcht;
intermediary field_15590
Lnet/minecraft/class_3499$class_3500;field_15590:Lnet/minecraft/class_2680;
named AIR
Lnet/minecraft/structure/Structure$Palette;AIR:Lnet/minecraft/block/BlockState;
-
ids
- Mappings:
Namespace Name Mixin selector official b
Lcyo$b;b:Lgh;
intermediary field_15591
Lnet/minecraft/class_3499$class_3500;field_15591:Lnet/minecraft/class_2361;
named ids
Lnet/minecraft/structure/Structure$Palette;ids:Lnet/minecraft/util/collection/IdList;
-
currentIndex
private int currentIndex- Mappings:
Namespace Name Mixin selector official c
Lcyo$b;c:I
intermediary field_15592
Lnet/minecraft/class_3499$class_3500;field_15592:I
named currentIndex
Lnet/minecraft/structure/Structure$Palette;currentIndex:I
-
-
Constructor Details
-
Palette
private Palette()
-
-
Method Details
-
getId
- Mappings:
Namespace Name Mixin selector official a
Lcyo$b;a(Lcht;)I
intermediary method_15187
Lnet/minecraft/class_3499$class_3500;method_15187(Lnet/minecraft/class_2680;)I
named getId
Lnet/minecraft/structure/Structure$Palette;getId(Lnet/minecraft/block/BlockState;)I
-
getState
- Mappings:
Namespace Name Mixin selector official a
Lcyo$b;a(I)Lcht;
intermediary method_15185
Lnet/minecraft/class_3499$class_3500;method_15185(I)Lnet/minecraft/class_2680;
named getState
Lnet/minecraft/structure/Structure$Palette;getState(I)Lnet/minecraft/block/BlockState;
-
iterator
- Specified by:
iterator
in interfaceIterable<BlockState>
- Mappings:
Namespace Name Mixin selector official iterator
Lcyo$b;iterator()Ljava/util/Iterator;
intermediary iterator
Lnet/minecraft/class_3499$class_3500;iterator()Ljava/util/Iterator;
named iterator
Lnet/minecraft/structure/Structure$Palette;iterator()Ljava/util/Iterator;
-
set
- Mappings:
Namespace Name Mixin selector official a
Lcyo$b;a(Lcht;I)V
intermediary method_15186
Lnet/minecraft/class_3499$class_3500;method_15186(Lnet/minecraft/class_2680;I)V
named set
Lnet/minecraft/structure/Structure$Palette;set(Lnet/minecraft/block/BlockState;I)V
-