Skip to content

Commit 79e0729

Browse files
authored
Add Keys.TOOLTIP_STYLE (#2603)
1 parent 92ddc65 commit 79e0729

File tree

1 file changed

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

1 file changed

+9
-0
lines changed

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

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3372,6 +3372,15 @@ public final class Keys {
33723372
*/
33733373
public static final Key<Value<ItemTier>> TOOL_TYPE = Keys.key(ResourceKey.sponge("tool_type"), ItemTier.class);
33743374

3375+
/**
3376+
* For a given {@link ResourceKey}, the textures for the tooltip of an {@link ItemStack} will be looked up from the following locations in the
3377+
* active resource packs:
3378+
*
3379+
* <p>Background: {@literal /assets/<namespace>/textures/gui/sprites/tooltip/<id>_background}
3380+
* <p>Frame: {@literal /assets/<namespace>/textures/gui/sprites/tooltip/<id>_frame}
3381+
*/
3382+
public static final Key<Value<ResourceKey>> TOOLTIP_STYLE = Keys.key(ResourceKey.sponge("tooltip_style"), ResourceKey.class);
3383+
33753384
/**
33763385
* Whether a {@link CommandBlock} does track its output.
33773386
*

0 commit comments

Comments
 (0)