Enum Class LootContext.ItemStackReference

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

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

    • TOOL

      public static final LootContext.ItemStackReference TOOL
      Mappings:
      Namespace Name Mixin selector
      named TOOL Lnet/minecraft/loot/context/LootContext$ItemStackReference;TOOL:Lnet/minecraft/loot/context/LootContext$ItemStackReference;
      intermediary field_63054 Lnet/minecraft/class_47$class_12065;field_63054:Lnet/minecraft/class_47$class_12065;
      official a Lfiy$d;a:Lfiy$d;
  • Field Details

    • id

      private final String id
      Mappings:
      Namespace Name Mixin selector
      named id Lnet/minecraft/loot/context/LootContext$ItemStackReference;id:Ljava/lang/String;
      intermediary field_63055 Lnet/minecraft/class_47$class_12065;field_63055:Ljava/lang/String;
      official b Lfiy$d;b:Ljava/lang/String;
    • parameter

      private final ContextParameter<? extends ItemStack> parameter
      Mappings:
      Namespace Name Mixin selector
      named parameter Lnet/minecraft/loot/context/LootContext$ItemStackReference;parameter:Lnet/minecraft/util/context/ContextParameter;
      intermediary field_63056 Lnet/minecraft/class_47$class_12065;field_63056:Lnet/minecraft/class_169;
      official c Lfiy$d;c:Lbgt;
  • Constructor Details

    • ItemStackReference

      private ItemStackReference(String id, ContextParameter<? extends ItemStack> parameter)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/loot/context/LootContext$ItemStackReference;<init>(Ljava/lang/String;ILjava/lang/String;Lnet/minecraft/util/context/ContextParameter;)V
      intermediary <init> Lnet/minecraft/class_47$class_12065;<init>(Ljava/lang/String;ILjava/lang/String;Lnet/minecraft/class_169;)V
      official <init> Lfiy$d;<init>(Ljava/lang/String;ILjava/lang/String;Lbgt;)V
  • Method Details

    • values

      public static LootContext.ItemStackReference[] 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.ItemStackReference 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 ItemStack> getParameter()
      Mappings:
      Namespace Name Mixin selector
      named getParameter Lnet/minecraft/loot/context/LootContext$ItemStackReference;getParameter()Lnet/minecraft/util/context/ContextParameter;
      intermediary method_74899 Lnet/minecraft/class_47$class_12065;method_74899()Lnet/minecraft/class_169;
      official a Lfiy$d;a()Lbgt;
    • 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;