Package net.minecraft.enchantment
Enum Class EnchantmentTarget
- All Implemented Interfaces:
Serializable,Comparable<EnchantmentTarget>,Constable
- Mappings:
Namespace Name official apgintermediary 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 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 aLapg;a:Lapg;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 bLapg;b:Lapg;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 cLapg;c:Lapg;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 dLapg;d:Lapg;intermediary field_9180Lnet/minecraft/class_1128;field_9180:Lnet/minecraft/class_1128;named LEGSLnet/minecraft/enchantment/EnchantmentTarget;LEGS:Lnet/minecraft/enchantment/EnchantmentTarget;
-
TORSO
- Mappings:
Namespace Name Mixin selector official eLapg;e:Lapg;intermediary field_9181Lnet/minecraft/class_1128;field_9181:Lnet/minecraft/class_1128;named TORSOLnet/minecraft/enchantment/EnchantmentTarget;TORSO:Lnet/minecraft/enchantment/EnchantmentTarget;
-
HEAD
- Mappings:
Namespace Name Mixin selector official fLapg;f:Lapg;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 gLapg;g:Lapg;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 hLapg;h:Lapg;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 iLapg;i:Lapg;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 jLapg;j:Lapg;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 kLapg;k:Lapg;intermediary field_9187Lnet/minecraft/class_1128;field_9187: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 aLapg;a(Lalq;)Zintermediary method_6383Lnet/minecraft/class_1128;method_6383(Lnet/minecraft/class_1069;)Znamed isCompatibleLnet/minecraft/enchantment/EnchantmentTarget;isCompatible(Lnet/minecraft/item/Item;)Z
-