Interface CompoundNBT


@Deprecated public interface CompoundNBT
Deprecated.
Will be removed in version 3.3.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    containsTag(org.spongepowered.plugin.PluginContainer container, String key)
    Deprecated.
    Checking for the presence of a tag.
    getAllKeys(org.spongepowered.plugin.PluginContainer container)
    Deprecated.
    Getting all the keys.
    getBoolean(org.spongepowered.plugin.PluginContainer container, String key)
    Deprecated.
    Getting the tag value.
    getByte(org.spongepowered.plugin.PluginContainer container, String key)
    Deprecated.
    Getting the tag value.
    Optional<byte[]>
    getByteArray(org.spongepowered.plugin.PluginContainer container, String key)
    Deprecated.
    Getting the tag value.
    getDouble(org.spongepowered.plugin.PluginContainer container, String key)
    Deprecated.
    Getting the tag value.
    getFloat(org.spongepowered.plugin.PluginContainer container, String key)
    Deprecated.
    Getting the tag value.
    Optional<int[]>
    getIntArray(org.spongepowered.plugin.PluginContainer container, String key)
    Deprecated.
    Getting the tag value.
    getInteger(org.spongepowered.plugin.PluginContainer container, String key)
    Deprecated.
    Getting the tag value.
    getIntList(org.spongepowered.plugin.PluginContainer container, String key)
    Deprecated.
    Getting the tag value.
    getLong(org.spongepowered.plugin.PluginContainer container, String key)
    Deprecated.
    Getting the tag value.
    Optional<long[]>
    getLongArray(org.spongepowered.plugin.PluginContainer container, String key)
    Deprecated.
    Getting the tag value.
    getLongList(org.spongepowered.plugin.PluginContainer container, String key)
    Deprecated.
    Getting the tag value.
    getShort(org.spongepowered.plugin.PluginContainer container, String key)
    Deprecated.
    Getting the tag value.
    getString(org.spongepowered.plugin.PluginContainer container, String key)
    Deprecated.
    Getting the tag value.
    <T extends CompoundTag>
    Optional<T>
    getTag(org.spongepowered.plugin.PluginContainer container, String key, Class<T> clazz)
    Deprecated.
    Getting the tag value.
    getUUID(org.spongepowered.plugin.PluginContainer container, String key)
    Deprecated.
    Getting the tag value.
    void
    putBoolean(org.spongepowered.plugin.PluginContainer container, String key, boolean value)
    Deprecated.
    Adding a tag.
    void
    putByte(org.spongepowered.plugin.PluginContainer container, String key, byte value)
    Deprecated.
    Adding a tag.
    void
    putByteArray(org.spongepowered.plugin.PluginContainer container, String key, byte[] value)
    Deprecated.
    Adding a tag.
    void
    putDouble(org.spongepowered.plugin.PluginContainer container, String key, double value)
    Deprecated.
    Adding a tag.
    void
    putFloat(org.spongepowered.plugin.PluginContainer container, String key, float value)
    Deprecated.
    Adding a tag.
    void
    putIntArray(org.spongepowered.plugin.PluginContainer container, String key, int[] value)
    Deprecated.
    Adding a tag.
    void
    putInteger(org.spongepowered.plugin.PluginContainer container, String key, int value)
    Deprecated.
    Adding a tag.
    void
    putIntList(org.spongepowered.plugin.PluginContainer container, String key, List<Integer> value)
    Deprecated.
    Adding a tag.
    void
    putLong(org.spongepowered.plugin.PluginContainer container, String key, long value)
    Deprecated.
    Adding a tag.
    void
    putLongArray(org.spongepowered.plugin.PluginContainer container, String key, long[] value)
    Deprecated.
    Adding a tag.
    void
    putLongList(org.spongepowered.plugin.PluginContainer container, String key, List<Long> value)
    Deprecated.
    Adding a tag.
    void
    putShort(org.spongepowered.plugin.PluginContainer container, String key, short value)
    Deprecated.
    Adding a tag.
    void
    putString(org.spongepowered.plugin.PluginContainer container, String key, String value)
    Deprecated.
    Adding a tag.
    void
    putTag(org.spongepowered.plugin.PluginContainer container, String key, CompoundTag tag)
    Deprecated.
    Adding a tag.
    void
    putUUID(org.spongepowered.plugin.PluginContainer container, String key, UUID value)
    Deprecated.
    Adding a tag.
    void
    remove(org.spongepowered.plugin.PluginContainer container, String key)
    Deprecated.
    Deleting a tag.
    int
    size(org.spongepowered.plugin.PluginContainer container)
    Deprecated.
    Getting the number of tags in ItemStack.
  • Method Details

    • remove

      void remove(org.spongepowered.plugin.PluginContainer container, String key)
      Deprecated.
      Deleting a tag.
    • containsTag

      boolean containsTag(org.spongepowered.plugin.PluginContainer container, String key)
      Deprecated.
      Checking for the presence of a tag.
    • putString

      void putString(org.spongepowered.plugin.PluginContainer container, String key, String value)
      Deprecated.
      Adding a tag. If a tag with the specified key already exists, it will be overwritten.
    • putUUID

      void putUUID(org.spongepowered.plugin.PluginContainer container, String key, UUID value)
      Deprecated.
      Adding a tag. If a tag with the specified key already exists, it will be overwritten.
    • putShort

      void putShort(org.spongepowered.plugin.PluginContainer container, String key, short value)
      Deprecated.
      Adding a tag. If a tag with the specified key already exists, it will be overwritten.
    • putInteger

      void putInteger(org.spongepowered.plugin.PluginContainer container, String key, int value)
      Deprecated.
      Adding a tag. If a tag with the specified key already exists, it will be overwritten.
    • putLong

      void putLong(org.spongepowered.plugin.PluginContainer container, String key, long value)
      Deprecated.
      Adding a tag. If a tag with the specified key already exists, it will be overwritten.
    • putFloat

      void putFloat(org.spongepowered.plugin.PluginContainer container, String key, float value)
      Deprecated.
      Adding a tag. If a tag with the specified key already exists, it will be overwritten.
    • putDouble

      void putDouble(org.spongepowered.plugin.PluginContainer container, String key, double value)
      Deprecated.
      Adding a tag. If a tag with the specified key already exists, it will be overwritten.
    • putByte

      void putByte(org.spongepowered.plugin.PluginContainer container, String key, byte value)
      Deprecated.
      Adding a tag. If a tag with the specified key already exists, it will be overwritten.
    • putBoolean

      void putBoolean(org.spongepowered.plugin.PluginContainer container, String key, boolean value)
      Deprecated.
      Adding a tag. If a tag with the specified key already exists, it will be overwritten.
    • putIntArray

      void putIntArray(org.spongepowered.plugin.PluginContainer container, String key, int[] value)
      Deprecated.
      Adding a tag. If a tag with the specified key already exists, it will be overwritten.
    • putIntList

      void putIntList(org.spongepowered.plugin.PluginContainer container, String key, List<Integer> value)
      Deprecated.
      Adding a tag. If a tag with the specified key already exists, it will be overwritten.
    • putLongArray

      void putLongArray(org.spongepowered.plugin.PluginContainer container, String key, long[] value)
      Deprecated.
      Adding a tag. If a tag with the specified key already exists, it will be overwritten.
    • putLongList

      void putLongList(org.spongepowered.plugin.PluginContainer container, String key, List<Long> value)
      Deprecated.
      Adding a tag. If a tag with the specified key already exists, it will be overwritten.
    • putByteArray

      void putByteArray(org.spongepowered.plugin.PluginContainer container, String key, byte[] value)
      Deprecated.
      Adding a tag. If a tag with the specified key already exists, it will be overwritten.
    • putTag

      void putTag(org.spongepowered.plugin.PluginContainer container, String key, CompoundTag tag)
      Deprecated.
      Adding a tag. If a tag with the specified key already exists, it will be overwritten.
      The class must be marked with the ConfigSerializable annotation.
      Only objects marked with the Setting annotation are saved.
    • getAllKeys

      Set<String> getAllKeys(org.spongepowered.plugin.PluginContainer container)
      Deprecated.
      Getting all the keys.
    • getString

      Optional<String> getString(org.spongepowered.plugin.PluginContainer container, String key)
      Deprecated.
      Getting the tag value. The method does not check for the type of value.
    • getUUID

      Optional<UUID> getUUID(org.spongepowered.plugin.PluginContainer container, String key)
      Deprecated.
      Getting the tag value. The method does not check for the type of value.
    • getShort

      Optional<Short> getShort(org.spongepowered.plugin.PluginContainer container, String key)
      Deprecated.
      Getting the tag value. The method does not check for the type of value.
    • getInteger

      Optional<Integer> getInteger(org.spongepowered.plugin.PluginContainer container, String key)
      Deprecated.
      Getting the tag value. The method does not check for the type of value.
    • getLong

      Optional<Long> getLong(org.spongepowered.plugin.PluginContainer container, String key)
      Deprecated.
      Getting the tag value. The method does not check for the type of value.
    • getFloat

      Optional<Float> getFloat(org.spongepowered.plugin.PluginContainer container, String key)
      Deprecated.
      Getting the tag value. The method does not check for the type of value.
    • getDouble

      Optional<Double> getDouble(org.spongepowered.plugin.PluginContainer container, String key)
      Deprecated.
      Getting the tag value. The method does not check for the type of value.
    • getByte

      Optional<Byte> getByte(org.spongepowered.plugin.PluginContainer container, String key)
      Deprecated.
      Getting the tag value. The method does not check for the type of value.
    • getBoolean

      Optional<Boolean> getBoolean(org.spongepowered.plugin.PluginContainer container, String key)
      Deprecated.
      Getting the tag value. The method does not check for the type of value.
    • getIntArray

      Optional<int[]> getIntArray(org.spongepowered.plugin.PluginContainer container, String key)
      Deprecated.
      Getting the tag value. The method does not check for the type of value.
    • getIntList

      Optional<List<Integer>> getIntList(org.spongepowered.plugin.PluginContainer container, String key)
      Deprecated.
      Getting the tag value. The method does not check for the type of value.
    • getLongArray

      Optional<long[]> getLongArray(org.spongepowered.plugin.PluginContainer container, String key)
      Deprecated.
      Getting the tag value. The method does not check for the type of value.
    • getLongList

      Optional<List<Long>> getLongList(org.spongepowered.plugin.PluginContainer container, String key)
      Deprecated.
      Getting the tag value. The method does not check for the type of value.
    • getByteArray

      Optional<byte[]> getByteArray(org.spongepowered.plugin.PluginContainer container, String key)
      Deprecated.
      Getting the tag value. The method does not check for the type of value.
    • getTag

      <T extends CompoundTag> Optional<T> getTag(org.spongepowered.plugin.PluginContainer container, String key, Class<T> clazz)
      Deprecated.
      Getting the tag value. If the object has been changed after receiving it, it must be rewritten.
      Example of getting a value - GitHub
    • size

      int size(org.spongepowered.plugin.PluginContainer container)
      Deprecated.
      Getting the number of tags in ItemStack.