tutorial:itemgroup
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
tutorial:itemgroup [2024/08/23 12:57] – [Create your own item group] solidblock | tutorial:itemgroup [2024/08/23 13:03] (current) – solidblock | ||
---|---|---|---|
Line 45: | Line 45: | ||
</ | </ | ||
- | In practice, considering items you register may be in large quantities, it's recommended to place then in a particular method, instead of directly in your '' | + | In practice, considering items you register may be in large quantities, it's recommended to place then in a particular method, instead of directly in your '' |
< | < | ||
Line 51: | Line 51: | ||
// [...] | // [...] | ||
| | ||
- | public static void registerItemGroups() { | + | public static void registerToVanillaItemGroups() { |
ItemGroupEvents.modifyEntriesEvent(class_7706.field_40195).register(content -> { | ItemGroupEvents.modifyEntriesEvent(class_7706.field_40195).register(content -> { | ||
content.addAfter(class_1802.field_8691, | content.addAfter(class_1802.field_8691, | ||
Line 63: | Line 63: | ||
@Override | @Override | ||
public void onInitialize() { | public void onInitialize() { | ||
- | TutorialItems.registerItemGroups(); | + | TutorialItems.registerToVanillaItemGroups(); |
} | } | ||
} | } |
tutorial/itemgroup.1724417832.txt.gz · Last modified: 2024/08/23 12:57 by solidblock