Class Tag<T>

java.lang.Object
net.glowstone.util.nbt.Tag<T>
Direct Known Subclasses:
ByteArrayTag, CompoundTag, IntArrayTag, ListTag, LongArrayTag, NumericTag, StringTag

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

  • Method Details

    • getValue

      public abstract T getValue()
      Gets the value of this tag.
      Returns:
      The value of this tag.
    • toString

      public final String toString()
      Overrides:
      toString in class Object
    • equals

      public final boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public final int hashCode()
      Overrides:
      hashCode in class Object
    • valueToString

      protected void valueToString(StringBuilder builder)
    • getType

      public TagType getType()
      The type of this tag.