public static enum CopyNbtLootFunction.Operator extends Enum<CopyNbtLootFunction.Operator>
Modifier and Type | Method and Description |
---|---|
static CopyNbtLootFunction.Operator |
get(String name) |
abstract void |
merge(Tag itemTag,
NbtPathArgumentType.NbtPath targetPath,
List<Tag> sourceTags) |
static CopyNbtLootFunction.Operator |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CopyNbtLootFunction.Operator[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CopyNbtLootFunction.Operator REPLACE
public static final CopyNbtLootFunction.Operator APPEND
public static final CopyNbtLootFunction.Operator MERGE
private final String name
public static CopyNbtLootFunction.Operator[] values()
for (CopyNbtLootFunction.Operator c : CopyNbtLootFunction.Operator.values()) System.out.println(c);
public static CopyNbtLootFunction.Operator valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic abstract void merge(Tag itemTag, NbtPathArgumentType.NbtPath targetPath, List<Tag> sourceTags)
public static CopyNbtLootFunction.Operator get(String name)