Class ItemGroupEvents
java.lang.Object
net.fabricmc.fabric.api.itemgroup.v1.ItemGroupEvents
Holds events related to
ItemGroups
.-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
static interface
-
Field Summary
Modifier and TypeFieldDescriptionstatic final Event<ItemGroupEvents.ModifyEntriesAll>
This event allows the entries of any item group to be modified. -
Method Summary
Modifier and TypeMethodDescriptionstatic Event<ItemGroupEvents.ModifyEntries>
modifyEntriesEvent
(RegistryKey<ItemGroup> registryKey) Returns the modify entries event for a specific item group.
-
Field Details
-
MODIFY_ENTRIES_ALL
This event allows the entries of any item group to be modified. UsemodifyEntriesEvent(RegistryKey)
to get the event for a specific item group. This event is invoked after those two more specific events.
-
-
Method Details
-
modifyEntriesEvent
public static Event<ItemGroupEvents.ModifyEntries> modifyEntriesEvent(RegistryKey<ItemGroup> registryKey) 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:
registryKey
- theRegistryKey
of the item group to modify- Returns:
- the event
-