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
Enclosing class:
LootContext

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

    • THIS

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

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

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

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

    • type

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

      private final LootContextParameter<? extends Entity> parameter
      Mappings:
      Namespace Name Mixin selector
      official f Ldzk$b;f:Lebt;
      intermediary field_938 Lnet/minecraft/class_47$class_50;field_938:Lnet/minecraft/class_169;
      named parameter Lnet/minecraft/loot/context/LootContext$EntityTarget;parameter:Lnet/minecraft/loot/context/LootContextParameter;
  • Constructor Details

    • EntityTarget

      private EntityTarget(String type, LootContextParameter<? extends Entity> parameter)
      Mappings:
      Namespace Name Mixin selector
      official <init> Ldzk$b;<init>(Ljava/lang/String;ILjava/lang/String;Lebt;)V
      intermediary <init> Lnet/minecraft/class_47$class_50;<init>(Ljava/lang/String;ILjava/lang/String;Lnet/minecraft/class_169;)V
      named <init> Lnet/minecraft/loot/context/LootContext$EntityTarget;<init>(Ljava/lang/String;ILjava/lang/String;Lnet/minecraft/loot/context/LootContextParameter;)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 LootContextParameter<? extends Entity> getParameter()
      Mappings:
      Namespace Name Mixin selector
      official a Ldzk$b;a()Lebt;
      intermediary method_315 Lnet/minecraft/class_47$class_50;method_315()Lnet/minecraft/class_169;
      named getParameter Lnet/minecraft/loot/context/LootContext$EntityTarget;getParameter()Lnet/minecraft/loot/context/LootContextParameter;
    • fromString

      public static LootContext.EntityTarget fromString(String type)
      Mappings:
      Namespace Name Mixin selector
      official a Ldzk$b;a(Ljava/lang/String;)Ldzk$b;
      intermediary method_314 Lnet/minecraft/class_47$class_50;method_314(Ljava/lang/String;)Lnet/minecraft/class_47$class_50;
      named fromString Lnet/minecraft/loot/context/LootContext$EntityTarget;fromString(Ljava/lang/String;)Lnet/minecraft/loot/context/LootContext$EntityTarget;