Class DiffMap
java.lang.Object
net.lenni0451.imnbt.utils.nbt.diff.DiffMap
A map to store the diff result.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddBoth(net.lenni0451.mcstructs.nbt.NbtTag left, net.lenni0451.mcstructs.nbt.NbtTag right, String path, DiffType type) Add a node to both sides and fill the parents and children.voidAdd a node to the left side and fill the parents and children.voidAdd a node to the right side and fill the parents and children.Get the diff type of a node on the left side.Get the diff type of a node on the right side.toString()
-
Constructor Details
-
DiffMap
public DiffMap()
-
-
Method Details
-
addLeft
Add a node to the left side and fill the parents and children.- Parameters:
tag- The tag to addpath- The path of the tagtype- The type of the tag
-
addRight
Add a node to the right side and fill the parents and children.- Parameters:
tag- The tag to addpath- The path of the tagtype- The type of the tag
-
addBoth
public void addBoth(net.lenni0451.mcstructs.nbt.NbtTag left, net.lenni0451.mcstructs.nbt.NbtTag right, String path, DiffType type) Add a node to both sides and fill the parents and children.- Parameters:
left- The tag to add to the left sideright- The tag to add to the right sidepath- The path of the tagstype- The type of the tags
-
getLeft
Get the diff type of a node on the left side.- Parameters:
path- The path of the node- Returns:
- The diff type
-
getRight
Get the diff type of a node on the right side.- Parameters:
path- The path of the node- Returns:
- The diff type
-
toString
-