Skip to content

Commit

Permalink
Fix Javadocs/comments in ItemDataUtility
Browse files Browse the repository at this point in the history
  • Loading branch information
srnyx committed Jul 29, 2023
1 parent 5b347b1 commit dd5043c
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public class ItemDataUtility implements Annoyable {
@NotNull public final ItemStack item;

/**
* Construct a new {@link ItemDataUtility} for the given item stack and key
* Construct a new {@link ItemDataUtility} for the given item stack
*
* @param plugin {@link #plugin}
* @param item {@link #item}
Expand All @@ -52,15 +52,15 @@ public AnnoyingPlugin getAnnoyingPlugin() {
}

/**
* Get the data value for the given item stack and key
* Get the data value for the given key
*
* @param key the key to get the data value for
*
* @return the data value, or null if not found
*/
@Nullable
public String get(@NotNull String key) {
// 1.13.2+ (persistent data container, custom item tag container, or lore)
// 1.13.2+ (persistent data container or custom item tag container)
if (NAMESPACED_KEY_CONSTRUCTOR != null) {
final ItemMeta meta = item.getItemMeta();
if (meta == null) return null;
Expand Down Expand Up @@ -89,7 +89,7 @@ public String get(@NotNull String key) {
}

/**
* Set the data value for the given item stack and key. If the key already exists, it will be overwritten
* Set the data value for the given key. If the key already exists, it will be overwritten
*
* @param key the key to set the data value for
* @param value the data value to set
Expand Down Expand Up @@ -135,7 +135,7 @@ public ItemDataUtility set(@NotNull String key, @Nullable Object value) {
}

/**
* Remove the data value with the given key from the item stack
* Remove the data value with the given key
*
* @param key the key to remove the data value for
*
Expand Down

0 comments on commit dd5043c

Please sign in to comment.