Enum NBTType

java.lang.Object
java.lang.Enum<NBTType>
beer.devs.fastnbt.nms.nbt.NBTType
All Implemented Interfaces:
Serializable, Comparable<NBTType>, java.lang.constant.Constable

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

    • End

      public static final NBTType End
    • Byte

      public static final NBTType Byte
    • Short

      public static final NBTType Short
    • Int

      public static final NBTType Int
    • Long

      public static final NBTType Long
    • Float

      public static final NBTType Float
    • Double

      public static final NBTType Double
    • ByteArray

      public static final NBTType ByteArray
    • String

      public static final NBTType String
    • List

      public static final NBTType List
    • Compound

      public static final NBTType Compound
    • IntArray

      public static final NBTType IntArray
    • LongArray

      public static final NBTType LongArray
    • AnyNumeric

      public static final NBTType AnyNumeric
    • UNKNOWN

      public static final NBTType UNKNOWN
  • Field Details

    • id

      public final int id
  • Method Details

    • values

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

      public static NBTType valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
      NullPointerException - if the argument is null
    • byId

      public static NBTType byId(byte id)