Skip to content

Commit 6c5697a

Browse files
Add missing keys for hiding tool tip data components (#2615)
* Add HIDE_POTION_EFFECTS key * Add HIDE_ARMOR_TRIM key * Added missing hide keys
1 parent 133a456 commit 6c5697a

1 file changed

Lines changed: 35 additions & 1 deletion

File tree

  • src/main/java/org/spongepowered/api/data

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

Lines changed: 35 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1568,11 +1568,26 @@ public final class Keys {
15681568
*/
15691569
public static final Key<Value<PandaGene>> HIDDEN_GENE = Keys.key(ResourceKey.sponge("hidden_gene"), PandaGene.class);
15701570

1571+
/**
1572+
* Whether the {@link #ARMOR_TRIM} of an {@link ItemStack} is hidden.
1573+
*/
1574+
public static final Key<Value<Boolean>> HIDE_ARMOR_TRIM = Keys.key(ResourceKey.sponge("hide_armor_trim"), Boolean.class);
1575+
15711576
/**
15721577
* Whether the attributes of an {@link ItemStack} are hidden.
15731578
*/
15741579
public static final Key<Value<Boolean>> HIDE_ATTRIBUTES = Keys.key(ResourceKey.sponge("hide_attributes"), Boolean.class);
15751580

1581+
/**
1582+
* Whether the {@link #BANNER_PATTERN_LAYERS} of an {@link ItemStack} are hidden in the item description.
1583+
*/
1584+
public static final Key<Value<Boolean>> HIDE_BANNER_PATTERNS = Keys.key(ResourceKey.sponge("hide_banner_patterns"), Boolean.class);
1585+
1586+
/**
1587+
* Whether the bundle contents of an {@link ItemStack} are hidden.
1588+
*/
1589+
public static final Key<Value<Boolean>> HIDE_BUNDLE_CONTENTS = Keys.key(ResourceKey.sponge("hide_bundle_contents"), Boolean.class);
1590+
15761591
/**
15771592
* Whether the {@link #BREAKABLE_BLOCK_TYPES} of an {@link ItemStack} are hidden.
15781593
*/
@@ -1583,17 +1598,36 @@ public final class Keys {
15831598
*/
15841599
public static final Key<Value<Boolean>> HIDE_CAN_PLACE = Keys.key(ResourceKey.sponge("hide_can_place"), Boolean.class);
15851600

1601+
/**
1602+
* Whether the {@link #COLOR} of an {@link ItemStack} is hidden in the item description.
1603+
*/
1604+
public static final Key<Value<Boolean>> HIDE_COLOR = Keys.key(ResourceKey.sponge("hide_color"), Boolean.class);
1605+
15861606
/**
15871607
* Whether the {@link #APPLIED_ENCHANTMENTS} of an {@link ItemStack} are hidden.
15881608
*/
15891609
public static final Key<Value<Boolean>> HIDE_ENCHANTMENTS = Keys.key(ResourceKey.sponge("hide_enchantments"), Boolean.class);
15901610

1611+
/**
1612+
* Whether the instrument of an {@link ItemStack} (e.g. {@link ItemTypes#GOAT_HORN}) is hidden.
1613+
*/
1614+
public static final Key<Value<Boolean>> HIDE_INSTRUMENT = Keys.key(ResourceKey.sponge("hide_instrument"), Boolean.class);
1615+
15911616
/**
15921617
* Whether miscellaneous values of an {@link ItemStack} are hidden.
1593-
* e.g. potion effects or shield pattern info
15941618
*/
15951619
public static final Key<Value<Boolean>> HIDE_MISCELLANEOUS = Keys.key(ResourceKey.sponge("hide_miscellaneous"), Boolean.class);
15961620

1621+
/**
1622+
* Whether the {@link #MUSIC_DISC} of and {@link ItemStack} is hidden in the item description.
1623+
*/
1624+
public static final Key<Value<Boolean>> HIDE_MUSIC_DISC = Keys.key(ResourceKey.sponge("hide_music_disc"), Boolean.class);
1625+
1626+
/**
1627+
* Whether the potion effects (e.g. {@link #CUSTOM_POTION_EFFECTS}) of an {@link ItemStack} are hidden.
1628+
*/
1629+
public static final Key<Value<Boolean>> HIDE_POTION_EFFECTS = Keys.key(ResourceKey.sponge("hide_potion_effects"), Boolean.class);
1630+
15971631
/**
15981632
* Whether the {@link #STORED_ENCHANTMENTS} of an {@link ItemStack} are hidden.
15991633
*/

0 commit comments

Comments
 (0)