Class DataUT

java.lang.Object
studio.magemonkey.codex.util.DataUT

public class DataUT extends Object
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
     
    static class 
     
    static class 
     
    static class 
     
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final org.bukkit.persistence.PersistentDataType<Byte,Boolean>
     
    static final org.bukkit.persistence.PersistentDataType<byte[],double[]>
     
    static final org.bukkit.persistence.PersistentDataType<byte[],String[]>
     
    static final org.bukkit.persistence.PersistentDataType<byte[],UUID>
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static boolean
    getBooleanData(org.bukkit.inventory.ItemStack item, org.bukkit.NamespacedKey key)
     
    static boolean
    getBooleanData(org.bukkit.persistence.PersistentDataHolder holder, org.bukkit.NamespacedKey key)
     
    static <Z> Z
    getData(org.bukkit.inventory.ItemStack item, org.bukkit.persistence.PersistentDataType<?,Z> type, org.bukkit.NamespacedKey key)
     
    static <Z> Z
    getData(org.bukkit.persistence.PersistentDataHolder holder, org.bukkit.persistence.PersistentDataType<?,Z> type, org.bukkit.NamespacedKey key)
     
    static double[]
    getDoubleArrayData(org.bukkit.inventory.ItemStack item, org.bukkit.NamespacedKey key)
     
    static double[]
    getDoubleArrayData(org.bukkit.persistence.PersistentDataHolder holder, org.bukkit.NamespacedKey key)
     
    static double
    getDoubleData(org.bukkit.inventory.ItemStack item, org.bukkit.NamespacedKey key)
     
    static double
    getDoubleData(org.bukkit.persistence.PersistentDataHolder holder, org.bukkit.NamespacedKey key)
     
    static int
    getIntData(org.bukkit.inventory.ItemStack item, org.bukkit.NamespacedKey key)
     
    static int
    getIntData(org.bukkit.persistence.PersistentDataHolder holder, org.bukkit.NamespacedKey key)
     
    static String[]
    getStringArrayData(org.bukkit.inventory.ItemStack item, org.bukkit.NamespacedKey key)
     
    static String[]
    getStringArrayData(org.bukkit.persistence.PersistentDataHolder holder, org.bukkit.NamespacedKey key)
     
    static String
    getStringData(org.bukkit.inventory.ItemStack item, org.bukkit.NamespacedKey key)
     
    static String
    getStringData(org.bukkit.persistence.PersistentDataHolder holder, org.bukkit.NamespacedKey key)
     
    static org.bukkit.persistence.PersistentDataContainer
     
    static void
    removeData(org.bukkit.inventory.ItemStack item, org.bukkit.NamespacedKey key)
     
    static void
    removeData(org.bukkit.persistence.PersistentDataHolder holder, org.bukkit.NamespacedKey key)
     
    static void
    setData(org.bukkit.inventory.ItemStack item, org.bukkit.NamespacedKey key, Object value)
     
    static void
    setData(org.bukkit.persistence.PersistentDataHolder holder, org.bukkit.NamespacedKey key, Object value)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • DOUBLE_ARRAY

      public static final org.bukkit.persistence.PersistentDataType<byte[],double[]> DOUBLE_ARRAY
    • STRING_ARRAY

      public static final org.bukkit.persistence.PersistentDataType<byte[],String[]> STRING_ARRAY
    • UUID

      public static final org.bukkit.persistence.PersistentDataType<byte[],UUID> UUID
    • BOOLEAN

      public static final org.bukkit.persistence.PersistentDataType<Byte,Boolean> BOOLEAN
  • Constructor Details

    • DataUT

      public DataUT()
  • Method Details

    • getData

      @Nullable public static <Z> Z getData(@NotNull org.bukkit.persistence.PersistentDataHolder holder, @NotNull org.bukkit.persistence.PersistentDataType<?,Z> type, @NotNull org.bukkit.NamespacedKey key)
    • setData

      public static void setData(@NotNull org.bukkit.persistence.PersistentDataHolder holder, @NotNull org.bukkit.NamespacedKey key, @NotNull Object value)
    • removeData

      public static void removeData(@NotNull org.bukkit.persistence.PersistentDataHolder holder, @NotNull org.bukkit.NamespacedKey key)
    • getStringData

      @Nullable public static String getStringData(@NotNull org.bukkit.persistence.PersistentDataHolder holder, @NotNull org.bukkit.NamespacedKey key)
    • getStringArrayData

      @Nullable public static String[] getStringArrayData(@NotNull org.bukkit.persistence.PersistentDataHolder holder, @NotNull org.bukkit.NamespacedKey key)
    • getDoubleArrayData

      public static double[] getDoubleArrayData(@NotNull org.bukkit.persistence.PersistentDataHolder holder, @NotNull org.bukkit.NamespacedKey key)
    • getIntData

      public static int getIntData(@NotNull org.bukkit.persistence.PersistentDataHolder holder, @NotNull org.bukkit.NamespacedKey key)
    • getDoubleData

      public static double getDoubleData(@NotNull org.bukkit.persistence.PersistentDataHolder holder, @NotNull org.bukkit.NamespacedKey key)
    • getBooleanData

      public static boolean getBooleanData(@NotNull org.bukkit.persistence.PersistentDataHolder holder, @NotNull org.bukkit.NamespacedKey key)
    • getData

      @Nullable public static <Z> Z getData(@NotNull org.bukkit.inventory.ItemStack item, @NotNull org.bukkit.persistence.PersistentDataType<?,Z> type, @NotNull org.bukkit.NamespacedKey key)
    • setData

      public static void setData(@NotNull org.bukkit.inventory.ItemStack item, @NotNull org.bukkit.NamespacedKey key, @NotNull Object value)
    • removeData

      public static void removeData(@NotNull org.bukkit.inventory.ItemStack item, @NotNull org.bukkit.NamespacedKey key)
    • getStringData

      @Nullable public static String getStringData(@NotNull org.bukkit.inventory.ItemStack item, @NotNull org.bukkit.NamespacedKey key)
    • getIntData

      public static int getIntData(@NotNull org.bukkit.inventory.ItemStack item, @NotNull org.bukkit.NamespacedKey key)
    • getStringArrayData

      @Nullable public static String[] getStringArrayData(@NotNull org.bukkit.inventory.ItemStack item, @NotNull org.bukkit.NamespacedKey key)
    • getDoubleArrayData

      public static double[] getDoubleArrayData(@NotNull org.bukkit.inventory.ItemStack item, @NotNull org.bukkit.NamespacedKey key)
    • getDoubleData

      public static double getDoubleData(@NotNull org.bukkit.inventory.ItemStack item, @NotNull org.bukkit.NamespacedKey key)
    • getBooleanData

      public static boolean getBooleanData(@NotNull org.bukkit.inventory.ItemStack item, @NotNull org.bukkit.NamespacedKey key)
    • itemPersistentDataContainer

      public static org.bukkit.persistence.PersistentDataContainer itemPersistentDataContainer()