Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Last revisionBoth sides next revision
api:creative_tabs [2023/05/09 11:28] shedanielapi:creative_tabs [2023/05/09 11:31] shedaniel
Line 21: Line 21:
         () -> new ItemStack(Items.STONE) // Icon         () -> new ItemStack(Items.STONE) // Icon
 ); );
 +</code>
 +
 +===== Using the tab =====
 +To add an item to the tab, you can use the `tab` method in Item.Properties, since this method has been removed by Mojang in 1.19.3 in favour for a more manual setup, Architectury includes a custom `arch$tab` method for you.
 +
 +**1.19.3 to 1.19.4**
 +<code java>
 +new Item.Properties().arch$tab(MY_TAB);
 +</code>
 +
 +**1.19.2 or below**
 +<code java>
 +new Item.Properties().tab(MY_TAB);
 </code> </code>