Package net.minecraft.enchantment
Enum Class EnchantmentTarget
- All Implemented Interfaces:
Serializable,Comparable<EnchantmentTarget>,Constable
- Mappings:
Namespace Name official cdtintermediary net/minecraft/class_1886named 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 TypeMethodDescriptionabstract booleanisAcceptableItem(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
-
ARMOR
- Mappings:
Namespace Name Mixin selector official aLcdt;a:Lcdt;intermediary field_9068Lnet/minecraft/class_1886;field_9068:Lnet/minecraft/class_1886;named ARMORLnet/minecraft/enchantment/EnchantmentTarget;ARMOR:Lnet/minecraft/enchantment/EnchantmentTarget;
-
ARMOR_FEET
- Mappings:
Namespace Name Mixin selector official bLcdt;b:Lcdt;intermediary field_9079Lnet/minecraft/class_1886;field_9079:Lnet/minecraft/class_1886;named ARMOR_FEETLnet/minecraft/enchantment/EnchantmentTarget;ARMOR_FEET:Lnet/minecraft/enchantment/EnchantmentTarget;
-
ARMOR_LEGS
- Mappings:
Namespace Name Mixin selector official cLcdt;c:Lcdt;intermediary field_9076Lnet/minecraft/class_1886;field_9076:Lnet/minecraft/class_1886;named ARMOR_LEGSLnet/minecraft/enchantment/EnchantmentTarget;ARMOR_LEGS:Lnet/minecraft/enchantment/EnchantmentTarget;
-
ARMOR_CHEST
- Mappings:
Namespace Name Mixin selector official dLcdt;d:Lcdt;intermediary field_9071Lnet/minecraft/class_1886;field_9071:Lnet/minecraft/class_1886;named ARMOR_CHESTLnet/minecraft/enchantment/EnchantmentTarget;ARMOR_CHEST:Lnet/minecraft/enchantment/EnchantmentTarget;
-
ARMOR_HEAD
- Mappings:
Namespace Name Mixin selector official eLcdt;e:Lcdt;intermediary field_9080Lnet/minecraft/class_1886;field_9080:Lnet/minecraft/class_1886;named ARMOR_HEADLnet/minecraft/enchantment/EnchantmentTarget;ARMOR_HEAD:Lnet/minecraft/enchantment/EnchantmentTarget;
-
WEAPON
- Mappings:
Namespace Name Mixin selector official fLcdt;f:Lcdt;intermediary field_9074Lnet/minecraft/class_1886;field_9074:Lnet/minecraft/class_1886;named WEAPONLnet/minecraft/enchantment/EnchantmentTarget;WEAPON:Lnet/minecraft/enchantment/EnchantmentTarget;
-
DIGGER
- Mappings:
Namespace Name Mixin selector official gLcdt;g:Lcdt;intermediary field_9069Lnet/minecraft/class_1886;field_9069:Lnet/minecraft/class_1886;named DIGGERLnet/minecraft/enchantment/EnchantmentTarget;DIGGER:Lnet/minecraft/enchantment/EnchantmentTarget;
-
FISHING_ROD
- Mappings:
Namespace Name Mixin selector official hLcdt;h:Lcdt;intermediary field_9072Lnet/minecraft/class_1886;field_9072:Lnet/minecraft/class_1886;named FISHING_RODLnet/minecraft/enchantment/EnchantmentTarget;FISHING_ROD:Lnet/minecraft/enchantment/EnchantmentTarget;
-
TRIDENT
- Mappings:
Namespace Name Mixin selector official iLcdt;i:Lcdt;intermediary field_9073Lnet/minecraft/class_1886;field_9073:Lnet/minecraft/class_1886;named TRIDENTLnet/minecraft/enchantment/EnchantmentTarget;TRIDENT:Lnet/minecraft/enchantment/EnchantmentTarget;
-
BREAKABLE
- Mappings:
Namespace Name Mixin selector official jLcdt;j:Lcdt;intermediary field_9082Lnet/minecraft/class_1886;field_9082:Lnet/minecraft/class_1886;named BREAKABLELnet/minecraft/enchantment/EnchantmentTarget;BREAKABLE:Lnet/minecraft/enchantment/EnchantmentTarget;
-
BOW
- Mappings:
Namespace Name Mixin selector official kLcdt;k:Lcdt;intermediary field_9070Lnet/minecraft/class_1886;field_9070:Lnet/minecraft/class_1886;named BOWLnet/minecraft/enchantment/EnchantmentTarget;BOW:Lnet/minecraft/enchantment/EnchantmentTarget;
-
WEARABLE
- Mappings:
Namespace Name Mixin selector official lLcdt;l:Lcdt;intermediary field_9078Lnet/minecraft/class_1886;field_9078:Lnet/minecraft/class_1886;named WEARABLELnet/minecraft/enchantment/EnchantmentTarget;WEARABLE:Lnet/minecraft/enchantment/EnchantmentTarget;
-
CROSSBOW
- Mappings:
Namespace Name Mixin selector official mLcdt;m:Lcdt;intermediary field_9081Lnet/minecraft/class_1886;field_9081:Lnet/minecraft/class_1886;named CROSSBOWLnet/minecraft/enchantment/EnchantmentTarget;CROSSBOW:Lnet/minecraft/enchantment/EnchantmentTarget;
-
VANISHABLE
- Mappings:
Namespace Name Mixin selector official nLcdt;n:Lcdt;intermediary field_23747Lnet/minecraft/class_1886;field_23747:Lnet/minecraft/class_1886;named VANISHABLELnet/minecraft/enchantment/EnchantmentTarget;VANISHABLE: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
-
isAcceptableItem
- Mappings:
Namespace Name Mixin selector official aLcdt;a(Lbzu;)Zintermediary method_8177Lnet/minecraft/class_1886;method_8177(Lnet/minecraft/class_1792;)Znamed isAcceptableItemLnet/minecraft/enchantment/EnchantmentTarget;isAcceptableItem(Lnet/minecraft/item/Item;)Z
-