Enum Class NbtType

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

@Deprecated public enum NbtType extends Enum<NbtType>
Deprecated.
NBT config parsing was removed in v5. ItemBuilderLoader no longer reads an nbt block and nothing writes NBT from config, so the config-reading half of this enum has no caller. It remains only for CmdItemDump, which uses matchNBTAPI(NBTType) to name the type of NBT already present on an item.
  • Enum Constant Details

    • STRING

      public static final NbtType STRING
      Deprecated.
    • BOOLEAN

      public static final NbtType BOOLEAN
      Deprecated.
    • BYTE

      public static final NbtType BYTE
      Deprecated.
    • SHORT

      public static final NbtType SHORT
      Deprecated.
    • INTEGER

      public static final NbtType INTEGER
      Deprecated.
    • LONG

      public static final NbtType LONG
      Deprecated.
    • FLOAT

      public static final NbtType FLOAT
      Deprecated.
    • DOUBLE

      public static final NbtType DOUBLE
      Deprecated.
    • BYTE_ARRAY

      public static final NbtType BYTE_ARRAY
      Deprecated.
    • INT_ARRAY

      public static final NbtType INT_ARRAY
      Deprecated.
    • UUID

      public static final NbtType UUID
      Deprecated.
  • Field Details

    • CACHE

      public static final NbtType[] CACHE
      Deprecated.
  • Method Details

    • values

      public static NbtType[] values()
      Deprecated.
      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)
      Deprecated.
      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)
      Deprecated.
    • write

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

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

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

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

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

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