Enum Class LootContext.EntityTarget

java.lang.Object
java.lang.Enum<LootContext.EntityTarget>
net.minecraft.loot.context.LootContext.EntityTarget
All Implemented Interfaces:
Serializable, Comparable<LootContext.EntityTarget>, Constable, StringIdentifiable
Enclosing class:
LootContext

public static enum LootContext.EntityTarget extends Enum<LootContext.EntityTarget> implements StringIdentifiable
Mappings:
Namespace Name
named net/minecraft/loot/context/LootContext$EntityTarget
intermediary net/minecraft/class_47$class_50
official ewo$b
  • Enum Constant Details

    • THIS

      public static final LootContext.EntityTarget THIS
      Mappings:
      Namespace Name Mixin selector
      named THIS Lnet/minecraft/loot/context/LootContext$EntityTarget;THIS:Lnet/minecraft/loot/context/LootContext$EntityTarget;
      intermediary field_935 Lnet/minecraft/class_47$class_50;field_935:Lnet/minecraft/class_47$class_50;
      official a Lewo$b;a:Lewo$b;
    • ATTACKER

      public static final LootContext.EntityTarget ATTACKER
      Mappings:
      Namespace Name Mixin selector
      named ATTACKER Lnet/minecraft/loot/context/LootContext$EntityTarget;ATTACKER:Lnet/minecraft/loot/context/LootContext$EntityTarget;
      intermediary field_936 Lnet/minecraft/class_47$class_50;field_936:Lnet/minecraft/class_47$class_50;
      official b Lewo$b;b:Lewo$b;
    • DIRECT_ATTACKER

      public static final LootContext.EntityTarget DIRECT_ATTACKER
      Mappings:
      Namespace Name Mixin selector
      named DIRECT_ATTACKER Lnet/minecraft/loot/context/LootContext$EntityTarget;DIRECT_ATTACKER:Lnet/minecraft/loot/context/LootContext$EntityTarget;
      intermediary field_939 Lnet/minecraft/class_47$class_50;field_939:Lnet/minecraft/class_47$class_50;
      official c Lewo$b;c:Lewo$b;
    • ATTACKING_PLAYER

      public static final LootContext.EntityTarget ATTACKING_PLAYER
      Mappings:
      Namespace Name Mixin selector
      named ATTACKING_PLAYER Lnet/minecraft/loot/context/LootContext$EntityTarget;ATTACKING_PLAYER:Lnet/minecraft/loot/context/LootContext$EntityTarget;
      intermediary field_937 Lnet/minecraft/class_47$class_50;field_937:Lnet/minecraft/class_47$class_50;
      official d Lewo$b;d:Lewo$b;
  • Field Details

    • CODEC

      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/loot/context/LootContext$EntityTarget;CODEC:Lnet/minecraft/util/StringIdentifiable$EnumCodec;
      intermediary field_45792 Lnet/minecraft/class_47$class_50;field_45792:Lnet/minecraft/class_3542$class_7292;
      official e Lewo$b;e:Lbba$a;
    • type

      private final String type
      Mappings:
      Namespace Name Mixin selector
      named type Lnet/minecraft/loot/context/LootContext$EntityTarget;type:Ljava/lang/String;
      intermediary field_941 Lnet/minecraft/class_47$class_50;field_941:Ljava/lang/String;
      official f Lewo$b;f:Ljava/lang/String;
    • parameter

      private final ContextParameter<? extends Entity> parameter
      Mappings:
      Namespace Name Mixin selector
      named parameter Lnet/minecraft/loot/context/LootContext$EntityTarget;parameter:Lnet/minecraft/util/context/ContextParameter;
      intermediary field_938 Lnet/minecraft/class_47$class_50;field_938:Lnet/minecraft/class_169;
      official g Lewo$b;g:Lbbn;
  • Constructor Details

    • EntityTarget

      private EntityTarget(String type, ContextParameter<? extends Entity> parameter)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/loot/context/LootContext$EntityTarget;<init>(Ljava/lang/String;ILjava/lang/String;Lnet/minecraft/util/context/ContextParameter;)V
      intermediary <init> Lnet/minecraft/class_47$class_50;<init>(Ljava/lang/String;ILjava/lang/String;Lnet/minecraft/class_169;)V
      official <init> Lewo$b;<init>(Ljava/lang/String;ILjava/lang/String;Lbbn;)V
  • Method Details

    • values

      public static LootContext.EntityTarget[] 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 LootContext.EntityTarget 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
    • getParameter

      public ContextParameter<? extends Entity> getParameter()
      Mappings:
      Namespace Name Mixin selector
      named getParameter Lnet/minecraft/loot/context/LootContext$EntityTarget;getParameter()Lnet/minecraft/util/context/ContextParameter;
      intermediary method_315 Lnet/minecraft/class_47$class_50;method_315()Lnet/minecraft/class_169;
      official a Lewo$b;a()Lbbn;
    • fromString

      public static LootContext.EntityTarget fromString(String type)
      Mappings:
      Namespace Name Mixin selector
      named fromString Lnet/minecraft/loot/context/LootContext$EntityTarget;fromString(Ljava/lang/String;)Lnet/minecraft/loot/context/LootContext$EntityTarget;
      intermediary method_314 Lnet/minecraft/class_47$class_50;method_314(Ljava/lang/String;)Lnet/minecraft/class_47$class_50;
      official a Lewo$b;a(Ljava/lang/String;)Lewo$b;
    • 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 Lbba;c()Ljava/lang/String;