Enum Class ProtectionEnchantment.Type

java.lang.Object
java.lang.Enum<ProtectionEnchantment.Type>
net.minecraft.enchantment.ProtectionEnchantment.Type
All Implemented Interfaces:
Serializable, Comparable<ProtectionEnchantment.Type>, Constable
Enclosing class:
ProtectionEnchantment

public static enum ProtectionEnchantment.Type extends Enum<ProtectionEnchantment.Type>
Mappings:
Namespace Name
official bzd$a
intermediary net/minecraft/class_1900$class_1901
named net/minecraft/enchantment/ProtectionEnchantment$Type
  • Enum Constant Details

    • ALL

      public static final ProtectionEnchantment.Type ALL
      Mappings:
      Namespace Name Mixin selector
      official a Lbzd$a;a:Lbzd$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 Lbzd$a;b:Lbzd$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 Lbzd$a;c:Lbzd$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 Lbzd$a;d:Lbzd$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 Lbzd$a;e:Lbzd$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;
  • Field Details

    • basePower

      private final int basePower
      Mappings:
      Namespace Name Mixin selector
      official f Lbzd$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 Lbzd$a;g:I
      intermediary field_9134 Lnet/minecraft/class_1900$class_1901;field_9134:I
      named powerPerLevel Lnet/minecraft/enchantment/ProtectionEnchantment$Type;powerPerLevel:I
  • Constructor Details

    • Type

      private Type(int basePower, int powerPerLevel)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lbzd$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
  • Method Details

    • values

      public static ProtectionEnchantment.Type[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static ProtectionEnchantment.Type valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getBasePower

      public int getBasePower()
      Mappings:
      Namespace Name Mixin selector
      official a Lbzd$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 Lbzd$a;b()I
      intermediary method_8239 Lnet/minecraft/class_1900$class_1901;method_8239()I
      named getPowerPerLevel Lnet/minecraft/enchantment/ProtectionEnchantment$Type;getPowerPerLevel()I