类 Structure.Palette
- java.lang.Object
-
- net.minecraft.structure.Structure.Palette
-
- 所有已实现的接口:
Iterable<BlockState>
- 封闭类:
- Structure
static class Structure.Palette extends Object implements Iterable<BlockState>
- Mappings:
Namespace Name official dbu$bintermediary net/minecraft/class_3499$class_3500named net/minecraft/structure/Structure$Palette
-
-
字段概要
字段 修饰符和类型 字段 说明 static BlockStateAIRprivate intcurrentIndexprivate IdList<BlockState>ids
-
构造器概要
构造器 限定符 构造器 说明 privatePalette()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 intgetId(BlockState state)@Nullable BlockStategetState(int id)Iterator<BlockState>iterator()voidset(BlockState state, int id)-
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
从接口继承的方法 java.lang.Iterable
forEach, spliterator
-
-
-
-
字段详细资料
-
AIR
public static final BlockState AIR
- Mappings:
Namespace Name Mixin selector official aLdbu$b;a:Lcjr;intermediary field_15590Lnet/minecraft/class_3499$class_3500;field_15590:Lnet/minecraft/class_2680;named AIRLnet/minecraft/structure/Structure$Palette;AIR:Lnet/minecraft/block/BlockState;
-
ids
private final IdList<BlockState> ids
- Mappings:
Namespace Name Mixin selector official bLdbu$b;b:Lgl;intermediary field_15591Lnet/minecraft/class_3499$class_3500;field_15591:Lnet/minecraft/class_2361;named idsLnet/minecraft/structure/Structure$Palette;ids:Lnet/minecraft/util/collection/IdList;
-
currentIndex
private int currentIndex
- Mappings:
Namespace Name Mixin selector official cLdbu$b;c:Iintermediary field_15592Lnet/minecraft/class_3499$class_3500;field_15592:Inamed currentIndexLnet/minecraft/structure/Structure$Palette;currentIndex:I
-
-
方法详细资料
-
getId
public int getId(BlockState state)
- Mappings:
Namespace Name Mixin selector official aLdbu$b;a(Lcjr;)Iintermediary method_15187Lnet/minecraft/class_3499$class_3500;method_15187(Lnet/minecraft/class_2680;)Inamed getIdLnet/minecraft/structure/Structure$Palette;getId(Lnet/minecraft/block/BlockState;)I
-
getState
@Nullable public @Nullable BlockState getState(int id)
- Mappings:
Namespace Name Mixin selector official aLdbu$b;a(I)Lcjr;intermediary method_15185Lnet/minecraft/class_3499$class_3500;method_15185(I)Lnet/minecraft/class_2680;named getStateLnet/minecraft/structure/Structure$Palette;getState(I)Lnet/minecraft/block/BlockState;
-
iterator
public Iterator<BlockState> iterator()
- 指定者:
iterator在接口中Iterable<BlockState>- Mappings:
Namespace Name Mixin selector official iteratorLdbu$b;iterator()Ljava/util/Iterator;intermediary iteratorLnet/minecraft/class_3499$class_3500;iterator()Ljava/util/Iterator;named iteratorLnet/minecraft/structure/Structure$Palette;iterator()Ljava/util/Iterator;
-
set
public void set(BlockState state, int id)
- Mappings:
Namespace Name Mixin selector official aLdbu$b;a(Lcjr;I)Vintermediary method_15186Lnet/minecraft/class_3499$class_3500;method_15186(Lnet/minecraft/class_2680;I)Vnamed setLnet/minecraft/structure/Structure$Palette;set(Lnet/minecraft/block/BlockState;I)V
-
-