枚举 ChestType
- java.lang.Object
-
- java.lang.Enum<ChestType>
-
- net.minecraft.block.enums.ChestType
-
- 所有已实现的接口:
Serializable,Comparable<ChestType>,StringIdentifiable
public enum ChestType extends Enum<ChestType> implements StringIdentifiable
- Mappings:
Namespace Name official ckjintermediary net/minecraft/class_2745named net/minecraft/block/enums/ChestType
-
-
方法概要
所有方法 静态方法 实例方法 具体方法 修饰符和类型 方法 说明 StringasString()ChestTypegetOpposite()static ChestTypevalueOf(String name)返回带有指定名称的该类型的枚举常量。static ChestType[]values()按照声明该枚举类型的常量的顺序, 返回 包含这些常量的数组。
-
-
-
枚举常量详细资料
-
SINGLE
public static final ChestType SINGLE
- Mappings:
Namespace Name Mixin selector official aLckj;a:Lckj;intermediary field_12569Lnet/minecraft/class_2745;field_12569:Lnet/minecraft/class_2745;named SINGLELnet/minecraft/block/enums/ChestType;SINGLE:Lnet/minecraft/block/enums/ChestType;
-
LEFT
public static final ChestType LEFT
- Mappings:
Namespace Name Mixin selector official bLckj;b:Lckj;intermediary field_12574Lnet/minecraft/class_2745;field_12574:Lnet/minecraft/class_2745;named LEFTLnet/minecraft/block/enums/ChestType;LEFT:Lnet/minecraft/block/enums/ChestType;
-
RIGHT
public static final ChestType RIGHT
- Mappings:
Namespace Name Mixin selector official cLckj;c:Lckj;intermediary field_12571Lnet/minecraft/class_2745;field_12571:Lnet/minecraft/class_2745;named RIGHTLnet/minecraft/block/enums/ChestType;RIGHT:Lnet/minecraft/block/enums/ChestType;
-
-
字段详细资料
-
VALUES
public static final ChestType[] VALUES
- Mappings:
Namespace Name Mixin selector official dLckj;d:[Lckj;intermediary field_12570Lnet/minecraft/class_2745;field_12570:[Lnet/minecraft/class_2745;named VALUESLnet/minecraft/block/enums/ChestType;VALUES:[Lnet/minecraft/block/enums/ChestType;
-
name
private final String name
- Mappings:
Namespace Name Mixin selector official eLckj;e:Ljava/lang/String;intermediary field_12572Lnet/minecraft/class_2745;field_12572:Ljava/lang/String;named nameLnet/minecraft/block/enums/ChestType;name:Ljava/lang/String;
-
opposite
private final int opposite
- Mappings:
Namespace Name Mixin selector official fLckj;f:Iintermediary field_12568Lnet/minecraft/class_2745;field_12568:Inamed oppositeLnet/minecraft/block/enums/ChestType;opposite:I
-
-
构造器详细资料
-
ChestType
private ChestType(String name, int opposite)
- Mappings:
Namespace Name Mixin selector official <init>Lckj;<init>(Ljava/lang/String;ILjava/lang/String;I)Vintermediary <init>Lnet/minecraft/class_2745;<init>(Ljava/lang/String;ILjava/lang/String;I)Vnamed <init>Lnet/minecraft/block/enums/ChestType;<init>(Ljava/lang/String;ILjava/lang/String;I)V
-
-
方法详细资料
-
values
public static ChestType[] values()
按照声明该枚举类型的常量的顺序, 返回 包含这些常量的数组。该方法可用于迭代 常量, 如下所示:for (ChestType c : ChestType.values()) System.out.println(c);
- 返回:
- 按照声明该枚举类型的常量的顺序返回的包含这些常量的数组
-
valueOf
public static ChestType valueOf(String name)
返回带有指定名称的该类型的枚举常量。 字符串必须与用于声明该类型的枚举常量的 标识符完全匹配。(不允许有多余 的空格字符。)- 参数:
name- 要返回的枚举常量的名称。- 返回:
- 返回带有指定名称的枚举常量
- 抛出:
IllegalArgumentException- 如果该枚举类型没有带有指定名称的常量NullPointerException- 如果参数为空值
-
asString
public String asString()
- 指定者:
asString在接口中StringIdentifiable- Mappings:
Namespace Name Mixin selector official cLagz;c()Ljava/lang/String;intermediary method_15434Lnet/minecraft/class_3542;method_15434()Ljava/lang/String;named asStringLnet/minecraft/util/StringIdentifiable;asString()Ljava/lang/String;
-
getOpposite
public ChestType getOpposite()
- Mappings:
Namespace Name Mixin selector official aLckj;a()Lckj;intermediary method_11824Lnet/minecraft/class_2745;method_11824()Lnet/minecraft/class_2745;named getOppositeLnet/minecraft/block/enums/ChestType;getOpposite()Lnet/minecraft/block/enums/ChestType;
-
-