Creative Entries
Class: UnifiedHelpers / CREATIVE_ENTRIES
Allows easily adding vanilla & modded items to vanilla & modded creative tabs.
You can either use insert to append the end of a tab, insertBefore to insert items before an existing entry or insertAfter to insert items after an existing entry. Multiple ItemLikes or ItemStacks are accepted.
To create your own custom tab, check out the Creative Mode Tab Builder.
INFO
Unified API includes its own CreativeModeTabIds class, which provides easier access to all vanilla creative tab resource keys.
Methods
void insert(ResourceKey<CreativeModeTab> tab, ItemLike... items);
void insert(ResourceKey<CreativeModeTab> tab, ItemStackTemplate... items);
void insertAfter(ResourceKey<CreativeModeTab> tab, ItemLike existingItem, ItemLike... addedItems);
void insertAfter(ResourceKey<CreativeModeTab> tab, ItemLike existingItem, ItemStackTemplate... addedItems);
void insertBefore(ResourceKey<CreativeModeTab> tab, ItemLike existingItem, ItemLike... addedItems);
void insertBefore(ResourceKey<CreativeModeTab> tab, ItemLike existingItem, ItemStackTemplate... addedItems);Example
UnifiedHelpers.CREATIVE_ENTRIES.insertAfter(CreativeModeTabs.COMBAT, Items.BOW, ModItems.SHORTBOW, ModItems.LONGBOW)