Package net.lenni0451.imnbt.utils.nbt
Class TagUtils
java.lang.Object
net.lenni0451.imnbt.utils.nbt.TagUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringfindUniqueName(net.lenni0451.mcstructs.nbt.tags.CompoundTag compound, String name) Find a new unique name for a tag in a compound.static intsize(net.lenni0451.mcstructs.nbt.NbtTag tag) Count the total amount of tags in a tag.
-
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 inname- 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
-