build

static ItemGroup build(Identifier identifier, Supplier<ItemStack> stackSupplier)

This is a single method that makes creating an ItemGroup with an icon one call.

Return

An instance of the built ItemGroup

Parameters

identifier

the id will become the name of the ItemGroup and will be used for the translation key

stackSupplier

the supplier should return the item stack that you wish to show on the tab

ItemGroup build()

Create an instance of the ItemGroup.

Return

An instance of the built ItemGroup