Class Tag

java.lang.Object
net.citizensnpcs.api.jnbt.Tag
Direct Known Subclasses:
ByteArrayTag, ByteTag, CompoundTag, DoubleTag, EndTag, FloatTag, IntArrayTag, IntTag, ListTag, LongTag, ShortTag, StringTag

public abstract class Tag extends Object
Represents a single NBT tag.
  • Constructor Details

    • Tag

      public Tag(String name)
      Creates the tag with the specified name.
      Parameters:
      name - The name.
  • Method Details

    • getName

      public final String getName()
      Gets the name of this tag.
      Returns:
      The name of this tag.
    • getValue

      public abstract Object getValue()
      Gets the value of this tag.
      Returns:
      The value of this tag.