Class DiffMap

java.lang.Object
net.lenni0451.imnbt.utils.nbt.diff.DiffMap

public class DiffMap extends Object
A map to store the diff result.
  • Constructor Details

    • DiffMap

      public DiffMap()
  • Method Details

    • addLeft

      public void addLeft(net.lenni0451.mcstructs.nbt.NbtTag tag, String path, DiffType type)
      Add a node to the left side and fill the parents and children.
      Parameters:
      tag - The tag to add
      path - The path of the tag
      type - The type of the tag
    • addRight

      public void addRight(net.lenni0451.mcstructs.nbt.NbtTag tag, String path, DiffType type)
      Add a node to the right side and fill the parents and children.
      Parameters:
      tag - The tag to add
      path - The path of the tag
      type - 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 side
      right - The tag to add to the right side
      path - The path of the tags
      type - The type of the tags
    • getLeft

      @Nonnull public DiffType getLeft(String path)
      Get the diff type of a node on the left side.
      Parameters:
      path - The path of the node
      Returns:
      The diff type
    • getRight

      @Nonnull public DiffType getRight(String path)
      Get the diff type of a node on the right side.
      Parameters:
      path - The path of the node
      Returns:
      The diff type
    • toString

      public String toString()
      Overrides:
      toString in class Object