Enum Class CopyNbtLootFunction.Operator

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

public static enum CopyNbtLootFunction.Operator extends Enum<CopyNbtLootFunction.Operator> implements StringIdentifiable
Mappings:
Namespace Name
named net/minecraft/loot/function/CopyNbtLootFunction$Operator
intermediary net/minecraft/class_3837$class_3841
official exp$c
  • Enum Constant Details

    • REPLACE

      public static final CopyNbtLootFunction.Operator REPLACE
      Mappings:
      Namespace Name Mixin selector
      named REPLACE Lnet/minecraft/loot/function/CopyNbtLootFunction$Operator;REPLACE:Lnet/minecraft/loot/function/CopyNbtLootFunction$Operator;
      intermediary field_17032 Lnet/minecraft/class_3837$class_3841;field_17032:Lnet/minecraft/class_3837$class_3841;
      official a Lexp$c;a:Lexp$c;
    • APPEND

      public static final CopyNbtLootFunction.Operator APPEND
      Mappings:
      Namespace Name Mixin selector
      named APPEND Lnet/minecraft/loot/function/CopyNbtLootFunction$Operator;APPEND:Lnet/minecraft/loot/function/CopyNbtLootFunction$Operator;
      intermediary field_17033 Lnet/minecraft/class_3837$class_3841;field_17033:Lnet/minecraft/class_3837$class_3841;
      official b Lexp$c;b:Lexp$c;
    • MERGE

      public static final CopyNbtLootFunction.Operator MERGE
      Mappings:
      Namespace Name Mixin selector
      named MERGE Lnet/minecraft/loot/function/CopyNbtLootFunction$Operator;MERGE:Lnet/minecraft/loot/function/CopyNbtLootFunction$Operator;
      intermediary field_17034 Lnet/minecraft/class_3837$class_3841;field_17034:Lnet/minecraft/class_3837$class_3841;
      official c Lexp$c;c:Lexp$c;
  • Field Details

    • CODEC

      public static final com.mojang.serialization.Codec<CopyNbtLootFunction.Operator> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/loot/function/CopyNbtLootFunction$Operator;CODEC:Lcom/mojang/serialization/Codec;
      intermediary field_45821 Lnet/minecraft/class_3837$class_3841;field_45821:Lcom/mojang/serialization/Codec;
      official d Lexp$c;d:Lcom/mojang/serialization/Codec;
    • name

      private final String name
      Mappings:
      Namespace Name Mixin selector
      named name Lnet/minecraft/loot/function/CopyNbtLootFunction$Operator;name:Ljava/lang/String;
      intermediary field_17035 Lnet/minecraft/class_3837$class_3841;field_17035:Ljava/lang/String;
      official e Lexp$c;e:Ljava/lang/String;
  • Constructor Details

    • Operator

      private Operator(String name)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/loot/function/CopyNbtLootFunction$Operator;<init>(Ljava/lang/String;ILjava/lang/String;)V
      intermediary <init> Lnet/minecraft/class_3837$class_3841;<init>(Ljava/lang/String;ILjava/lang/String;)V
      official <init> Lexp$c;<init>(Ljava/lang/String;ILjava/lang/String;)V
  • Method Details

    • values

      public static CopyNbtLootFunction.Operator[] 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 CopyNbtLootFunction.Operator 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
    • merge

      public abstract void merge(NbtElement itemNbt, NbtPathArgumentType.NbtPath targetPath, List<NbtElement> sourceNbts) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
      Mappings:
      Namespace Name Mixin selector
      named merge Lnet/minecraft/loot/function/CopyNbtLootFunction$Operator;merge(Lnet/minecraft/nbt/NbtElement;Lnet/minecraft/command/argument/NbtPathArgumentType$NbtPath;Ljava/util/List;)V
      intermediary method_16864 Lnet/minecraft/class_3837$class_3841;method_16864(Lnet/minecraft/class_2520;Lnet/minecraft/class_2203$class_2209;Ljava/util/List;)V
      official a Lexp$c;a(Lvu;Lfo$g;Ljava/util/List;)V
    • 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;