Enum Class LootContext.EntityReference

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

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

    • THIS

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

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

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

      public static final LootContext.EntityReference ATTACKING_PLAYER
      Mappings:
      Namespace Name Mixin selector
      named ATTACKING_PLAYER Lnet/minecraft/loot/context/LootContext$EntityReference;ATTACKING_PLAYER:Lnet/minecraft/loot/context/LootContext$EntityReference;
      intermediary field_937 Lnet/minecraft/class_47$class_50;field_937:Lnet/minecraft/class_47$class_50;
      official d Lfiy$c;d:Lfiy$c;
    • TARGET_ENTITY

      public static final LootContext.EntityReference TARGET_ENTITY
      Mappings:
      Namespace Name Mixin selector
      named TARGET_ENTITY Lnet/minecraft/loot/context/LootContext$EntityReference;TARGET_ENTITY:Lnet/minecraft/loot/context/LootContext$EntityReference;
      intermediary field_61495 Lnet/minecraft/class_47$class_50;field_61495:Lnet/minecraft/class_47$class_50;
      official e Lfiy$c;e:Lfiy$c;
    • INTERACTING_ENTITY

      public static final LootContext.EntityReference INTERACTING_ENTITY
      Mappings:
      Namespace Name Mixin selector
      named INTERACTING_ENTITY Lnet/minecraft/loot/context/LootContext$EntityReference;INTERACTING_ENTITY:Lnet/minecraft/loot/context/LootContext$EntityReference;
      intermediary field_61496 Lnet/minecraft/class_47$class_50;field_61496:Lnet/minecraft/class_47$class_50;
      official f Lfiy$c;f:Lfiy$c;
  • Field Details

    • CODEC

      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/loot/context/LootContext$EntityReference;CODEC:Lnet/minecraft/util/StringIdentifiable$EnumCodec;
      intermediary field_45792 Lnet/minecraft/class_47$class_50;field_45792:Lnet/minecraft/class_3542$class_7292;
      official g Lfiy$c;g:Lbgg$a;
    • type

      private final String type
      Mappings:
      Namespace Name Mixin selector
      named type Lnet/minecraft/loot/context/LootContext$EntityReference;type:Ljava/lang/String;
      intermediary field_941 Lnet/minecraft/class_47$class_50;field_941:Ljava/lang/String;
      official h Lfiy$c;h:Ljava/lang/String;
    • parameter

      private final ContextParameter<? extends Entity> parameter
      Mappings:
      Namespace Name Mixin selector
      named parameter Lnet/minecraft/loot/context/LootContext$EntityReference;parameter:Lnet/minecraft/util/context/ContextParameter;
      intermediary field_938 Lnet/minecraft/class_47$class_50;field_938:Lnet/minecraft/class_169;
      official i Lfiy$c;i:Lbgt;
  • Constructor Details

    • EntityReference

      private EntityReference(String type, ContextParameter<? extends Entity> parameter)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/loot/context/LootContext$EntityReference;<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> Lfiy$c;<init>(Ljava/lang/String;ILjava/lang/String;Lbgt;)V
  • Method Details

    • values

      public static LootContext.EntityReference[] 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.EntityReference 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$EntityReference;getParameter()Lnet/minecraft/util/context/ContextParameter;
      intermediary method_315 Lnet/minecraft/class_47$class_50;method_315()Lnet/minecraft/class_169;
      official a Lfiy$c;a()Lbgt;
    • fromString

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