Package net.minecraftforge.event
Class BuildCreativeModeTabContentsEvent
java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.event.BuildCreativeModeTabContentsEvent
- All Implemented Interfaces:
- CreativeModeTab.Output,- IModBusEvent
public final class BuildCreativeModeTabContentsEvent
extends net.minecraftforge.eventbus.api.Event
implements IModBusEvent, CreativeModeTab.Output
Fired when the contents of a specific creative mode tab are being populated.
 This event may be fired multiple times if the operator status of the local player or enabled feature flags changes.
 
This event is not cancellable, and does not have a result.
This event is fired on the mod-specific event bus, only on the logical client.
- 
Nested Class SummaryNested classes/interfaces inherited from class net.minecraftforge.eventbus.api.Eventnet.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final MutableHashedLinkedMap<ItemStack,CreativeModeTab.TabVisibility> private final CreativeModeTab.ItemDisplayParametersprivate final CreativeModeTabprivate final ResourceKey<CreativeModeTab>
- 
Constructor SummaryConstructorsConstructorDescriptionBuildCreativeModeTabContentsEvent(CreativeModeTab tab, ResourceKey<CreativeModeTab> tabKey, CreativeModeTab.ItemDisplayParameters parameters, MutableHashedLinkedMap<ItemStack, CreativeModeTab.TabVisibility> entries) 
- 
Method SummaryModifier and TypeMethodDescriptionvoidvoidaccept(Supplier<? extends ItemLike> item, CreativeModeTab.TabVisibility visibility) voidaccept(ItemStack stack, CreativeModeTab.TabVisibility visibility) getFlags()getTab()Returns the creative mode tab currently populating its contents.Returns the key of the creative mode tab currently populating its contents.booleanMethods inherited from class net.minecraftforge.eventbus.api.EventgetListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
- 
Field Details- 
tab
- 
parameters
- 
entries
- 
tabKey
 
- 
- 
Constructor Details- 
BuildCreativeModeTabContentsEvent@Internal public BuildCreativeModeTabContentsEvent(CreativeModeTab tab, ResourceKey<CreativeModeTab> tabKey, CreativeModeTab.ItemDisplayParameters parameters, MutableHashedLinkedMap<ItemStack, CreativeModeTab.TabVisibility> entries) 
 
- 
- 
Method Details- 
getTabReturns the creative mode tab currently populating its contents.- Returns:
- the creative mode tab currently populating its contents
 
- 
getTabKeyReturns the key of the creative mode tab currently populating its contents.- Returns:
- the key of the creative mode tab currently populating its contents
 
- 
getFlags
- 
getParameters
- 
hasPermissionspublic boolean hasPermissions()
- 
getEntries
- 
accept- Specified by:
- acceptin interface- CreativeModeTab.Output
 
- 
accept
- 
accept
 
-