枚举 ProtectionEnchantment.Type

    • 枚举常量详细资料

      • ALL

        public static final ProtectionEnchantment.Type ALL
        Mappings:
        Namespace Name Mixin selector
        official a Lbty$a;a:Lbty$a;
        intermediary field_9138 Lnet/minecraft/class_1900$class_1901;field_9138:Lnet/minecraft/class_1900$class_1901;
        named ALL Lnet/minecraft/enchantment/ProtectionEnchantment$Type;ALL:Lnet/minecraft/enchantment/ProtectionEnchantment$Type;
      • FIRE

        public static final ProtectionEnchantment.Type FIRE
        Mappings:
        Namespace Name Mixin selector
        official b Lbty$a;b:Lbty$a;
        intermediary field_9139 Lnet/minecraft/class_1900$class_1901;field_9139:Lnet/minecraft/class_1900$class_1901;
        named FIRE Lnet/minecraft/enchantment/ProtectionEnchantment$Type;FIRE:Lnet/minecraft/enchantment/ProtectionEnchantment$Type;
      • FALL

        public static final ProtectionEnchantment.Type FALL
        Mappings:
        Namespace Name Mixin selector
        official c Lbty$a;c:Lbty$a;
        intermediary field_9140 Lnet/minecraft/class_1900$class_1901;field_9140:Lnet/minecraft/class_1900$class_1901;
        named FALL Lnet/minecraft/enchantment/ProtectionEnchantment$Type;FALL:Lnet/minecraft/enchantment/ProtectionEnchantment$Type;
      • EXPLOSION

        public static final ProtectionEnchantment.Type EXPLOSION
        Mappings:
        Namespace Name Mixin selector
        official d Lbty$a;d:Lbty$a;
        intermediary field_9141 Lnet/minecraft/class_1900$class_1901;field_9141:Lnet/minecraft/class_1900$class_1901;
        named EXPLOSION Lnet/minecraft/enchantment/ProtectionEnchantment$Type;EXPLOSION:Lnet/minecraft/enchantment/ProtectionEnchantment$Type;
      • PROJECTILE

        public static final ProtectionEnchantment.Type PROJECTILE
        Mappings:
        Namespace Name Mixin selector
        official e Lbty$a;e:Lbty$a;
        intermediary field_9142 Lnet/minecraft/class_1900$class_1901;field_9142:Lnet/minecraft/class_1900$class_1901;
        named PROJECTILE Lnet/minecraft/enchantment/ProtectionEnchantment$Type;PROJECTILE:Lnet/minecraft/enchantment/ProtectionEnchantment$Type;
    • 字段详细资料

      • basePower

        private final int basePower
        Mappings:
        Namespace Name Mixin selector
        official f Lbty$a;f:I
        intermediary field_9135 Lnet/minecraft/class_1900$class_1901;field_9135:I
        named basePower Lnet/minecraft/enchantment/ProtectionEnchantment$Type;basePower:I
      • powerPerLevel

        private final int powerPerLevel
        Mappings:
        Namespace Name Mixin selector
        official g Lbty$a;g:I
        intermediary field_9134 Lnet/minecraft/class_1900$class_1901;field_9134:I
        named powerPerLevel Lnet/minecraft/enchantment/ProtectionEnchantment$Type;powerPerLevel:I
    • 构造器详细资料

      • Type

        private Type​(int basePower,
                     int powerPerLevel)
        Mappings:
        Namespace Name Mixin selector
        official <init> Lbty$a;<init>(Ljava/lang/String;III)V
        intermediary <init> Lnet/minecraft/class_1900$class_1901;<init>(Ljava/lang/String;III)V
        named <init> Lnet/minecraft/enchantment/ProtectionEnchantment$Type;<init>(Ljava/lang/String;III)V
    • 方法详细资料

      • values

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

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

        public int getBasePower()
        Mappings:
        Namespace Name Mixin selector
        official a Lbty$a;a()I
        intermediary method_8240 Lnet/minecraft/class_1900$class_1901;method_8240()I
        named getBasePower Lnet/minecraft/enchantment/ProtectionEnchantment$Type;getBasePower()I
      • getPowerPerLevel

        public int getPowerPerLevel()
        Mappings:
        Namespace Name Mixin selector
        official b Lbty$a;b()I
        intermediary method_8239 Lnet/minecraft/class_1900$class_1901;method_8239()I
        named getPowerPerLevel Lnet/minecraft/enchantment/ProtectionEnchantment$Type;getPowerPerLevel()I