tutorial:tooltip
no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
Previous revisionNext revision | |||
— | tutorial:tooltip [2021/02/10 10:08] – Updated names and added details magistermaks | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Adding a tooltip ====== | ||
+ | In your [[tutorial: | ||
+ | <code java> | ||
+ | @Override | ||
+ | public void appendTooltip(ItemStack itemStack, World world, List< | ||
+ | // default white text | ||
+ | tooltip.add( new TranslatableText(" | ||
+ | | ||
+ | // formatted red text | ||
+ | tooltip.add( new TranslatableText(" | ||
+ | } | ||
+ | </ | ||
+ | You can also append your tooltip in the [[tutorial: | ||
+ | <code java> | ||
+ | @Override | ||
+ | public void appendTooltip(ItemStack itemStack, BlockView world, List< | ||
+ | tooltip.add( new TranslatableText(" | ||
+ | } | ||
+ | </ |
tutorial/tooltip.txt · Last modified: 2024/04/15 01:31 by solidblock