Class ItemGroups

java.lang.Object
johnsmith.enchantingoverhauled.item.ItemGroups

public class ItemGroups extends Object
Central handler for Creative Mode Tabs (Item Groups) in the common module.

Defines the key for the custom "Enchanting Overhauled" tab and provides methods to populate it and other vanilla tabs with the mod's items.

  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final net.minecraft.resources.ResourceKey<net.minecraft.world.item.CreativeModeTab>
    The RegistryKey for the mod's custom creative tab.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    displayItems(net.minecraft.world.item.CreativeModeTab.ItemDisplayParameters parameters, net.minecraft.world.item.CreativeModeTab.Output output)
    Populates the custom "Enchanting Overhauled" creative tab.
    static void
    populateFunctional(net.minecraft.world.item.CreativeModeTab.Output output)
    Populates the vanilla "Functional Blocks" tab with the mod's tables.
    static void
    populateIngredients(net.minecraft.world.item.CreativeModeTab.ItemDisplayParameters parameters, net.minecraft.world.item.CreativeModeTab.Output output)
    Populates the vanilla "Ingredients" tab with Enchanted Tomes.
    static void
    populateSpawnEggs(net.minecraft.world.item.CreativeModeTab.Output output)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • ENCHANTING_GROUP_KEY

      public static final net.minecraft.resources.ResourceKey<net.minecraft.world.item.CreativeModeTab> ENCHANTING_GROUP_KEY
      The RegistryKey for the mod's custom creative tab.
  • Constructor Details

    • ItemGroups

      public ItemGroups()
  • Method Details

    • displayItems

      public static void displayItems(net.minecraft.world.item.CreativeModeTab.ItemDisplayParameters parameters, net.minecraft.world.item.CreativeModeTab.Output output)
      Populates the custom "Enchanting Overhauled" creative tab.
    • populateIngredients

      public static void populateIngredients(net.minecraft.world.item.CreativeModeTab.ItemDisplayParameters parameters, net.minecraft.world.item.CreativeModeTab.Output output)
      Populates the vanilla "Ingredients" tab with Enchanted Tomes.
    • populateFunctional

      public static void populateFunctional(net.minecraft.world.item.CreativeModeTab.Output output)
      Populates the vanilla "Functional Blocks" tab with the mod's tables.
    • populateSpawnEggs

      public static void populateSpawnEggs(net.minecraft.world.item.CreativeModeTab.Output output)