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
named net/minecraft/loot/function/CopyComponentsLootFunction$Source
intermediary net/minecraft/class_9317$class_9319
official ews$b
  • Enum Constant Details Link icon

    • BLOCK_ENTITY Link icon

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

    • CODEC Link icon

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

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

    • Source Link icon

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

    • values Link icon

      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 Link icon

      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 Link icon

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

      public Set<ContextParameter<?>> getRequiredParameters()
      Mappings:
      Namespace Name Mixin selector
      named getRequiredParameters Lnet/minecraft/loot/function/CopyComponentsLootFunction$Source;getRequiredParameters()Ljava/util/Set;
      intermediary method_57643 Lnet/minecraft/class_9317$class_9319;method_57643()Ljava/util/Set;
      official a Lews$b;a()Ljava/util/Set;
    • asString Link icon

      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 Lazv;c()Ljava/lang/String;