枚举 ChestType

    • 枚举常量详细资料

      • SINGLE

        public static final ChestType SINGLE
        Mappings:
        Namespace Name Mixin selector
        official a Lckj;a:Lckj;
        intermediary field_12569 Lnet/minecraft/class_2745;field_12569:Lnet/minecraft/class_2745;
        named SINGLE Lnet/minecraft/block/enums/ChestType;SINGLE:Lnet/minecraft/block/enums/ChestType;
      • LEFT

        public static final ChestType LEFT
        Mappings:
        Namespace Name Mixin selector
        official b Lckj;b:Lckj;
        intermediary field_12574 Lnet/minecraft/class_2745;field_12574:Lnet/minecraft/class_2745;
        named LEFT Lnet/minecraft/block/enums/ChestType;LEFT:Lnet/minecraft/block/enums/ChestType;
      • RIGHT

        public static final ChestType RIGHT
        Mappings:
        Namespace Name Mixin selector
        official c Lckj;c:Lckj;
        intermediary field_12571 Lnet/minecraft/class_2745;field_12571:Lnet/minecraft/class_2745;
        named RIGHT Lnet/minecraft/block/enums/ChestType;RIGHT:Lnet/minecraft/block/enums/ChestType;
    • 字段详细资料

      • VALUES

        public static final ChestType[] VALUES
        Mappings:
        Namespace Name Mixin selector
        official d Lckj;d:[Lckj;
        intermediary field_12570 Lnet/minecraft/class_2745;field_12570:[Lnet/minecraft/class_2745;
        named VALUES Lnet/minecraft/block/enums/ChestType;VALUES:[Lnet/minecraft/block/enums/ChestType;
      • name

        private final String name
        Mappings:
        Namespace Name Mixin selector
        official e Lckj;e:Ljava/lang/String;
        intermediary field_12572 Lnet/minecraft/class_2745;field_12572:Ljava/lang/String;
        named name Lnet/minecraft/block/enums/ChestType;name:Ljava/lang/String;
      • opposite

        private final int opposite
        Mappings:
        Namespace Name Mixin selector
        official f Lckj;f:I
        intermediary field_12568 Lnet/minecraft/class_2745;field_12568:I
        named opposite Lnet/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)V
        intermediary <init> Lnet/minecraft/class_2745;<init>(Ljava/lang/String;ILjava/lang/String;I)V
        named <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 c Lagz;c()Ljava/lang/String;
        intermediary method_15434 Lnet/minecraft/class_3542;method_15434()Ljava/lang/String;
        named asString Lnet/minecraft/util/StringIdentifiable;asString()Ljava/lang/String;
      • getOpposite

        public ChestType getOpposite()
        Mappings:
        Namespace Name Mixin selector
        official a Lckj;a()Lckj;
        intermediary method_11824 Lnet/minecraft/class_2745;method_11824()Lnet/minecraft/class_2745;
        named getOpposite Lnet/minecraft/block/enums/ChestType;getOpposite()Lnet/minecraft/block/enums/ChestType;