static class CopyNbtLootFunction.Operation extends Object
Modifier and Type | Field and Description |
---|---|
private CopyNbtLootFunction.Operator |
operator |
private NbtPathArgumentType.NbtPath |
parsedSourcePath |
private NbtPathArgumentType.NbtPath |
parsedTargetPath |
private String |
sourcePath |
private String |
targetPath |
Modifier | Constructor and Description |
---|---|
private |
Operation(String source,
String target,
CopyNbtLootFunction.Operator operator) |
Modifier and Type | Method and Description |
---|---|
void |
execute(Supplier<Tag> itemTagTagGetter,
Tag sourceEntityTag) |
static CopyNbtLootFunction.Operation |
fromJson(JsonObject json) |
JsonObject |
toJson() |
private final String sourcePath
private final NbtPathArgumentType.NbtPath parsedSourcePath
private final String targetPath
private final NbtPathArgumentType.NbtPath parsedTargetPath
private final CopyNbtLootFunction.Operator operator
private Operation(String source, String target, CopyNbtLootFunction.Operator operator)
public JsonObject toJson()
public static CopyNbtLootFunction.Operation fromJson(JsonObject json)