From 0f4db07e120894274e48147c0ab7b764133f99b6 Mon Sep 17 00:00:00 2001 From: Giganttinen Etana Date: Thu, 27 Aug 2026 16:21:33 +0300 Subject: [PATCH 1/3] Add HIDE_POTION_EFFECTS key --- src/main/java/org/spongepowered/api/data/Keys.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/spongepowered/api/data/Keys.java b/src/main/java/org/spongepowered/api/data/Keys.java index d7710e8371..7c9d7a6fcc 100644 --- a/src/main/java/org/spongepowered/api/data/Keys.java +++ b/src/main/java/org/spongepowered/api/data/Keys.java @@ -1590,10 +1590,14 @@ public final class Keys { /** * Whether miscellaneous values of an {@link ItemStack} are hidden. - * e.g. potion effects or shield pattern info */ public static final Key> HIDE_MISCELLANEOUS = Keys.key(ResourceKey.sponge("hide_miscellaneous"), Boolean.class); + /** + * Whether the potion effects (e.g. {@link #CUSTOM_POTION_EFFECTS}) of an {@link ItemStack} are hidden. + */ + public static final Key> HIDE_POTION_EFFECTS = Keys.key(ResourceKey.sponge("hide_potion_effects"), Boolean.class); + /** * Whether the {@link #STORED_ENCHANTMENTS} of an {@link ItemStack} are hidden. */ From fa2bd57a670916cee70be93000df2318c1d0d6b1 Mon Sep 17 00:00:00 2001 From: Giganttinen Etana Date: Sat, 29 Aug 2026 12:23:57 +0300 Subject: [PATCH 2/3] Add HIDE_ARMOR_TRIM key --- src/main/java/org/spongepowered/api/data/Keys.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/java/org/spongepowered/api/data/Keys.java b/src/main/java/org/spongepowered/api/data/Keys.java index 7c9d7a6fcc..026f8151f4 100644 --- a/src/main/java/org/spongepowered/api/data/Keys.java +++ b/src/main/java/org/spongepowered/api/data/Keys.java @@ -1568,6 +1568,11 @@ public final class Keys { */ public static final Key> HIDDEN_GENE = Keys.key(ResourceKey.sponge("hidden_gene"), PandaGene.class); + /** + * Whether the {@link #ARMOR_TRIM} of an {@link ItemStack} is hidden. + */ + public static final Key> HIDE_ARMOR_TRIM = Keys.key(ResourceKey.sponge("hide_armor_trim"), Boolean.class); + /** * Whether the attributes of an {@link ItemStack} are hidden. */ From 1616d3fad53951ab7fd1eed5d890348e5088163f Mon Sep 17 00:00:00 2001 From: Giganttinen Etana Date: Sat, 29 Aug 2026 22:24:43 +0300 Subject: [PATCH 3/3] Added missing hide keys --- .../java/org/spongepowered/api/data/Keys.java | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/src/main/java/org/spongepowered/api/data/Keys.java b/src/main/java/org/spongepowered/api/data/Keys.java index 026f8151f4..711e5abde6 100644 --- a/src/main/java/org/spongepowered/api/data/Keys.java +++ b/src/main/java/org/spongepowered/api/data/Keys.java @@ -1578,6 +1578,16 @@ public final class Keys { */ public static final Key> HIDE_ATTRIBUTES = Keys.key(ResourceKey.sponge("hide_attributes"), Boolean.class); + /** + * Whether the {@link #BANNER_PATTERN_LAYERS} of an {@link ItemStack} are hidden in the item description. + */ + public static final Key> HIDE_BANNER_PATTERNS = Keys.key(ResourceKey.sponge("hide_banner_patterns"), Boolean.class); + + /** + * Whether the bundle contents of an {@link ItemStack} are hidden. + */ + public static final Key> HIDE_BUNDLE_CONTENTS = Keys.key(ResourceKey.sponge("hide_bundle_contents"), Boolean.class); + /** * Whether the {@link #BREAKABLE_BLOCK_TYPES} of an {@link ItemStack} are hidden. */ @@ -1588,16 +1598,31 @@ public final class Keys { */ public static final Key> HIDE_CAN_PLACE = Keys.key(ResourceKey.sponge("hide_can_place"), Boolean.class); + /** + * Whether the {@link #COLOR} of an {@link ItemStack} is hidden in the item description. + */ + public static final Key> HIDE_COLOR = Keys.key(ResourceKey.sponge("hide_color"), Boolean.class); + /** * Whether the {@link #APPLIED_ENCHANTMENTS} of an {@link ItemStack} are hidden. */ public static final Key> HIDE_ENCHANTMENTS = Keys.key(ResourceKey.sponge("hide_enchantments"), Boolean.class); + /** + * Whether the instrument of an {@link ItemStack} (e.g. {@link ItemTypes#GOAT_HORN}) is hidden. + */ + public static final Key> HIDE_INSTRUMENT = Keys.key(ResourceKey.sponge("hide_instrument"), Boolean.class); + /** * Whether miscellaneous values of an {@link ItemStack} are hidden. */ public static final Key> HIDE_MISCELLANEOUS = Keys.key(ResourceKey.sponge("hide_miscellaneous"), Boolean.class); + /** + * Whether the {@link #MUSIC_DISC} of and {@link ItemStack} is hidden in the item description. + */ + public static final Key> HIDE_MUSIC_DISC = Keys.key(ResourceKey.sponge("hide_music_disc"), Boolean.class); + /** * Whether the potion effects (e.g. {@link #CUSTOM_POTION_EFFECTS}) of an {@link ItemStack} are hidden. */