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/EnchantmentEffectTarget
intermediary net/minecraft/class_9703
official czq
-
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
-
Field Summary
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec
<EnchantmentEffectTarget> private final String
Fields inherited from interface net.minecraft.util.StringIdentifiable
CACHED_MAP_THRESHOLD
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionasString()
Returns the unique string representation of the enum, used for serialization.static EnchantmentEffectTarget
Returns 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 ATTACKER
Lnet/minecraft/enchantment/effect/EnchantmentEffectTarget;ATTACKER:Lnet/minecraft/enchantment/effect/EnchantmentEffectTarget;
intermediary field_51683
Lnet/minecraft/class_9703;field_51683:Lnet/minecraft/class_9703;
official a
Lczq;a:Lczq;
-
DAMAGING_ENTITY
- Mappings:
Namespace Name Mixin selector named DAMAGING_ENTITY
Lnet/minecraft/enchantment/effect/EnchantmentEffectTarget;DAMAGING_ENTITY:Lnet/minecraft/enchantment/effect/EnchantmentEffectTarget;
intermediary field_51684
Lnet/minecraft/class_9703;field_51684:Lnet/minecraft/class_9703;
official b
Lczq;b:Lczq;
-
VICTIM
- Mappings:
Namespace Name Mixin selector named VICTIM
Lnet/minecraft/enchantment/effect/EnchantmentEffectTarget;VICTIM:Lnet/minecraft/enchantment/effect/EnchantmentEffectTarget;
intermediary field_51685
Lnet/minecraft/class_9703;field_51685:Lnet/minecraft/class_9703;
official c
Lczq;c:Lczq;
-
-
Field Details
-
CODEC
- Mappings:
Namespace Name Mixin selector named CODEC
Lnet/minecraft/enchantment/effect/EnchantmentEffectTarget;CODEC:Lcom/mojang/serialization/Codec;
intermediary field_51686
Lnet/minecraft/class_9703;field_51686:Lcom/mojang/serialization/Codec;
official d
Lczq;d:Lcom/mojang/serialization/Codec;
-
id
- Mappings:
Namespace Name Mixin selector named id
Lnet/minecraft/enchantment/effect/EnchantmentEffectTarget;id:Ljava/lang/String;
intermediary field_51687
Lnet/minecraft/class_9703;field_51687:Ljava/lang/String;
official e
Lczq;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;)V
intermediary <init>
Lnet/minecraft/class_9703;<init>(Ljava/lang/String;ILjava/lang/String;)V
official <init>
Lczq;<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:
asString
in interfaceStringIdentifiable
- Returns:
- the unique string representation of the enum, used for serialization
- Mappings:
Namespace Name Mixin selector named asString
Lnet/minecraft/util/StringIdentifiable;asString()Ljava/lang/String;
intermediary method_15434
Lnet/minecraft/class_3542;method_15434()Ljava/lang/String;
official c
Lazc;c()Ljava/lang/String;
-