Class ItemGroupEvents

java.lang.Object
net.fabricmc.fabric.api.itemgroup.v1.ItemGroupEvents

public final class ItemGroupEvents extends Object
Holds events related to ItemGroups.
See Also:
  • Field Details

  • Method Details

    • modifyEntriesEvent

      public static Event<ItemGroupEvents.ModifyEntries> modifyEntriesEvent(ItemGroup itemGroup)
      Returns the modify entries event for a specific item group.
      Parameters:
      itemGroup - the item group to modify
      Returns:
      the event
    • modifyEntriesEvent

      public static Event<ItemGroupEvents.ModifyEntries> modifyEntriesEvent(Identifier groupId)
      Returns the modify entries event for a specific item group. This uses the group ID and is suitable for modifying a modded item group that might not exist.
      Parameters:
      groupId - the ID of the item group to modify
      Returns:
      the event