Enum Class SetNameLootFunction.Target

java.lang.Object
java.lang.Enum<SetNameLootFunction.Target>
net.minecraft.loot.function.SetNameLootFunction.Target
All Implemented Interfaces:
Serializable, Comparable<SetNameLootFunction.Target>, Constable, StringIdentifiable
Enclosing class:
SetNameLootFunction

public static enum SetNameLootFunction.Target extends Enum<SetNameLootFunction.Target> implements StringIdentifiable
Mappings:
Namespace Name
named net/minecraft/loot/function/SetNameLootFunction$Target
intermediary net/minecraft/class_3670$class_9475
official eyx$a
  • Enum Constant Details

    • CUSTOM_NAME

      public static final SetNameLootFunction.Target CUSTOM_NAME
      Mappings:
      Namespace Name Mixin selector
      named CUSTOM_NAME Lnet/minecraft/loot/function/SetNameLootFunction$Target;CUSTOM_NAME:Lnet/minecraft/loot/function/SetNameLootFunction$Target;
      intermediary field_50210 Lnet/minecraft/class_3670$class_9475;field_50210:Lnet/minecraft/class_3670$class_9475;
      official a Leyx$a;a:Leyx$a;
    • ITEM_NAME

      public static final SetNameLootFunction.Target ITEM_NAME
      Mappings:
      Namespace Name Mixin selector
      named ITEM_NAME Lnet/minecraft/loot/function/SetNameLootFunction$Target;ITEM_NAME:Lnet/minecraft/loot/function/SetNameLootFunction$Target;
      intermediary field_50211 Lnet/minecraft/class_3670$class_9475;field_50211:Lnet/minecraft/class_3670$class_9475;
      official b Leyx$a;b:Leyx$a;
  • Field Details

    • CODEC

      public static final com.mojang.serialization.Codec<SetNameLootFunction.Target> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/loot/function/SetNameLootFunction$Target;CODEC:Lcom/mojang/serialization/Codec;
      intermediary field_50212 Lnet/minecraft/class_3670$class_9475;field_50212:Lcom/mojang/serialization/Codec;
      official c Leyx$a;c:Lcom/mojang/serialization/Codec;
    • id

      private final String id
      Mappings:
      Namespace Name Mixin selector
      named id Lnet/minecraft/loot/function/SetNameLootFunction$Target;id:Ljava/lang/String;
      intermediary field_50213 Lnet/minecraft/class_3670$class_9475;field_50213:Ljava/lang/String;
      official d Leyx$a;d:Ljava/lang/String;
  • Constructor Details

    • Target

      private Target(String id)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/loot/function/SetNameLootFunction$Target;<init>(Ljava/lang/String;ILjava/lang/String;)V
      intermediary <init> Lnet/minecraft/class_3670$class_9475;<init>(Ljava/lang/String;ILjava/lang/String;)V
      official <init> Leyx$a;<init>(Ljava/lang/String;ILjava/lang/String;)V
  • Method Details

    • values

      public static SetNameLootFunction.Target[] 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 SetNameLootFunction.Target 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 Lbba;c()Ljava/lang/String;
    • getComponentType

      public ComponentType<Text> getComponentType()
      Mappings:
      Namespace Name Mixin selector
      named getComponentType Lnet/minecraft/loot/function/SetNameLootFunction$Target;getComponentType()Lnet/minecraft/component/ComponentType;
      intermediary method_58734 Lnet/minecraft/class_3670$class_9475;method_58734()Lnet/minecraft/class_9331;
      official a Leyx$a;a()Lkt;