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 revision Previous revision
tutorial:itemgroup [2019/06/17 18:56]
draylar small refactoring + modid fixes
tutorial:itemgroup [2019/09/18 10:32] (current)
yanis48 .group instead of .itemGroup
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: 2019/09/18 10:32 by yanis48