Enum Class CopyNameLootFunction.Source

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

public static enum CopyNameLootFunction.Source extends Enum<CopyNameLootFunction.Source> implements StringIdentifiable
Mappings:
Namespace Name
named net/minecraft/loot/function/CopyNameLootFunction$Source
intermediary net/minecraft/class_101$class_102
official erm$a
  • Enum Constant Details

    • THIS

      public static final CopyNameLootFunction.Source THIS
      Mappings:
      Namespace Name Mixin selector
      named THIS Lnet/minecraft/loot/function/CopyNameLootFunction$Source;THIS:Lnet/minecraft/loot/function/CopyNameLootFunction$Source;
      intermediary field_1022 Lnet/minecraft/class_101$class_102;field_1022:Lnet/minecraft/class_101$class_102;
      official a Lerm$a;a:Lerm$a;
    • KILLER

      public static final CopyNameLootFunction.Source KILLER
      Mappings:
      Namespace Name Mixin selector
      named KILLER Lnet/minecraft/loot/function/CopyNameLootFunction$Source;KILLER:Lnet/minecraft/loot/function/CopyNameLootFunction$Source;
      intermediary field_1019 Lnet/minecraft/class_101$class_102;field_1019:Lnet/minecraft/class_101$class_102;
      official b Lerm$a;b:Lerm$a;
    • KILLER_PLAYER

      public static final CopyNameLootFunction.Source KILLER_PLAYER
      Mappings:
      Namespace Name Mixin selector
      named KILLER_PLAYER Lnet/minecraft/loot/function/CopyNameLootFunction$Source;KILLER_PLAYER:Lnet/minecraft/loot/function/CopyNameLootFunction$Source;
      intermediary field_1020 Lnet/minecraft/class_101$class_102;field_1020:Lnet/minecraft/class_101$class_102;
      official c Lerm$a;c:Lerm$a;
    • BLOCK_ENTITY

      public static final CopyNameLootFunction.Source BLOCK_ENTITY
      Mappings:
      Namespace Name Mixin selector
      named BLOCK_ENTITY Lnet/minecraft/loot/function/CopyNameLootFunction$Source;BLOCK_ENTITY:Lnet/minecraft/loot/function/CopyNameLootFunction$Source;
      intermediary field_1023 Lnet/minecraft/class_101$class_102;field_1023:Lnet/minecraft/class_101$class_102;
      official d Lerm$a;d:Lerm$a;
  • Field Details

    • CODEC

      public static final com.mojang.serialization.Codec<CopyNameLootFunction.Source> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/loot/function/CopyNameLootFunction$Source;CODEC:Lcom/mojang/serialization/Codec;
      intermediary field_45818 Lnet/minecraft/class_101$class_102;field_45818:Lcom/mojang/serialization/Codec;
      official e Lerm$a;e:Lcom/mojang/serialization/Codec;
    • name

      private final String name
      Mappings:
      Namespace Name Mixin selector
      named name Lnet/minecraft/loot/function/CopyNameLootFunction$Source;name:Ljava/lang/String;
      intermediary field_1025 Lnet/minecraft/class_101$class_102;field_1025:Ljava/lang/String;
      official f Lerm$a;f:Ljava/lang/String;
    • parameter

      final LootContextParameter<?> parameter
      Mappings:
      Namespace Name Mixin selector
      named parameter Lnet/minecraft/loot/function/CopyNameLootFunction$Source;parameter:Lnet/minecraft/loot/context/LootContextParameter;
      intermediary field_1024 Lnet/minecraft/class_101$class_102;field_1024:Lnet/minecraft/class_169;
      official g Lerm$a;g:Letd;
  • Constructor Details

    • Source

      private Source(String name, LootContextParameter<?> parameter)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/loot/function/CopyNameLootFunction$Source;<init>(Ljava/lang/String;ILjava/lang/String;Lnet/minecraft/loot/context/LootContextParameter;)V
      intermediary <init> Lnet/minecraft/class_101$class_102;<init>(Ljava/lang/String;ILjava/lang/String;Lnet/minecraft/class_169;)V
      official <init> Lerm$a;<init>(Ljava/lang/String;ILjava/lang/String;Letd;)V
  • Method Details

    • values

      public static CopyNameLootFunction.Source[] 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 CopyNameLootFunction.Source 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 Lazu;c()Ljava/lang/String;