Enum Class CopyComponentsLootFunction.Source

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

public static enum CopyComponentsLootFunction.Source extends Enum<CopyComponentsLootFunction.Source> implements StringIdentifiable
Mappings:
Namespace Name
official epl$b
intermediary net/minecraft/class_9317$class_9319
named net/minecraft/loot/function/CopyComponentsLootFunction$Source
  • Enum Constant Details

    • BLOCK_ENTITY

      public static final CopyComponentsLootFunction.Source BLOCK_ENTITY
      Mappings:
      Namespace Name Mixin selector
      official a Lepl$b;a:Lepl$b;
      intermediary field_49436 Lnet/minecraft/class_9317$class_9319;field_49436:Lnet/minecraft/class_9317$class_9319;
      named BLOCK_ENTITY Lnet/minecraft/loot/function/CopyComponentsLootFunction$Source;BLOCK_ENTITY:Lnet/minecraft/loot/function/CopyComponentsLootFunction$Source;
  • Field Details

    • CODEC

      public static final com.mojang.serialization.Codec<CopyComponentsLootFunction.Source> CODEC
      Mappings:
      Namespace Name Mixin selector
      official b Lepl$b;b:Lcom/mojang/serialization/Codec;
      intermediary field_49437 Lnet/minecraft/class_9317$class_9319;field_49437:Lcom/mojang/serialization/Codec;
      named CODEC Lnet/minecraft/loot/function/CopyComponentsLootFunction$Source;CODEC:Lcom/mojang/serialization/Codec;
    • id

      private final String id
      Mappings:
      Namespace Name Mixin selector
      official c Lepl$b;c:Ljava/lang/String;
      intermediary field_49438 Lnet/minecraft/class_9317$class_9319;field_49438:Ljava/lang/String;
      named id Lnet/minecraft/loot/function/CopyComponentsLootFunction$Source;id:Ljava/lang/String;
  • Constructor Details

    • Source

      private Source(String id)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lepl$b;<init>(Ljava/lang/String;ILjava/lang/String;)V
      intermediary <init> Lnet/minecraft/class_9317$class_9319;<init>(Ljava/lang/String;ILjava/lang/String;)V
      named <init> Lnet/minecraft/loot/function/CopyComponentsLootFunction$Source;<init>(Ljava/lang/String;ILjava/lang/String;)V
  • Method Details

    • values

      public static CopyComponentsLootFunction.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 CopyComponentsLootFunction.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
    • getComponents

      public ComponentMap getComponents(LootContext context)
      Mappings:
      Namespace Name Mixin selector
      official a Lepl$b;a(Leol;)Ljw;
      intermediary method_57644 Lnet/minecraft/class_9317$class_9319;method_57644(Lnet/minecraft/class_47;)Lnet/minecraft/class_9323;
      named getComponents Lnet/minecraft/loot/function/CopyComponentsLootFunction$Source;getComponents(Lnet/minecraft/loot/context/LootContext;)Lnet/minecraft/component/ComponentMap;
    • getRequiredParameters

      public Set<LootContextParameter<?>> getRequiredParameters()
      Mappings:
      Namespace Name Mixin selector
      official a Lepl$b;a()Ljava/util/Set;
      intermediary method_57643 Lnet/minecraft/class_9317$class_9319;method_57643()Ljava/util/Set;
      named getRequiredParameters Lnet/minecraft/loot/function/CopyComponentsLootFunction$Source;getRequiredParameters()Ljava/util/Set;
    • 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
      official c Layt;c()Ljava/lang/String;
      intermediary method_15434 Lnet/minecraft/class_3542;method_15434()Ljava/lang/String;
      named asString Lnet/minecraft/util/StringIdentifiable;asString()Ljava/lang/String;