Class CreativeModeTabEvents
java.lang.Object
net.fabricmc.fabric.api.creativetab.v1.CreativeModeTabEvents
Holds events related to
CreativeModeTabs.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic interface -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Event<CreativeModeTabEvents.ModifyOutputAll> This event allows the output of any creative mode tab to be modified. -
Method Summary
Modifier and TypeMethodDescriptionmodifyOutputEvent(net.minecraft.resources.ResourceKey<net.minecraft.world.item.CreativeModeTab> resourceKey) Returns the modify output event for a specific creative mode tab.
-
Field Details
-
MODIFY_OUTPUT_ALL
This event allows the output of any creative mode tab to be modified.Use
modifyOutputEvent(ResourceKey)to get the event for a specific creative mode tab.This event is invoked after those two more specific events.
-
-
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- theResourceKeyof the creative mode tab to modify- Returns:
- the event
-