| Constructor and Description |
|---|
ItemData(@NotNull AnnoyingPlugin plugin,
@NotNull org.bukkit.inventory.ItemStack item)
Construct a new
ItemData for the given item stack |
| Modifier and Type | Method and Description |
|---|---|
@Nullable java.lang.String |
get(@NotNull java.lang.String key)
Get the data value for the given key
|
@NotNull java.lang.String |
getTargetName()
Get the name of the target used for warning messages
|
@NotNull ItemData |
remove(@NotNull java.lang.String key)
Remove the data value with the given key
|
protected @NotNull ItemData |
set(@NotNull java.lang.String key,
@NotNull java.lang.String value)
Set the data value for the given key.
|
public ItemData(@NotNull
@NotNull AnnoyingPlugin plugin,
@NotNull
@NotNull org.bukkit.inventory.ItemStack item)
ItemData for the given item stackplugin - Data.pluginitem - Data.target@NotNull public @NotNull java.lang.String getTargetName()
DatagetTargetName in class Data<org.bukkit.inventory.ItemStack>@Nullable
public @Nullable java.lang.String get(@NotNull
@NotNull java.lang.String key)
@NotNull protected @NotNull ItemData set(@NotNull @NotNull java.lang.String key, @NotNull @NotNull java.lang.String value)