Package net.minecraft.enchantment
Enum EnchantmentTarget
- All Implemented Interfaces:
Serializable,Comparable<EnchantmentTarget>,java.lang.constant.Constable
public enum EnchantmentTarget extends Enum<EnchantmentTarget>
- Mappings:
Namespace Name official bsvintermediary 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 Constants Enum Constant Description ARMORARMOR_CHESTARMOR_FEETARMOR_HEADARMOR_LEGSBOWBREAKABLECROSSBOWDIGGERFISHING_RODTRIDENTVANISHABLEWEAPONWEARABLE -
Constructor Summary
Constructors Modifier Constructor Description privateEnchantmentTarget() -
Method Summary
Modifier and Type Method Description abstract booleanisAcceptableItem(Item item)static EnchantmentTargetvalueOf(String name)Returns the enum constant of this type with the specified name.static EnchantmentTarget[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
ARMOR
- Mappings:
Namespace Name Mixin selector official aLbsv;a:Lbsv;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 bLbsv;b:Lbsv;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 cLbsv;c:Lbsv;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 dLbsv;d:Lbsv;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 eLbsv;e:Lbsv;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 fLbsv;f:Lbsv;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 gLbsv;g:Lbsv;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 hLbsv;h:Lbsv;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 iLbsv;i:Lbsv;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 jLbsv;j:Lbsv;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 kLbsv;k:Lbsv;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 lLbsv;l:Lbsv;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 mLbsv;m:Lbsv;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 nLbsv;n:Lbsv;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 type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException- if the argument is null
-
isAcceptableItem
- Mappings:
Namespace Name Mixin selector official aLbsv;a(Lbow;)Zintermediary method_8177Lnet/minecraft/class_1886;method_8177(Lnet/minecraft/class_1792;)Znamed isAcceptableItemLnet/minecraft/enchantment/EnchantmentTarget;isAcceptableItem(Lnet/minecraft/item/Item;)Z
-