枚举 ResourcePackCompatibility

    • 枚举常量详细资料

      • TOO_OLD

        public static final ResourcePackCompatibility TOO_OLD
        Mappings:
        Namespace Name Mixin selector
        official a Lacz;a:Lacz;
        intermediary field_14223 Lnet/minecraft/class_3281;field_14223:Lnet/minecraft/class_3281;
        named TOO_OLD Lnet/minecraft/resource/ResourcePackCompatibility;TOO_OLD:Lnet/minecraft/resource/ResourcePackCompatibility;
      • TOO_NEW

        public static final ResourcePackCompatibility TOO_NEW
        Mappings:
        Namespace Name Mixin selector
        official b Lacz;b:Lacz;
        intermediary field_14220 Lnet/minecraft/class_3281;field_14220:Lnet/minecraft/class_3281;
        named TOO_NEW Lnet/minecraft/resource/ResourcePackCompatibility;TOO_NEW:Lnet/minecraft/resource/ResourcePackCompatibility;
      • COMPATIBLE

        public static final ResourcePackCompatibility COMPATIBLE
        Mappings:
        Namespace Name Mixin selector
        official c Lacz;c:Lacz;
        intermediary field_14224 Lnet/minecraft/class_3281;field_14224:Lnet/minecraft/class_3281;
        named COMPATIBLE Lnet/minecraft/resource/ResourcePackCompatibility;COMPATIBLE:Lnet/minecraft/resource/ResourcePackCompatibility;
    • 字段详细资料

      • notification

        private final Text notification
        Mappings:
        Namespace Name Mixin selector
        official d Lacz;d:Lon;
        intermediary field_14219 Lnet/minecraft/class_3281;field_14219:Lnet/minecraft/class_2561;
        named notification Lnet/minecraft/resource/ResourcePackCompatibility;notification:Lnet/minecraft/text/Text;
      • confirmMessage

        private final Text confirmMessage
        Mappings:
        Namespace Name Mixin selector
        official e Lacz;e:Lon;
        intermediary field_14222 Lnet/minecraft/class_3281;field_14222:Lnet/minecraft/class_2561;
        named confirmMessage Lnet/minecraft/resource/ResourcePackCompatibility;confirmMessage:Lnet/minecraft/text/Text;
    • 构造器详细资料

      • ResourcePackCompatibility

        private ResourcePackCompatibility​(String translationSuffix)
        Mappings:
        Namespace Name Mixin selector
        official <init> Lacz;<init>(Ljava/lang/String;ILjava/lang/String;)V
        intermediary <init> Lnet/minecraft/class_3281;<init>(Ljava/lang/String;ILjava/lang/String;)V
        named <init> Lnet/minecraft/resource/ResourcePackCompatibility;<init>(Ljava/lang/String;ILjava/lang/String;)V
    • 方法详细资料

      • values

        public static ResourcePackCompatibility[] values()
        按照声明该枚举类型的常量的顺序, 返回 包含这些常量的数组。该方法可用于迭代 常量, 如下所示:
        for (ResourcePackCompatibility c : ResourcePackCompatibility.values())
            System.out.println(c);
        
        返回:
        按照声明该枚举类型的常量的顺序返回的包含这些常量的数组
      • valueOf

        public static ResourcePackCompatibility valueOf​(String name)
        返回带有指定名称的该类型的枚举常量。 字符串必须与用于声明该类型的枚举常量的 标识符完全匹配。(不允许有多余 的空格字符。)
        参数:
        name - 要返回的枚举常量的名称。
        返回:
        返回带有指定名称的枚举常量
        抛出:
        IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量
        NullPointerException - 如果参数为空值
      • isCompatible

        public boolean isCompatible()
        Mappings:
        Namespace Name Mixin selector
        official a Lacz;a()Z
        intermediary method_14437 Lnet/minecraft/class_3281;method_14437()Z
        named isCompatible Lnet/minecraft/resource/ResourcePackCompatibility;isCompatible()Z
      • from

        public static ResourcePackCompatibility from​(int packVersion,
                                                     ResourceType type)
        Mappings:
        Namespace Name Mixin selector
        official a Lacz;a(ILaco;)Lacz;
        intermediary method_14436 Lnet/minecraft/class_3281;method_14436(ILnet/minecraft/class_3264;)Lnet/minecraft/class_3281;
        named from Lnet/minecraft/resource/ResourcePackCompatibility;from(ILnet/minecraft/resource/ResourceType;)Lnet/minecraft/resource/ResourcePackCompatibility;
      • from

        public static ResourcePackCompatibility from​(PackResourceMetadata metadata,
                                                     ResourceType type)
        Mappings:
        Namespace Name Mixin selector
        official a Lacz;a(Lacs;Laco;)Lacz;
        intermediary method_31439 Lnet/minecraft/class_3281;method_31439(Lnet/minecraft/class_3272;Lnet/minecraft/class_3264;)Lnet/minecraft/class_3281;
        named from Lnet/minecraft/resource/ResourcePackCompatibility;from(Lnet/minecraft/resource/metadata/PackResourceMetadata;Lnet/minecraft/resource/ResourceType;)Lnet/minecraft/resource/ResourcePackCompatibility;
      • getNotification

        public Text getNotification()
        Mappings:
        Namespace Name Mixin selector
        official b Lacz;b()Lon;
        intermediary method_14439 Lnet/minecraft/class_3281;method_14439()Lnet/minecraft/class_2561;
        named getNotification Lnet/minecraft/resource/ResourcePackCompatibility;getNotification()Lnet/minecraft/text/Text;
      • getConfirmMessage

        public Text getConfirmMessage()
        Mappings:
        Namespace Name Mixin selector
        official c Lacz;c()Lon;
        intermediary method_14438 Lnet/minecraft/class_3281;method_14438()Lnet/minecraft/class_2561;
        named getConfirmMessage Lnet/minecraft/resource/ResourcePackCompatibility;getConfirmMessage()Lnet/minecraft/text/Text;