Class CreativeModeTabEvents

java.lang.Object
net.fabricmc.fabric.api.creativetab.v1.CreativeModeTabEvents

public final class CreativeModeTabEvents extends Object
Holds events related to CreativeModeTabs.
  • Field Details

  • Method Details

    • modifyOutputEvent

      public static Event<CreativeModeTabEvents.ModifyOutput> modifyOutputEvent(net.minecraft.resources.ResourceKey<net.minecraft.world.item.CreativeModeTab> resourceKey)
      Returns the modify output event for a specific creative mode tab. This uses the tab's ID and is suitable for modifying a modded creative mode tab that might not exist.
      Parameters:
      resourceKey - the ResourceKey of the creative mode tab to modify
      Returns:
      the event