User Tools

Site Tools


tutorial:itemgroup

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
tutorial:itemgroup [2019/06/17 18:56] – small refactoring + modid fixes draylartutorial:itemgroup [2019/09/18 10:32] – .group instead of .itemGroup yanis48
Line 24: Line 24:
 When creating a custom Item, call ''Item.Settings#group'' on your settings and pass in your custom group: When creating a custom Item, call ''Item.Settings#group'' on your settings and pass in your custom group:
 <code java> <code java>
-public static final Item YOUR_ITEM = new Item(new Item.Settings().itemGroup(ExampleMod.ITEM_GROUP));+public static final Item YOUR_ITEM = new Item(new Item.Settings().group(ExampleMod.ITEM_GROUP));
 </code> </code>
  
tutorial/itemgroup.txt · Last modified: 2023/10/01 03:21 by haykam