Package net.minecraft.enchantment.effect
Enum Class EnchantmentEffectTarget
- All Implemented Interfaces:
Serializable,Comparable<EnchantmentEffectTarget>,Constable,StringIdentifiable
public enum EnchantmentEffectTarget
extends Enum<EnchantmentEffectTarget>
implements StringIdentifiable
- Mappings:
Namespace Name named net/minecraft/enchantment/effect/EnchantmentEffectTargetintermediary net/minecraft/class_9703official dag
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>Nested classes/interfaces inherited from interface net.minecraft.util.StringIdentifiable
StringIdentifiable.BasicCodec<S extends StringIdentifiable>, StringIdentifiable.EnumCodec<E extends Enum<E> & StringIdentifiable> -
Enum Constant Summary
Enum Constants -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<EnchantmentEffectTarget> private final StringFields inherited from interface net.minecraft.util.StringIdentifiable
CACHED_MAP_THRESHOLD -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionasString()Returns the unique string representation of the enum, used for serialization.static EnchantmentEffectTargetReturns the enum constant of this class with the specified name.static EnchantmentEffectTarget[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ATTACKER
- Mappings:
Namespace Name Mixin selector named ATTACKERLnet/minecraft/enchantment/effect/EnchantmentEffectTarget;ATTACKER:Lnet/minecraft/enchantment/effect/EnchantmentEffectTarget;intermediary field_51683Lnet/minecraft/class_9703;field_51683:Lnet/minecraft/class_9703;official aLdag;a:Ldag;
-
DAMAGING_ENTITY
- Mappings:
Namespace Name Mixin selector named DAMAGING_ENTITYLnet/minecraft/enchantment/effect/EnchantmentEffectTarget;DAMAGING_ENTITY:Lnet/minecraft/enchantment/effect/EnchantmentEffectTarget;intermediary field_51684Lnet/minecraft/class_9703;field_51684:Lnet/minecraft/class_9703;official bLdag;b:Ldag;
-
VICTIM
- Mappings:
Namespace Name Mixin selector named VICTIMLnet/minecraft/enchantment/effect/EnchantmentEffectTarget;VICTIM:Lnet/minecraft/enchantment/effect/EnchantmentEffectTarget;intermediary field_51685Lnet/minecraft/class_9703;field_51685:Lnet/minecraft/class_9703;official cLdag;c:Ldag;
-
-
Field Details
-
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/enchantment/effect/EnchantmentEffectTarget;CODEC:Lcom/mojang/serialization/Codec;intermediary field_51686Lnet/minecraft/class_9703;field_51686:Lcom/mojang/serialization/Codec;official dLdag;d:Lcom/mojang/serialization/Codec;
-
id
- Mappings:
Namespace Name Mixin selector named idLnet/minecraft/enchantment/effect/EnchantmentEffectTarget;id:Ljava/lang/String;intermediary field_51687Lnet/minecraft/class_9703;field_51687:Ljava/lang/String;official eLdag;e:Ljava/lang/String;
-
-
Constructor Details
-
EnchantmentEffectTarget
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/enchantment/effect/EnchantmentEffectTarget;<init>(Ljava/lang/String;ILjava/lang/String;)Vintermediary <init>Lnet/minecraft/class_9703;<init>(Ljava/lang/String;ILjava/lang/String;)Vofficial <init>Ldag;<init>(Ljava/lang/String;ILjava/lang/String;)V
-
-
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
-
asString
Returns the unique string representation of the enum, used for serialization.- Specified by:
asStringin interfaceStringIdentifiable- Returns:
- the unique string representation of the enum, used for serialization
- Mappings:
Namespace Name Mixin selector named asStringLnet/minecraft/util/StringIdentifiable;asString()Ljava/lang/String;intermediary method_15434Lnet/minecraft/class_3542;method_15434()Ljava/lang/String;official cLazk;c()Ljava/lang/String;
-