Skip to content

Commit 8349d1f

Browse files
committed
Keys.ITEM_NAME
1 parent 1bc6085 commit 8349d1f

File tree

1 file changed

+6
-0
lines changed
  • src/main/java/org/spongepowered/api/data

1 file changed

+6
-0
lines changed

src/main/java/org/spongepowered/api/data/Keys.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2038,6 +2038,12 @@ public final class Keys {
20382038
*/
20392039
public static final Key<Value<Integer>> ITEM_DURABILITY = Keys.key(ResourceKey.sponge("item_durability"), Integer.class);
20402040

2041+
/**
2042+
* The default item name of an {@link ItemStack}.
2043+
* <p>May be overridden by {@link #CUSTOM_NAME}</p>
2044+
*/
2045+
public static final Key<Value<Component>> ITEM_NAME = Keys.key(ResourceKey.sponge("item_name"), Component.class);
2046+
20412047
/**
20422048
* The rarity of an item.
20432049
*/

0 commit comments

Comments
 (0)