FabricItemGroupBuilder

public final class FabricItemGroupBuilder

Functions

appendItems
Link copied to clipboard
FabricItemGroupBuilder appendItems(Consumer<List<ItemStack>> stacksForDisplay)
This allows for a custom list of items to be displayed in a tab, this enabled tabs to be created with a custom set of items.
build
Link copied to clipboard
ItemGroup build()
Create an instance of the ItemGroup.
static ItemGroup build(Identifier identifier, Supplier<ItemStack> stackSupplier)
This is a single method that makes creating an ItemGroup with an icon one call.
create
Link copied to clipboard
static FabricItemGroupBuilder create(Identifier identifier)
Create a new Item Group Builder.
icon
Link copied to clipboard
FabricItemGroupBuilder icon(Supplier<ItemStack> stackSupplier)
This is used to add an icon to to the item group.
stacksForDisplay
Link copied to clipboard
FabricItemGroupBuilder stacksForDisplay(Consumer<List<ItemStack>> appender)
This allows for a custom list of items to be displayed in a tab, this enabled tabs to be created with a custom set of items.

Sources

jvm source
Link copied to clipboard