Package net.minecraft.enchantment
Enum Class EnchantmentTarget
- All Implemented Interfaces:
Serializable,Comparable<EnchantmentTarget>,Constable
- Mappings:
Namespace Name official aefintermediary 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 ConstantsEnum ConstantDescription -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanisCompatible(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 aLaef;a:Laef;intermediary field_4479Lnet/minecraft/class_1128;field_4479:Lnet/minecraft/class_1128;named ALLLnet/minecraft/enchantment/EnchantmentTarget;ALL:Lnet/minecraft/enchantment/EnchantmentTarget;
-
ARMOR
- Mappings:
Namespace Name Mixin selector official bLaef;b:Laef;intermediary field_4480Lnet/minecraft/class_1128;field_4480:Lnet/minecraft/class_1128;named ARMORLnet/minecraft/enchantment/EnchantmentTarget;ARMOR:Lnet/minecraft/enchantment/EnchantmentTarget;
-
ARMOR_FEET
- Mappings:
Namespace Name Mixin selector official cLaef;c:Laef;intermediary field_4481Lnet/minecraft/class_1128;field_4481:Lnet/minecraft/class_1128;named ARMOR_FEETLnet/minecraft/enchantment/EnchantmentTarget;ARMOR_FEET:Lnet/minecraft/enchantment/EnchantmentTarget;
-
ARMOR_LEGS
- Mappings:
Namespace Name Mixin selector official dLaef;d:Laef;intermediary field_4482Lnet/minecraft/class_1128;field_4482:Lnet/minecraft/class_1128;named ARMOR_LEGSLnet/minecraft/enchantment/EnchantmentTarget;ARMOR_LEGS:Lnet/minecraft/enchantment/EnchantmentTarget;
-
ARMOR_TORSO
- Mappings:
Namespace Name Mixin selector official eLaef;e:Laef;intermediary field_4483Lnet/minecraft/class_1128;field_4483:Lnet/minecraft/class_1128;named ARMOR_TORSOLnet/minecraft/enchantment/EnchantmentTarget;ARMOR_TORSO:Lnet/minecraft/enchantment/EnchantmentTarget;
-
ARMOR_HEAD
- Mappings:
Namespace Name Mixin selector official fLaef;f:Laef;intermediary field_4484Lnet/minecraft/class_1128;field_4484:Lnet/minecraft/class_1128;named ARMOR_HEADLnet/minecraft/enchantment/EnchantmentTarget;ARMOR_HEAD:Lnet/minecraft/enchantment/EnchantmentTarget;
-
WEAPON
- Mappings:
Namespace Name Mixin selector official gLaef;g:Laef;intermediary field_4485Lnet/minecraft/class_1128;field_4485:Lnet/minecraft/class_1128;named WEAPONLnet/minecraft/enchantment/EnchantmentTarget;WEAPON:Lnet/minecraft/enchantment/EnchantmentTarget;
-
DIGGER
- Mappings:
Namespace Name Mixin selector official hLaef;h:Laef;intermediary field_4486Lnet/minecraft/class_1128;field_4486:Lnet/minecraft/class_1128;named DIGGERLnet/minecraft/enchantment/EnchantmentTarget;DIGGER:Lnet/minecraft/enchantment/EnchantmentTarget;
-
FISHING_ROD
- Mappings:
Namespace Name Mixin selector official iLaef;i:Laef;intermediary field_7157Lnet/minecraft/class_1128;field_7157:Lnet/minecraft/class_1128;named FISHING_RODLnet/minecraft/enchantment/EnchantmentTarget;FISHING_ROD:Lnet/minecraft/enchantment/EnchantmentTarget;
-
BREAKABLE
- Mappings:
Namespace Name Mixin selector official jLaef;j:Laef;intermediary field_7158Lnet/minecraft/class_1128;field_7158:Lnet/minecraft/class_1128;named BREAKABLELnet/minecraft/enchantment/EnchantmentTarget;BREAKABLE:Lnet/minecraft/enchantment/EnchantmentTarget;
-
BOW
- Mappings:
Namespace Name Mixin selector official kLaef;k:Laef;intermediary field_4487Lnet/minecraft/class_1128;field_4487:Lnet/minecraft/class_1128;named BOWLnet/minecraft/enchantment/EnchantmentTarget;BOW: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 aLaef;a(Labm;)Zintermediary method_6383Lnet/minecraft/class_1128;method_6383(Lnet/minecraft/class_1069;)Znamed isCompatibleLnet/minecraft/enchantment/EnchantmentTarget;isCompatible(Lnet/minecraft/item/Item;)Z
-