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 exo$b
  • Enum Constant Details

    • BLOCK_ENTITY

      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 Lexo$b;a:Lexo$b;
  • Field Details

    • CODEC

      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 Lexo$b;b:Lcom/mojang/serialization/Codec;
    • id

      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 Lexo$b;c:Ljava/lang/String;
  • Constructor Details

    • Source

      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> Lexo$b;<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
      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 Lexo$b;a(Lewo;)Lkq;
    • getRequiredParameters

      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 Lexo$b;a()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
      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;