Package net.minecraft.loot.functions
Class CopyNbt.Operation
- java.lang.Object
-
- net.minecraft.loot.functions.CopyNbt.Operation
-
- Enclosing class:
- CopyNbt
static class CopyNbt.Operation extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private CopyNbt.Action
op
private NBTPathArgument.NBTPath
sourcePath
private java.lang.String
sourcePathText
private NBTPathArgument.NBTPath
targetPath
private java.lang.String
targetPathText
-
Constructor Summary
Constructors Modifier Constructor Description private
Operation(java.lang.String p_i50673_1_, java.lang.String p_i50673_2_, CopyNbt.Action p_i50673_3_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
apply(java.util.function.Supplier<INBT> p_216216_1_, INBT p_216216_2_)
static CopyNbt.Operation
fromJson(com.google.gson.JsonObject p_216215_0_)
com.google.gson.JsonObject
toJson()
-
-
-
Field Detail
-
sourcePathText
private final java.lang.String sourcePathText
-
sourcePath
private final NBTPathArgument.NBTPath sourcePath
-
targetPathText
private final java.lang.String targetPathText
-
targetPath
private final NBTPathArgument.NBTPath targetPath
-
op
private final CopyNbt.Action op
-
-
Constructor Detail
-
Operation
private Operation(java.lang.String p_i50673_1_, java.lang.String p_i50673_2_, CopyNbt.Action p_i50673_3_)
-
-
Method Detail
-
toJson
public com.google.gson.JsonObject toJson()
-
fromJson
public static CopyNbt.Operation fromJson(com.google.gson.JsonObject p_216215_0_)
-
-