Enum Class NbtType

java.lang.Object
java.lang.Enum<NbtType>
com.kamikazejam.kamicommon.item.NbtType
All Implemented Interfaces:
Serializable, Comparable<NbtType>, Constable

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

    • STRING

      public static final NbtType STRING
    • BOOLEAN

      public static final NbtType BOOLEAN
    • BYTE

      public static final NbtType BYTE
    • SHORT

      public static final NbtType SHORT
    • INTEGER

      public static final NbtType INTEGER
    • LONG

      public static final NbtType LONG
    • FLOAT

      public static final NbtType FLOAT
    • DOUBLE

      public static final NbtType DOUBLE
    • BYTE_ARRAY

      public static final NbtType BYTE_ARRAY
    • INT_ARRAY

      public static final NbtType INT_ARRAY
    • UUID

      public static final NbtType UUID
  • Field Details

    • CACHE

      public static final NbtType[] CACHE
  • Method Details

    • values

      public static NbtType[] 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 NbtType 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
    • readConf

      @NotNull public @NotNull Object readConf(ConfigurationSection section, String key)
    • write

      public void write(de.tr7zw.changeme.nbtapi.iface.ReadWriteItemNBT item, String key, Object o)
    • read

      @NotNull public @NotNull Object read(de.tr7zw.changeme.nbtapi.iface.ReadableNBT item, String key)
    • fromName

      @NotNull public static @NotNull NbtType fromName(String name)
    • convertByteList

      public static byte[] convertByteList(List<Byte> list)
    • convertIntList

      public static int[] convertIntList(List<Integer> list)
    • matchNBTAPI

      @Nullable public static @Nullable NbtType matchNBTAPI(de.tr7zw.changeme.nbtapi.NBTType type)