Package net.minecraft.enchantment
Enum Class EnchantmentTarget
- All Implemented Interfaces:
Serializable,Comparable<EnchantmentTarget>,Constable
- Mappings:
Namespace Name official allintermediary net/minecraft/class_1128named net/minecraft/enchantment/EnchantmentTarget
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract booleanisCompatible(Item item) static EnchantmentTargetReturns the enum constant of this class with the specified name.static EnchantmentTarget[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ALL
- Mappings:
Namespace Name Mixin selector official aLall;a:Lall;intermediary field_9177Lnet/minecraft/class_1128;field_9177:Lnet/minecraft/class_1128;named ALLLnet/minecraft/enchantment/EnchantmentTarget;ALL:Lnet/minecraft/enchantment/EnchantmentTarget;
-
ALL_ARMOR
- Mappings:
Namespace Name Mixin selector official bLall;b:Lall;intermediary field_9178Lnet/minecraft/class_1128;field_9178:Lnet/minecraft/class_1128;named ALL_ARMORLnet/minecraft/enchantment/EnchantmentTarget;ALL_ARMOR:Lnet/minecraft/enchantment/EnchantmentTarget;
-
FEET
- Mappings:
Namespace Name Mixin selector official cLall;c:Lall;intermediary field_9179Lnet/minecraft/class_1128;field_9179:Lnet/minecraft/class_1128;named FEETLnet/minecraft/enchantment/EnchantmentTarget;FEET:Lnet/minecraft/enchantment/EnchantmentTarget;
-
LEGS
- Mappings:
Namespace Name Mixin selector official dLall;d:Lall;intermediary field_9180Lnet/minecraft/class_1128;field_9180:Lnet/minecraft/class_1128;named LEGSLnet/minecraft/enchantment/EnchantmentTarget;LEGS:Lnet/minecraft/enchantment/EnchantmentTarget;
-
ARMOR_CHEST
- Mappings:
Namespace Name Mixin selector official eLall;e:Lall;intermediary field_12395Lnet/minecraft/class_1128;field_12395:Lnet/minecraft/class_1128;named ARMOR_CHESTLnet/minecraft/enchantment/EnchantmentTarget;ARMOR_CHEST:Lnet/minecraft/enchantment/EnchantmentTarget;
-
HEAD
- Mappings:
Namespace Name Mixin selector official fLall;f:Lall;intermediary field_9182Lnet/minecraft/class_1128;field_9182:Lnet/minecraft/class_1128;named HEADLnet/minecraft/enchantment/EnchantmentTarget;HEAD:Lnet/minecraft/enchantment/EnchantmentTarget;
-
WEAPON
- Mappings:
Namespace Name Mixin selector official gLall;g:Lall;intermediary field_9183Lnet/minecraft/class_1128;field_9183:Lnet/minecraft/class_1128;named WEAPONLnet/minecraft/enchantment/EnchantmentTarget;WEAPON:Lnet/minecraft/enchantment/EnchantmentTarget;
-
DIGGER
- Mappings:
Namespace Name Mixin selector official hLall;h:Lall;intermediary field_9184Lnet/minecraft/class_1128;field_9184:Lnet/minecraft/class_1128;named DIGGERLnet/minecraft/enchantment/EnchantmentTarget;DIGGER:Lnet/minecraft/enchantment/EnchantmentTarget;
-
FISHING_ROD
- Mappings:
Namespace Name Mixin selector official iLall;i:Lall;intermediary field_9185Lnet/minecraft/class_1128;field_9185:Lnet/minecraft/class_1128;named FISHING_RODLnet/minecraft/enchantment/EnchantmentTarget;FISHING_ROD:Lnet/minecraft/enchantment/EnchantmentTarget;
-
BREAKABLE
- Mappings:
Namespace Name Mixin selector official jLall;j:Lall;intermediary field_9186Lnet/minecraft/class_1128;field_9186:Lnet/minecraft/class_1128;named BREAKABLELnet/minecraft/enchantment/EnchantmentTarget;BREAKABLE:Lnet/minecraft/enchantment/EnchantmentTarget;
-
BOW
- Mappings:
Namespace Name Mixin selector official kLall;k:Lall;intermediary field_9187Lnet/minecraft/class_1128;field_9187:Lnet/minecraft/class_1128;named BOWLnet/minecraft/enchantment/EnchantmentTarget;BOW:Lnet/minecraft/enchantment/EnchantmentTarget;
-
WEARABLE
- Mappings:
Namespace Name Mixin selector official lLall;l:Lall;intermediary field_15115Lnet/minecraft/class_1128;field_15115:Lnet/minecraft/class_1128;named WEARABLELnet/minecraft/enchantment/EnchantmentTarget;WEARABLE:Lnet/minecraft/enchantment/EnchantmentTarget;
-
-
Constructor Details
-
EnchantmentTarget
private EnchantmentTarget()
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
isCompatible
- Mappings:
Namespace Name Mixin selector official aLall;a(Lain;)Zintermediary method_6383Lnet/minecraft/class_1128;method_6383(Lnet/minecraft/class_1069;)Znamed isCompatibleLnet/minecraft/enchantment/EnchantmentTarget;isCompatible(Lnet/minecraft/item/Item;)Z
-