Package net.minecraft.enchantment
Enum DamageEnchantmentTarget
- All Implemented Interfaces:
Serializable,Comparable<DamageEnchantmentTarget>,java.lang.constant.Constable
public enum DamageEnchantmentTarget extends Enum<DamageEnchantmentTarget>
- Mappings:
Namespace Name official pwintermediary net/minecraft/class_1758named net/minecraft/enchantment/DamageEnchantmentTarget
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
-
Constructor Summary
Constructors Modifier Constructor Description privateDamageEnchantmentTarget() -
Method Summary
Modifier and Type Method Description static DamageEnchantmentTargetvalueOf(String name)Returns the enum constant of this type with the specified name.static DamageEnchantmentTarget[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
ALL
- Mappings:
Namespace Name Mixin selector official aLpw;a:Lpw;intermediary field_7525Lnet/minecraft/class_1758;field_7525:Lnet/minecraft/class_1758;named ALLLnet/minecraft/enchantment/DamageEnchantmentTarget;ALL:Lnet/minecraft/enchantment/DamageEnchantmentTarget;
-
UNDEAD
- Mappings:
Namespace Name Mixin selector official bLpw;b:Lpw;intermediary field_7526Lnet/minecraft/class_1758;field_7526:Lnet/minecraft/class_1758;named UNDEADLnet/minecraft/enchantment/DamageEnchantmentTarget;UNDEAD:Lnet/minecraft/enchantment/DamageEnchantmentTarget;
-
ARTHROPOD
- Mappings:
Namespace Name Mixin selector official cLpw;c:Lpw;intermediary field_7527Lnet/minecraft/class_1758;field_7527:Lnet/minecraft/class_1758;named ARTHROPODLnet/minecraft/enchantment/DamageEnchantmentTarget;ARTHROPOD:Lnet/minecraft/enchantment/DamageEnchantmentTarget;
-
-
Constructor Details
-
DamageEnchantmentTarget
private DamageEnchantmentTarget()
-
-
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
-