Package net.minecraftforge.event
Class CreativeModeTabEvent.Register
java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.event.CreativeModeTabEvent
net.minecraftforge.event.CreativeModeTabEvent.Register
- All Implemented Interfaces:
 IModBusEvent
- Enclosing class:
 - CreativeModeTabEvent
 
Fired when creative mode tabs can be registered.
 
This event is not cancellable, and does not have a result.
This event is fired on the mod-specific event bus, on both logical sides.
- 
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraftforge.event.CreativeModeTabEvent
CreativeModeTabEvent.BuildContents, CreativeModeTabEvent.Register, CreativeModeTabEvent.RegistrarNested classes/interfaces inherited from class net.minecraftforge.eventbus.api.Event
net.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result - 
Field Summary
Fields - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionregisterCreativeModeTab(ResourceLocation name, Consumer<CreativeModeTab.Builder> configurator) Registers and configures a creative mode tab with the given name and returns the built instance.registerCreativeModeTab(ResourceLocation name, List<Object> beforeEntries, List<Object> afterEntries, Consumer<CreativeModeTab.Builder> configurator) Registers and configures a creative mode tab with the given name and returns the built instance.Methods inherited from class net.minecraftforge.eventbus.api.Event
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult 
- 
Field Details
- 
registrar
 
 - 
 - 
Constructor Details
- 
Register
 
 - 
 - 
Method Details
- 
registerCreativeModeTab
public CreativeModeTab registerCreativeModeTab(ResourceLocation name, List<Object> beforeEntries, List<Object> afterEntries, Consumer<CreativeModeTab.Builder> configurator) Registers and configures a creative mode tab with the given name and returns the built instance.- Parameters:
 name- the name of the tab. Must be unique.beforeEntries- the list of tab names or tabs that should appear before this tab in the creative mode inventory screenafterEntries- the list of tab names or tabs that should appear after this tab in the creative mode inventory screenconfigurator- the configurator which configures the builder- Returns:
 - the configured creative mode tab
 - See Also:
 
 - 
registerCreativeModeTab
public CreativeModeTab registerCreativeModeTab(ResourceLocation name, Consumer<CreativeModeTab.Builder> configurator) Registers and configures a creative mode tab with the given name and returns the built instance. The tab is sorted by default to be afterCreativeModeTabs.SPAWN_EGGS.- Parameters:
 name- the name of the tab. Must be unique.configurator- the configurator which configures the builder- Returns:
 - the configured creative mode tab
 - See Also:
 
 
 -