| Modifier and Type | Field and Description |
|---|---|
@NotNull org.bukkit.inventory.ItemStack |
item
The
ItemStack to manage data for |
| Constructor and Description |
|---|
ItemDataUtility(@NotNull AnnoyingPlugin plugin,
@NotNull org.bukkit.inventory.ItemStack item)
Construct a new
ItemDataUtility for the given item stack and key |
| Modifier and Type | Method and Description |
|---|---|
@Nullable java.lang.String |
get(@NotNull java.lang.String key)
Get the data value for the given item stack and key
|
@NotNull AnnoyingPlugin |
getAnnoyingPlugin()
The
AnnoyingPlugin instance |
@NotNull ItemDataUtility |
remove(@NotNull java.lang.String key)
Remove the data value with the given key from the item stack
|
@NotNull ItemDataUtility |
set(@NotNull java.lang.String key,
@Nullable java.lang.Object value)
Set the data value for the given item stack and key.
|
@NotNull public final @NotNull org.bukkit.inventory.ItemStack item
ItemStack to manage data forpublic ItemDataUtility(@NotNull
@NotNull AnnoyingPlugin plugin,
@NotNull
@NotNull org.bukkit.inventory.ItemStack item)
ItemDataUtility for the given item stack and key@NotNull public @NotNull AnnoyingPlugin getAnnoyingPlugin()
AnnoyableAnnoyingPlugin instancegetAnnoyingPlugin in interface Annoyable@Nullable
public @Nullable java.lang.String get(@NotNull
@NotNull java.lang.String key)
key - the key to get the data value for@NotNull public @NotNull ItemDataUtility set(@NotNull @NotNull java.lang.String key, @Nullable @Nullable java.lang.Object value)
key - the key to set the data value forvalue - the data value to setItemDataUtility instance@NotNull public @NotNull ItemDataUtility remove(@NotNull @NotNull java.lang.String key)
key - the key to remove the data value forItemDataUtility instance