Enum Class TagId

java.lang.Object
java.lang.Enum<TagId>
meteordevelopment.nbt.tags.TagId
All Implemented Interfaces:
Serializable, Comparable<TagId>, Constable

public enum TagId extends Enum<TagId>
  • Enum Constant Details

    • End

      public static final TagId End
    • Byte

      public static final TagId Byte
    • Short

      public static final TagId Short
    • Int

      public static final TagId Int
    • Long

      public static final TagId Long
    • Float

      public static final TagId Float
    • Double

      public static final TagId Double
    • ByteArray

      public static final TagId ByteArray
    • String

      public static final TagId String
    • List

      public static final TagId List
    • Compound

      public static final TagId Compound
    • IntArray

      public static final TagId IntArray
    • LongArray

      public static final TagId LongArray
  • Method Details

    • values

      public static TagId[] 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 TagId 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
    • isValid

      public static boolean isValid(int i)
    • valueOf

      public static TagId valueOf(int i)
      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:
      i - 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