Enum Class EnchantmentEffectTarget

java.lang.Object
java.lang.Enum<EnchantmentEffectTarget>
net.minecraft.enchantment.effect.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 dae
  • Enum Constant Details

    • ATTACKER

      public static final EnchantmentEffectTarget 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 Ldae;a:Ldae;
    • DAMAGING_ENTITY

      public static final EnchantmentEffectTarget 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 Ldae;b:Ldae;
    • VICTIM

      public static final EnchantmentEffectTarget 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 Ldae;c:Ldae;
  • Field Details

    • CODEC

      public static final com.mojang.serialization.Codec<EnchantmentEffectTarget> 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 Ldae;d:Lcom/mojang/serialization/Codec;
    • id

      private final String 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 Ldae;e:Ljava/lang/String;
  • Constructor Details

    • EnchantmentEffectTarget

      private EnchantmentEffectTarget(String id)
      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> Ldae;<init>(Ljava/lang/String;ILjava/lang/String;)V
  • Method Details

    • values

      public static EnchantmentEffectTarget[] 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

      public static EnchantmentEffectTarget valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • asString

      public String asString()
      Returns the unique string representation of the enum, used for serialization.
      Specified by:
      asString in interface StringIdentifiable
      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 Lazj;c()Ljava/lang/String;