类 BuildCreativeModeTabContentsEvent
java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.event.BuildCreativeModeTabContentsEvent
- 所有已实现的接口:
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.
-
嵌套类概要
从类继承的嵌套类/接口 net.minecraftforge.eventbus.api.Event
net.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
-
字段概要
字段修饰符和类型字段说明private final MutableHashedLinkedMap
<ItemStack, CreativeModeTab.TabVisibility> private final CreativeModeTab.ItemDisplayParameters
private final CreativeModeTab
private final ResourceKey
<CreativeModeTab> -
构造器概要
构造器构造器说明BuildCreativeModeTabContentsEvent
(CreativeModeTab tab, ResourceKey<CreativeModeTab> tabKey, CreativeModeTab.ItemDisplayParameters parameters, MutableHashedLinkedMap<ItemStack, CreativeModeTab.TabVisibility> entries) -
方法概要
修饰符和类型方法说明void
void
accept
(Supplier<? extends ItemLike> item, CreativeModeTab.TabVisibility visibility) void
accept
(ItemStack stack, CreativeModeTab.TabVisibility visibility) getFlags()
getTab()
返回 the creative mode tab currently populating its contents。返回 the key of the creative mode tab currently populating its contents。boolean
从类继承的方法 net.minecraftforge.eventbus.api.Event
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
-
字段详细资料
-
tab
-
parameters
-
entries
-
tabKey
-
-
构造器详细资料
-
BuildCreativeModeTabContentsEvent
@Internal public BuildCreativeModeTabContentsEvent(CreativeModeTab tab, ResourceKey<CreativeModeTab> tabKey, CreativeModeTab.ItemDisplayParameters parameters, MutableHashedLinkedMap<ItemStack, CreativeModeTab.TabVisibility> entries)
-
-
方法详细资料
-
getTab
返回 the creative mode tab currently populating its contents。- 返回:
- the creative mode tab currently populating its contents
-
getTabKey
返回 the key of the creative mode tab currently populating its contents。- 返回:
- the key of the creative mode tab currently populating its contents
-
getFlags
-
getParameters
-
hasPermissions
public boolean hasPermissions() -
getEntries
-
accept
- 指定者:
accept
在接口中CreativeModeTab.Output
-
accept
-
accept
-