Enum Class EnchantmentTarget

java.lang.Object
java.lang.Enum<EnchantmentTarget>
net.minecraft.enchantment.EnchantmentTarget
All Implemented Interfaces:
Serializable, Comparable<EnchantmentTarget>, Constable

public enum EnchantmentTarget extends Enum<EnchantmentTarget>
Mappings:
Namespace Name
official aef
intermediary net/minecraft/class_1128
named net/minecraft/enchantment/EnchantmentTarget
  • Enum Constant Details

    • ALL

      public static final EnchantmentTarget ALL
      Mappings:
      Namespace Name Mixin selector
      official a Laef;a:Laef;
      intermediary field_4479 Lnet/minecraft/class_1128;field_4479:Lnet/minecraft/class_1128;
      named ALL Lnet/minecraft/enchantment/EnchantmentTarget;ALL:Lnet/minecraft/enchantment/EnchantmentTarget;
    • ARMOR

      public static final EnchantmentTarget ARMOR
      Mappings:
      Namespace Name Mixin selector
      official b Laef;b:Laef;
      intermediary field_4480 Lnet/minecraft/class_1128;field_4480:Lnet/minecraft/class_1128;
      named ARMOR Lnet/minecraft/enchantment/EnchantmentTarget;ARMOR:Lnet/minecraft/enchantment/EnchantmentTarget;
    • ARMOR_FEET

      public static final EnchantmentTarget ARMOR_FEET
      Mappings:
      Namespace Name Mixin selector
      official c Laef;c:Laef;
      intermediary field_4481 Lnet/minecraft/class_1128;field_4481:Lnet/minecraft/class_1128;
      named ARMOR_FEET Lnet/minecraft/enchantment/EnchantmentTarget;ARMOR_FEET:Lnet/minecraft/enchantment/EnchantmentTarget;
    • ARMOR_LEGS

      public static final EnchantmentTarget ARMOR_LEGS
      Mappings:
      Namespace Name Mixin selector
      official d Laef;d:Laef;
      intermediary field_4482 Lnet/minecraft/class_1128;field_4482:Lnet/minecraft/class_1128;
      named ARMOR_LEGS Lnet/minecraft/enchantment/EnchantmentTarget;ARMOR_LEGS:Lnet/minecraft/enchantment/EnchantmentTarget;
    • ARMOR_TORSO

      public static final EnchantmentTarget ARMOR_TORSO
      Mappings:
      Namespace Name Mixin selector
      official e Laef;e:Laef;
      intermediary field_4483 Lnet/minecraft/class_1128;field_4483:Lnet/minecraft/class_1128;
      named ARMOR_TORSO Lnet/minecraft/enchantment/EnchantmentTarget;ARMOR_TORSO:Lnet/minecraft/enchantment/EnchantmentTarget;
    • ARMOR_HEAD

      public static final EnchantmentTarget ARMOR_HEAD
      Mappings:
      Namespace Name Mixin selector
      official f Laef;f:Laef;
      intermediary field_4484 Lnet/minecraft/class_1128;field_4484:Lnet/minecraft/class_1128;
      named ARMOR_HEAD Lnet/minecraft/enchantment/EnchantmentTarget;ARMOR_HEAD:Lnet/minecraft/enchantment/EnchantmentTarget;
    • WEAPON

      public static final EnchantmentTarget WEAPON
      Mappings:
      Namespace Name Mixin selector
      official g Laef;g:Laef;
      intermediary field_4485 Lnet/minecraft/class_1128;field_4485:Lnet/minecraft/class_1128;
      named WEAPON Lnet/minecraft/enchantment/EnchantmentTarget;WEAPON:Lnet/minecraft/enchantment/EnchantmentTarget;
    • DIGGER

      public static final EnchantmentTarget DIGGER
      Mappings:
      Namespace Name Mixin selector
      official h Laef;h:Laef;
      intermediary field_4486 Lnet/minecraft/class_1128;field_4486:Lnet/minecraft/class_1128;
      named DIGGER Lnet/minecraft/enchantment/EnchantmentTarget;DIGGER:Lnet/minecraft/enchantment/EnchantmentTarget;
    • FISHING_ROD

      public static final EnchantmentTarget FISHING_ROD
      Mappings:
      Namespace Name Mixin selector
      official i Laef;i:Laef;
      intermediary field_7157 Lnet/minecraft/class_1128;field_7157:Lnet/minecraft/class_1128;
      named FISHING_ROD Lnet/minecraft/enchantment/EnchantmentTarget;FISHING_ROD:Lnet/minecraft/enchantment/EnchantmentTarget;
    • BREAKABLE

      public static final EnchantmentTarget BREAKABLE
      Mappings:
      Namespace Name Mixin selector
      official j Laef;j:Laef;
      intermediary field_7158 Lnet/minecraft/class_1128;field_7158:Lnet/minecraft/class_1128;
      named BREAKABLE Lnet/minecraft/enchantment/EnchantmentTarget;BREAKABLE:Lnet/minecraft/enchantment/EnchantmentTarget;
    • BOW

      public static final EnchantmentTarget BOW
      Mappings:
      Namespace Name Mixin selector
      official k Laef;k:Laef;
      intermediary field_4487 Lnet/minecraft/class_1128;field_4487:Lnet/minecraft/class_1128;
      named BOW Lnet/minecraft/enchantment/EnchantmentTarget;BOW:Lnet/minecraft/enchantment/EnchantmentTarget;
  • Constructor Details

    • EnchantmentTarget

      private EnchantmentTarget()
  • Method Details

    • values

      public static EnchantmentTarget[] 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 EnchantmentTarget 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
    • isCompatible

      public boolean isCompatible(Item item)
      Mappings:
      Namespace Name Mixin selector
      official a Laef;a(Labm;)Z
      intermediary method_6383 Lnet/minecraft/class_1128;method_6383(Lnet/minecraft/class_1069;)Z
      named isCompatible Lnet/minecraft/enchantment/EnchantmentTarget;isCompatible(Lnet/minecraft/item/Item;)Z