Interface Tags


public interface Tags
Tags utility class for working with PersistentDataContainers.
  • Method Summary

    Static Methods
    Modifier and Type
    Method
    Description
    static Object
    Get(org.bukkit.plugin.java.JavaPlugin caller, org.bukkit.inventory.ItemStack item, String key, valorless.valorlessutils.tags.TagType type)
    Gets a value from the PersistentDataContainer using a specific key.
    static Object
    Get(org.bukkit.plugin.java.JavaPlugin caller, org.bukkit.persistence.PersistentDataContainer container, String key, valorless.valorlessutils.tags.TagType type)
    Gets a value from the PersistentDataContainer using a specific key.
    static Boolean
    GetBoolean(org.bukkit.plugin.java.JavaPlugin caller, org.bukkit.inventory.ItemStack item, String key)
    Gets a Boolean value from the PersistentDataContainer using a specific key.
    static Double
    GetDouble(org.bukkit.plugin.java.JavaPlugin caller, org.bukkit.inventory.ItemStack item, String key)
    Gets a Double value from the PersistentDataContainer using a specific key.
    static List<Double>
    GetDoubleList(org.bukkit.plugin.java.JavaPlugin caller, org.bukkit.inventory.ItemStack item, String key)
    Gets a Double List value from the PersistentDataContainer using a specific key.
    static Float
    GetFloat(org.bukkit.plugin.java.JavaPlugin caller, org.bukkit.inventory.ItemStack item, String key)
    Gets a Float value from the PersistentDataContainer using a specific key.
    static List<Float>
    GetFloatList(org.bukkit.plugin.java.JavaPlugin caller, org.bukkit.inventory.ItemStack item, String key)
    Gets a Float List value from the PersistentDataContainer using a specific key.
    static Integer
    GetInteger(org.bukkit.plugin.java.JavaPlugin caller, org.bukkit.inventory.ItemStack item, String key)
    Gets an Integer value from the PersistentDataContainer using a specific key.
    static List<Integer>
    GetIntegerList(org.bukkit.plugin.java.JavaPlugin caller, org.bukkit.inventory.ItemStack item, String key)
    Gets a Integer List value from the PersistentDataContainer using a specific key.
    static String
    GetString(org.bukkit.plugin.java.JavaPlugin caller, org.bukkit.inventory.ItemStack item, String key)
    Gets a String value from the PersistentDataContainer using a specific key.
    static List<String>
    GetStringList(org.bukkit.plugin.java.JavaPlugin caller, org.bukkit.inventory.ItemStack item, String key)
    Gets a String List value from the PersistentDataContainer using a specific key.
    static Boolean
    Has(org.bukkit.plugin.java.JavaPlugin caller, org.bukkit.inventory.ItemStack item, String key)
    Checks if a key exists in the PersistentDataContainer.
    static Boolean
    Has(org.bukkit.plugin.java.JavaPlugin caller, org.bukkit.inventory.ItemStack item, String key, valorless.valorlessutils.tags.TagType type)
    Checks if a key exists in the PersistentDataContainer.
    static Boolean
    Has(org.bukkit.plugin.java.JavaPlugin caller, org.bukkit.persistence.PersistentDataContainer container, String key, valorless.valorlessutils.tags.TagType type)
    Checks if a key exists in the PersistentDataContainer.
    static Boolean
    Remove(org.bukkit.plugin.java.JavaPlugin caller, org.bukkit.inventory.ItemStack item, String key)
     
    static void
    Set(org.bukkit.plugin.java.JavaPlugin caller, org.bukkit.inventory.ItemStack item, String key, Object value, valorless.valorlessutils.tags.TagType type)
    Sets a value in the PersistentDataContainer using a specific key.
    Use before or after setting metadata.
    static void
    Set(org.bukkit.plugin.java.JavaPlugin caller, org.bukkit.persistence.PersistentDataContainer container, String key, Object value, valorless.valorlessutils.tags.TagType type)
    Sets a value in the PersistentDataContainer using a specific key.
    static void
    SetBoolean(org.bukkit.plugin.java.JavaPlugin caller, org.bukkit.inventory.ItemStack item, String key, Boolean value)
    Sets a value in the PersistentDataContainer using a specific key.
    Use before or after setting metadata.
    static void
    SetDouble(org.bukkit.plugin.java.JavaPlugin caller, org.bukkit.inventory.ItemStack item, String key, Double value)
    Sets a value in the PersistentDataContainer using a specific key.
    Use before or after setting metadata.
    static void
    SetDoubleList(org.bukkit.plugin.java.JavaPlugin caller, org.bukkit.inventory.ItemStack item, String key, List<Double> value)
    Sets a value in the PersistentDataContainer using a specific key.
    Use before or after setting metadata.
    static void
    SetFloat(org.bukkit.plugin.java.JavaPlugin caller, org.bukkit.inventory.ItemStack item, String key, Float value)
    Sets a value in the PersistentDataContainer using a specific key.
    Use before or after setting metadata.
    static void
    SetFloatList(org.bukkit.plugin.java.JavaPlugin caller, org.bukkit.inventory.ItemStack item, String key, List<Float> value)
    Sets a value in the PersistentDataContainer using a specific key.
    Use before or after setting metadata.
    static void
    SetInteger(org.bukkit.plugin.java.JavaPlugin caller, org.bukkit.inventory.ItemStack item, String key, Integer value)
    Sets a value in the PersistentDataContainer using a specific key.
    Use before or after setting metadata.
    static void
    SetIntegerList(org.bukkit.plugin.java.JavaPlugin caller, org.bukkit.inventory.ItemStack item, String key, List<Integer> value)
    Sets a value in the PersistentDataContainer using a specific key.
    Use before or after setting metadata.
    static void
    SetString(org.bukkit.plugin.java.JavaPlugin caller, org.bukkit.inventory.ItemStack item, String key, String value)
    Sets a value in the PersistentDataContainer using a specific key.
    Use before or after setting metadata.
    static void
    SetStringList(org.bukkit.plugin.java.JavaPlugin caller, org.bukkit.inventory.ItemStack item, String key, List<String> value)
    Sets a value in the PersistentDataContainer using a specific key.
    Use before or after setting metadata.
  • Method Details

    • SetString

      static void SetString(org.bukkit.plugin.java.JavaPlugin caller, org.bukkit.inventory.ItemStack item, String key, String value)
      Sets a value in the PersistentDataContainer using a specific key.
      Use before or after setting metadata.
      Parameters:
      caller - The calling plugin.
      item - ItemStack to modify.
      key - The key to set.
      value - The value to set.
    • SetStringList

      static void SetStringList(org.bukkit.plugin.java.JavaPlugin caller, org.bukkit.inventory.ItemStack item, String key, List<String> value)
      Sets a value in the PersistentDataContainer using a specific key.
      Use before or after setting metadata.
      Parameters:
      caller - The calling plugin.
      item - ItemStack to modify.
      key - The key to set.
      value - The value to set.
    • SetInteger

      static void SetInteger(org.bukkit.plugin.java.JavaPlugin caller, org.bukkit.inventory.ItemStack item, String key, Integer value)
      Sets a value in the PersistentDataContainer using a specific key.
      Use before or after setting metadata.
      Parameters:
      caller - The calling plugin.
      item - ItemStack to modify.
      key - The key to set.
      value - The value to set.
    • SetIntegerList

      static void SetIntegerList(org.bukkit.plugin.java.JavaPlugin caller, org.bukkit.inventory.ItemStack item, String key, List<Integer> value)
      Sets a value in the PersistentDataContainer using a specific key.
      Use before or after setting metadata.
      Parameters:
      caller - The calling plugin.
      item - ItemStack to modify.
      key - The key to set.
      value - The value to set.
    • SetDouble

      static void SetDouble(org.bukkit.plugin.java.JavaPlugin caller, org.bukkit.inventory.ItemStack item, String key, Double value)
      Sets a value in the PersistentDataContainer using a specific key.
      Use before or after setting metadata.
      Parameters:
      caller - The calling plugin.
      item - ItemStack to modify.
      key - The key to set.
      value - The value to set.
    • SetDoubleList

      static void SetDoubleList(org.bukkit.plugin.java.JavaPlugin caller, org.bukkit.inventory.ItemStack item, String key, List<Double> value)
      Sets a value in the PersistentDataContainer using a specific key.
      Use before or after setting metadata.
      Parameters:
      caller - The calling plugin.
      item - ItemStack to modify.
      key - The key to set.
      value - The value to set.
    • SetFloat

      static void SetFloat(org.bukkit.plugin.java.JavaPlugin caller, org.bukkit.inventory.ItemStack item, String key, Float value)
      Sets a value in the PersistentDataContainer using a specific key.
      Use before or after setting metadata.
      Parameters:
      caller - The calling plugin.
      item - ItemStack to modify.
      key - The key to set.
      value - The value to set.
    • SetFloatList

      static void SetFloatList(org.bukkit.plugin.java.JavaPlugin caller, org.bukkit.inventory.ItemStack item, String key, List<Float> value)
      Sets a value in the PersistentDataContainer using a specific key.
      Use before or after setting metadata.
      Parameters:
      caller - The calling plugin.
      item - ItemStack to modify.
      key - The key to set.
      value - The value to set.
    • SetBoolean

      static void SetBoolean(org.bukkit.plugin.java.JavaPlugin caller, org.bukkit.inventory.ItemStack item, String key, Boolean value)
      Sets a value in the PersistentDataContainer using a specific key.
      Use before or after setting metadata.
      Parameters:
      caller - The calling plugin.
      item - ItemStack to modify.
      key - The key to set.
      value - The value to set.
    • GetString

      static String GetString(org.bukkit.plugin.java.JavaPlugin caller, org.bukkit.inventory.ItemStack item, String key)
      Gets a String value from the PersistentDataContainer using a specific key.
      Parameters:
      caller - The calling plugin.
      item - ItemStack to retrieve the value from.
      key - The key to retrieve.
      Returns:
      The retrieved String value, or null if not present.
    • GetStringList

      static List<String> GetStringList(org.bukkit.plugin.java.JavaPlugin caller, org.bukkit.inventory.ItemStack item, String key)
      Gets a String List value from the PersistentDataContainer using a specific key.
      Parameters:
      caller - The calling plugin.
      item - ItemStack to retrieve the value from.
      key - The key to retrieve.
      Returns:
      The retrieved String List value, or null if not present.
    • GetInteger

      static Integer GetInteger(org.bukkit.plugin.java.JavaPlugin caller, org.bukkit.inventory.ItemStack item, String key)
      Gets an Integer value from the PersistentDataContainer using a specific key.
      Parameters:
      caller - The calling plugin.
      item - ItemStack to retrieve the value from.
      key - The key to retrieve.
      Returns:
      The retrieved Integer value, or null if not present.
    • GetIntegerList

      static List<Integer> GetIntegerList(org.bukkit.plugin.java.JavaPlugin caller, org.bukkit.inventory.ItemStack item, String key)
      Gets a Integer List value from the PersistentDataContainer using a specific key.
      Parameters:
      caller - The calling plugin.
      item - ItemStack to retrieve the value from.
      key - The key to retrieve.
      Returns:
      The retrieved Integer List value, or null if not present.
    • GetDouble

      static Double GetDouble(org.bukkit.plugin.java.JavaPlugin caller, org.bukkit.inventory.ItemStack item, String key)
      Gets a Double value from the PersistentDataContainer using a specific key.
      Parameters:
      caller - The calling plugin.
      item - ItemStack to retrieve the value from.
      key - The key to retrieve.
      Returns:
      The retrieved Double value, or null if not present.
    • GetDoubleList

      static List<Double> GetDoubleList(org.bukkit.plugin.java.JavaPlugin caller, org.bukkit.inventory.ItemStack item, String key)
      Gets a Double List value from the PersistentDataContainer using a specific key.
      Parameters:
      caller - The calling plugin.
      item - ItemStack to retrieve the value from.
      key - The key to retrieve.
      Returns:
      The retrieved Double List value, or null if not present.
    • GetFloat

      static Float GetFloat(org.bukkit.plugin.java.JavaPlugin caller, org.bukkit.inventory.ItemStack item, String key)
      Gets a Float value from the PersistentDataContainer using a specific key.
      Parameters:
      caller - The calling plugin.
      item - ItemStack to retrieve the value from.
      key - The key to retrieve.
      Returns:
      The retrieved Float value, or null if not present.
    • GetFloatList

      static List<Float> GetFloatList(org.bukkit.plugin.java.JavaPlugin caller, org.bukkit.inventory.ItemStack item, String key)
      Gets a Float List value from the PersistentDataContainer using a specific key.
      Parameters:
      caller - The calling plugin.
      item - ItemStack to retrieve the value from.
      key - The key to retrieve.
      Returns:
      The retrieved Float List value, or null if not present.
    • GetBoolean

      static Boolean GetBoolean(org.bukkit.plugin.java.JavaPlugin caller, org.bukkit.inventory.ItemStack item, String key)
      Gets a Boolean value from the PersistentDataContainer using a specific key.
      Parameters:
      caller - The calling plugin.
      item - ItemStack to retrieve the value from.
      key - The key to retrieve.
      Returns:
      The retrieved Boolean value, or null if not present.
    • Set

      static void Set(org.bukkit.plugin.java.JavaPlugin caller, org.bukkit.inventory.ItemStack item, String key, Object value, valorless.valorlessutils.tags.TagType type)
      Sets a value in the PersistentDataContainer using a specific key.
      Use before or after setting metadata.
      Parameters:
      caller - The calling plugin.
      item - ItemStack to modify.
      key - The key to set.
      value - The value to set.
      type - The TagType.
    • Get

      static Object Get(org.bukkit.plugin.java.JavaPlugin caller, org.bukkit.inventory.ItemStack item, String key, valorless.valorlessutils.tags.TagType type)
      Gets a value from the PersistentDataContainer using a specific key.
      Parameters:
      caller - The calling plugin.
      item - ItemStack to retrieve from.
      key - The key to retrieve.
      type - The TagType.
      Returns:
      The retrieved value.
    • Has

      static Boolean Has(org.bukkit.plugin.java.JavaPlugin caller, org.bukkit.inventory.ItemStack item, String key, valorless.valorlessutils.tags.TagType type)
      Checks if a key exists in the PersistentDataContainer.
      Parameters:
      caller - The calling plugin.
      item - ItemStack to check.
      key - The key to check.
      type - The TagType.
      Returns:
      true if the key exists, false otherwise.
    • Has

      static Boolean Has(org.bukkit.plugin.java.JavaPlugin caller, org.bukkit.inventory.ItemStack item, String key)
      Checks if a key exists in the PersistentDataContainer.
      Parameters:
      caller - The calling plugin.
      item - ItemStack to check.
      key - The key to check.
      Returns:
      true if the key exists, false otherwise.
    • Remove

      static Boolean Remove(org.bukkit.plugin.java.JavaPlugin caller, org.bukkit.inventory.ItemStack item, String key)
    • Set

      static void Set(org.bukkit.plugin.java.JavaPlugin caller, org.bukkit.persistence.PersistentDataContainer container, String key, Object value, valorless.valorlessutils.tags.TagType type)
      Sets a value in the PersistentDataContainer using a specific key.
      Parameters:
      caller - The calling plugin.
      container - The PersistentDataContainer to modify.
      key - The key to set.
      value - The value to set.
      type - The TagType.
    • Get

      static Object Get(org.bukkit.plugin.java.JavaPlugin caller, org.bukkit.persistence.PersistentDataContainer container, String key, valorless.valorlessutils.tags.TagType type)
      Gets a value from the PersistentDataContainer using a specific key.
      Parameters:
      caller - The calling plugin.
      container - The PersistentDataContainer to retrieve from.
      key - The key to retrieve.
      type - The TagType.
      Returns:
      The retrieved value.
    • Has

      static Boolean Has(org.bukkit.plugin.java.JavaPlugin caller, org.bukkit.persistence.PersistentDataContainer container, String key, valorless.valorlessutils.tags.TagType type)
      Checks if a key exists in the PersistentDataContainer.
      Parameters:
      caller - The calling plugin.
      container - The PersistentDataContainer to check.
      key - The key to check.
      type - The TagType.
      Returns:
      true if the key exists, false otherwise.