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 byr
intermediary net/minecraft/class_1886
named net/minecraft/enchantment/EnchantmentTarget
  • Enum Constant Details

    • ARMOR

      public static final EnchantmentTarget ARMOR
      Mappings:
      Namespace Name Mixin selector
      official a Lbyr;a:Lbyr;
      intermediary field_9068 Lnet/minecraft/class_1886;field_9068:Lnet/minecraft/class_1886;
      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 b Lbyr;b:Lbyr;
      intermediary field_9079 Lnet/minecraft/class_1886;field_9079:Lnet/minecraft/class_1886;
      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 c Lbyr;c:Lbyr;
      intermediary field_9076 Lnet/minecraft/class_1886;field_9076:Lnet/minecraft/class_1886;
      named ARMOR_LEGS Lnet/minecraft/enchantment/EnchantmentTarget;ARMOR_LEGS:Lnet/minecraft/enchantment/EnchantmentTarget;
    • ARMOR_CHEST

      public static final EnchantmentTarget ARMOR_CHEST
      Mappings:
      Namespace Name Mixin selector
      official d Lbyr;d:Lbyr;
      intermediary field_9071 Lnet/minecraft/class_1886;field_9071:Lnet/minecraft/class_1886;
      named ARMOR_CHEST Lnet/minecraft/enchantment/EnchantmentTarget;ARMOR_CHEST:Lnet/minecraft/enchantment/EnchantmentTarget;
    • ARMOR_HEAD

      public static final EnchantmentTarget ARMOR_HEAD
      Mappings:
      Namespace Name Mixin selector
      official e Lbyr;e:Lbyr;
      intermediary field_9080 Lnet/minecraft/class_1886;field_9080:Lnet/minecraft/class_1886;
      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 f Lbyr;f:Lbyr;
      intermediary field_9074 Lnet/minecraft/class_1886;field_9074:Lnet/minecraft/class_1886;
      named WEAPON Lnet/minecraft/enchantment/EnchantmentTarget;WEAPON:Lnet/minecraft/enchantment/EnchantmentTarget;
    • DIGGER

      public static final EnchantmentTarget DIGGER
      Mappings:
      Namespace Name Mixin selector
      official g Lbyr;g:Lbyr;
      intermediary field_9069 Lnet/minecraft/class_1886;field_9069:Lnet/minecraft/class_1886;
      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 h Lbyr;h:Lbyr;
      intermediary field_9072 Lnet/minecraft/class_1886;field_9072:Lnet/minecraft/class_1886;
      named FISHING_ROD Lnet/minecraft/enchantment/EnchantmentTarget;FISHING_ROD:Lnet/minecraft/enchantment/EnchantmentTarget;
    • TRIDENT

      public static final EnchantmentTarget TRIDENT
      Mappings:
      Namespace Name Mixin selector
      official i Lbyr;i:Lbyr;
      intermediary field_9073 Lnet/minecraft/class_1886;field_9073:Lnet/minecraft/class_1886;
      named TRIDENT Lnet/minecraft/enchantment/EnchantmentTarget;TRIDENT:Lnet/minecraft/enchantment/EnchantmentTarget;
    • BREAKABLE

      public static final EnchantmentTarget BREAKABLE
      Mappings:
      Namespace Name Mixin selector
      official j Lbyr;j:Lbyr;
      intermediary field_9082 Lnet/minecraft/class_1886;field_9082:Lnet/minecraft/class_1886;
      named BREAKABLE Lnet/minecraft/enchantment/EnchantmentTarget;BREAKABLE:Lnet/minecraft/enchantment/EnchantmentTarget;
    • BOW

      public static final EnchantmentTarget BOW
      Mappings:
      Namespace Name Mixin selector
      official k Lbyr;k:Lbyr;
      intermediary field_9070 Lnet/minecraft/class_1886;field_9070:Lnet/minecraft/class_1886;
      named BOW Lnet/minecraft/enchantment/EnchantmentTarget;BOW:Lnet/minecraft/enchantment/EnchantmentTarget;
    • WEARABLE

      public static final EnchantmentTarget WEARABLE
      Mappings:
      Namespace Name Mixin selector
      official l Lbyr;l:Lbyr;
      intermediary field_9078 Lnet/minecraft/class_1886;field_9078:Lnet/minecraft/class_1886;
      named WEARABLE Lnet/minecraft/enchantment/EnchantmentTarget;WEARABLE:Lnet/minecraft/enchantment/EnchantmentTarget;
    • CROSSBOW

      public static final EnchantmentTarget CROSSBOW
      Mappings:
      Namespace Name Mixin selector
      official m Lbyr;m:Lbyr;
      intermediary field_9081 Lnet/minecraft/class_1886;field_9081:Lnet/minecraft/class_1886;
      named CROSSBOW Lnet/minecraft/enchantment/EnchantmentTarget;CROSSBOW:Lnet/minecraft/enchantment/EnchantmentTarget;
    • VANISHABLE

      public static final EnchantmentTarget VANISHABLE
      Mappings:
      Namespace Name Mixin selector
      official n Lbyr;n:Lbyr;
      intermediary field_23747 Lnet/minecraft/class_1886;field_23747:Lnet/minecraft/class_1886;
      named VANISHABLE Lnet/minecraft/enchantment/EnchantmentTarget;VANISHABLE: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
    • isAcceptableItem

      public abstract boolean isAcceptableItem(Item item)
      Mappings:
      Namespace Name Mixin selector
      official a Lbyr;a(Lbus;)Z
      intermediary method_8177 Lnet/minecraft/class_1886;method_8177(Lnet/minecraft/class_1792;)Z
      named isAcceptableItem Lnet/minecraft/enchantment/EnchantmentTarget;isAcceptableItem(Lnet/minecraft/item/Item;)Z