Enum Class TagType

java.lang.Object
java.lang.Enum<TagType>
net.glowstone.util.nbt.TagType
All Implemented Interfaces:
Serializable, Comparable<TagType>, Constable

public enum TagType extends Enum<TagType>
The types of NBT tags that exist.
  • Enum Constant Details

    • END

      public static final TagType END
    • BYTE

      public static final TagType BYTE
    • SHORT

      public static final TagType SHORT
    • INT

      public static final TagType INT
    • LONG

      public static final TagType LONG
    • FLOAT

      public static final TagType FLOAT
    • DOUBLE

      public static final TagType DOUBLE
    • BYTE_ARRAY

      public static final TagType BYTE_ARRAY
    • STRING

      public static final TagType STRING
    • LIST

      public static final TagType LIST
    • COMPOUND

      public static final TagType COMPOUND
    • INT_ARRAY

      public static final TagType INT_ARRAY
    • LONG_ARRAY

      public static final TagType LONG_ARRAY
  • Method Details

    • values

      public static TagType[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static TagType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • byId

      public static TagType byId(int id)
      Returns the tag type with a given ID.
      Parameters:
      id - the ID to look up
      Returns:
      the tag type with ID id, or null if none exists
    • getId

      public byte getId()
    • getName

      public String getName()