Class TagUtils

java.lang.Object
net.lenni0451.imnbt.utils.nbt.TagUtils

public class TagUtils extends Object
  • Constructor Details

    • TagUtils

      public TagUtils()
  • Method Details

    • findUniqueName

      public static String findUniqueName(net.lenni0451.mcstructs.nbt.tags.CompoundTag compound, String name)
      Find a new unique name for a tag in a compound.
      Parameters:
      compound - The compound to search in
      name - The name to start with
      Returns:
      The new unique name
    • size

      public static int size(net.lenni0451.mcstructs.nbt.NbtTag tag)
      Count the total amount of tags in a tag.
      Parameters:
      tag - The tag to count
      Returns:
      The amount of tags