Package net.minecraft.loot.function
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 official edk$cintermediary net/minecraft/class_3837$class_3841named net/minecraft/loot/function/CopyNbtLootFunction$Operator
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>Nested classes/interfaces inherited from interface net.minecraft.util.StringIdentifiable
StringIdentifiable.Codec<E extends Enum<E> & StringIdentifiable> -
Enum Constant Summary
Enum Constants -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringIdentifiable.Codec<CopyNbtLootFunction.Operator>private final StringFields inherited from interface net.minecraft.util.StringIdentifiable
field_38377 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionasString()Returns the unique string representation of the enum, used for serialization.abstract voidmerge(NbtElement itemNbt, NbtPathArgumentType.NbtPath targetPath, List<NbtElement> sourceNbts) static CopyNbtLootFunction.OperatorReturns the enum constant of this class with the specified name.static CopyNbtLootFunction.Operator[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
REPLACE
- Mappings:
Namespace Name Mixin selector official aLedk$c;a:Ledk$c;intermediary field_17032Lnet/minecraft/class_3837$class_3841;field_17032:Lnet/minecraft/class_3837$class_3841;named REPLACELnet/minecraft/loot/function/CopyNbtLootFunction$Operator;REPLACE:Lnet/minecraft/loot/function/CopyNbtLootFunction$Operator;
-
APPEND
- Mappings:
Namespace Name Mixin selector official bLedk$c;b:Ledk$c;intermediary field_17033Lnet/minecraft/class_3837$class_3841;field_17033:Lnet/minecraft/class_3837$class_3841;named APPENDLnet/minecraft/loot/function/CopyNbtLootFunction$Operator;APPEND:Lnet/minecraft/loot/function/CopyNbtLootFunction$Operator;
-
MERGE
- Mappings:
Namespace Name Mixin selector official cLedk$c;c:Ledk$c;intermediary field_17034Lnet/minecraft/class_3837$class_3841;field_17034:Lnet/minecraft/class_3837$class_3841;named MERGELnet/minecraft/loot/function/CopyNbtLootFunction$Operator;MERGE:Lnet/minecraft/loot/function/CopyNbtLootFunction$Operator;
-
-
Field Details
-
CODEC
- Mappings:
Namespace Name Mixin selector official dLedk$c;d:Lcom/mojang/serialization/Codec;intermediary field_45821Lnet/minecraft/class_3837$class_3841;field_45821:Lcom/mojang/serialization/Codec;named CODECLnet/minecraft/loot/function/CopyNbtLootFunction$Operator;CODEC:Lcom/mojang/serialization/Codec;
-
name
- Mappings:
Namespace Name Mixin selector official eLedk$c;e:Ljava/lang/String;intermediary field_17035Lnet/minecraft/class_3837$class_3841;field_17035:Ljava/lang/String;named nameLnet/minecraft/loot/function/CopyNbtLootFunction$Operator;name:Ljava/lang/String;
-
-
Constructor Details
-
Operator
- Mappings:
Namespace Name Mixin selector official <init>Ledk$c;<init>(Ljava/lang/String;ILjava/lang/String;)Vintermediary <init>Lnet/minecraft/class_3837$class_3841;<init>(Ljava/lang/String;ILjava/lang/String;)Vnamed <init>Lnet/minecraft/loot/function/CopyNbtLootFunction$Operator;<init>(Ljava/lang/String;ILjava/lang/String;)V
-
-
Method Details
-
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
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 nameNullPointerException- 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 official aLedk$c;a(Lrk;Leh$g;Ljava/util/List;)Vintermediary method_16864Lnet/minecraft/class_3837$class_3841;method_16864(Lnet/minecraft/class_2520;Lnet/minecraft/class_2203$class_2209;Ljava/util/List;)Vnamed mergeLnet/minecraft/loot/function/CopyNbtLootFunction$Operator;merge(Lnet/minecraft/nbt/NbtElement;Lnet/minecraft/command/argument/NbtPathArgumentType$NbtPath;Ljava/util/List;)V
-
asString
Returns the unique string representation of the enum, used for serialization.- Specified by:
asStringin interfaceStringIdentifiable- Returns:
- the unique string representation of the enum, used for serialization
- Mappings:
Namespace Name Mixin selector official cLash;c()Ljava/lang/String;intermediary method_15434Lnet/minecraft/class_3542;method_15434()Ljava/lang/String;named asStringLnet/minecraft/util/StringIdentifiable;asString()Ljava/lang/String;
-