Class StructureTemplate.Palette

java.lang.Object
net.minecraft.structure.StructureTemplate.Palette
All Implemented Interfaces:
Iterable<BlockState>
Enclosing class:
StructureTemplate

private static class StructureTemplate.Palette extends Object implements Iterable<BlockState>
Mappings:
Namespace Name
official edg$b
intermediary net/minecraft/class_3499$class_3500
named net/minecraft/structure/StructureTemplate$Palette
  • Field Details

    • AIR

      public static final BlockState AIR
      Mappings:
      Namespace Name Mixin selector
      official a Ledg$b;a:Ldjh;
      intermediary field_15590 Lnet/minecraft/class_3499$class_3500;field_15590:Lnet/minecraft/class_2680;
      named AIR Lnet/minecraft/structure/StructureTemplate$Palette;AIR:Lnet/minecraft/block/BlockState;
    • ids

      private final IdList<BlockState> ids
      Mappings:
      Namespace Name Mixin selector
      official b Ledg$b;b:Lin;
      intermediary field_15591 Lnet/minecraft/class_3499$class_3500;field_15591:Lnet/minecraft/class_2361;
      named ids Lnet/minecraft/structure/StructureTemplate$Palette;ids:Lnet/minecraft/util/collection/IdList;
    • currentIndex

      private int currentIndex
      Mappings:
      Namespace Name Mixin selector
      official c Ledg$b;c:I
      intermediary field_15592 Lnet/minecraft/class_3499$class_3500;field_15592:I
      named currentIndex Lnet/minecraft/structure/StructureTemplate$Palette;currentIndex:I
  • Constructor Details

    • Palette

      Palette()
  • Method Details

    • getId

      public int getId(BlockState state)
      Mappings:
      Namespace Name Mixin selector
      official a Ledg$b;a(Ldjh;)I
      intermediary method_15187 Lnet/minecraft/class_3499$class_3500;method_15187(Lnet/minecraft/class_2680;)I
      named getId Lnet/minecraft/structure/StructureTemplate$Palette;getId(Lnet/minecraft/block/BlockState;)I
    • getState

      @Nullable public @Nullable BlockState getState(int id)
      Mappings:
      Namespace Name Mixin selector
      official a Ledg$b;a(I)Ldjh;
      intermediary method_15185 Lnet/minecraft/class_3499$class_3500;method_15185(I)Lnet/minecraft/class_2680;
      named getState Lnet/minecraft/structure/StructureTemplate$Palette;getState(I)Lnet/minecraft/block/BlockState;
    • iterator

      public Iterator<BlockState> iterator()
      Specified by:
      iterator in interface Iterable<BlockState>
    • set

      public void set(BlockState state, int id)
      Mappings:
      Namespace Name Mixin selector
      official a Ledg$b;a(Ldjh;I)V
      intermediary method_15186 Lnet/minecraft/class_3499$class_3500;method_15186(Lnet/minecraft/class_2680;I)V
      named set Lnet/minecraft/structure/StructureTemplate$Palette;set(Lnet/minecraft/block/BlockState;I)V