Package studio.magemonkey.codex.util
Class DataUT
java.lang.Object
studio.magemonkey.codex.util.DataUT
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic classstatic class -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleangetBooleanData(org.bukkit.inventory.ItemStack item, org.bukkit.NamespacedKey key) static booleangetBooleanData(org.bukkit.persistence.PersistentDataHolder holder, org.bukkit.NamespacedKey key) static <Z> ZgetData(org.bukkit.inventory.ItemStack item, org.bukkit.persistence.PersistentDataType<?, Z> type, org.bukkit.NamespacedKey key) static <Z> ZgetData(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 doublegetDoubleData(org.bukkit.inventory.ItemStack item, org.bukkit.NamespacedKey key) static doublegetDoubleData(org.bukkit.persistence.PersistentDataHolder holder, org.bukkit.NamespacedKey key) static intgetIntData(org.bukkit.inventory.ItemStack item, org.bukkit.NamespacedKey key) static intgetIntData(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 StringgetStringData(org.bukkit.inventory.ItemStack item, org.bukkit.NamespacedKey key) static StringgetStringData(org.bukkit.persistence.PersistentDataHolder holder, org.bukkit.NamespacedKey key) static org.bukkit.persistence.PersistentDataContainerstatic voidremoveData(org.bukkit.inventory.ItemStack item, org.bukkit.NamespacedKey key) static voidremoveData(org.bukkit.persistence.PersistentDataHolder holder, org.bukkit.NamespacedKey key) static voidstatic voidsetData(org.bukkit.persistence.PersistentDataHolder holder, org.bukkit.NamespacedKey key, Object value)
-
Field Details
-
DOUBLE_ARRAY
public static final org.bukkit.persistence.PersistentDataType<byte[],double[]> DOUBLE_ARRAY -
STRING_ARRAY
-
UUID
-
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()
-