Package net.minecraft.loot.functions
Enum CopyNbt.Action
- java.lang.Object
-
- java.lang.Enum<CopyNbt.Action>
-
- net.minecraft.loot.functions.CopyNbt.Action
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<CopyNbt.Action>
- Enclosing class:
- CopyNbt
public static enum CopyNbt.Action extends java.lang.Enum<CopyNbt.Action>
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
name
-
Constructor Summary
Constructors Modifier Constructor Description private
Action(java.lang.String p_i50670_3_)
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static CopyNbt.Action
getByName(java.lang.String p_216229_0_)
abstract void
merge(INBT p_216227_1_, NBTPathArgument.NBTPath p_216227_2_, java.util.List<INBT> p_216227_3_)
static CopyNbt.Action
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static CopyNbt.Action[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
REPLACE
public static final CopyNbt.Action REPLACE
-
APPEND
public static final CopyNbt.Action APPEND
-
MERGE
public static final CopyNbt.Action MERGE
-
-
Method Detail
-
values
public static CopyNbt.Action[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (CopyNbt.Action c : CopyNbt.Action.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CopyNbt.Action valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
merge
public abstract void merge(INBT p_216227_1_, NBTPathArgument.NBTPath p_216227_2_, java.util.List<INBT> p_216227_3_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getByName
public static CopyNbt.Action getByName(java.lang.String p_216229_0_)
-
-