Class CategorizedCreativeTab
java.lang.Object
net.minecraft.world.item.CreativeModeTab
team.lodestar.lodestone.modules.toolkit.creative_tab.CategorizedCreativeTab
public abstract class CategorizedCreativeTab
extends net.minecraft.world.item.CreativeModeTab
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.item.CreativeModeTab
net.minecraft.world.item.CreativeModeTab.Builder, net.minecraft.world.item.CreativeModeTab.DisplayItemsGenerator, net.minecraft.world.item.CreativeModeTab.ItemDisplayBuilder, net.minecraft.world.item.CreativeModeTab.ItemDisplayParameters, net.minecraft.world.item.CreativeModeTab.Output, net.minecraft.world.item.CreativeModeTab.Row, net.minecraft.world.item.CreativeModeTab.TabVisibility, net.minecraft.world.item.CreativeModeTab.Type -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final HashMap<net.minecraft.resources.ResourceLocation, CreativeTabCategory> protected final it.unimi.dsi.fastutil.ints.Int2ObjectArrayMap<CreativeTabHeader> protected final Stringprotected final it.unimi.dsi.fastutil.ints.Int2ObjectLinkedOpenHashMap<SlotStorage> protected final CreativeTabVisualInfoFields inherited from class net.minecraft.world.item.CreativeModeTab
displayItems, displayItemsGenerator, displayItemsSearchTab, tabsAfter, tabsBefore -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCategorizedCreativeTab(String modId, CategorizedBuilder categorizedBuilder) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidappendCategory(net.minecraft.resources.ResourceLocation id, CreativeTabCategory category) voidabstract voidstatic voidbuildCreativeTabs(net.neoforged.neoforge.event.BuildCreativeModeTabContentsEvent event) static CategorizedBuilderbuilder(Function<CategorizedBuilder, CategorizedCreativeTab> tabFactory) createCategory(String id) HashMap<net.minecraft.resources.ResourceLocation, CreativeTabCategory> getHeader(int row) getSlotStorage(int itemIndex) abstract booleanisItemVisible(net.minecraft.world.item.ItemStack stack) Methods inherited from class net.minecraft.world.item.CreativeModeTab
buildContents, builder, builder, canScroll, column, contains, createTextureLocation, getBackgroundTexture, getDisplayItems, getDisplayName, getIconItem, getLabelColor, getScrollerSprite, getSearchBarWidth, getSearchTabDisplayItems, getSlotColor, getTabsImage, getType, hasAnyItems, hasSearchBar, isAlignedRight, row, shouldDisplay, showTitle
-
Field Details
-
modId
-
categories
-
visualInfo
-
headerRows
-
slots
-
-
Constructor Details
-
CategorizedCreativeTab
-
-
Method Details
-
createCategory
-
getCategories
-
getHeader
-
getSlotStorage
-
buildCreativeTabs
public static void buildCreativeTabs(net.neoforged.neoforge.event.BuildCreativeModeTabContentsEvent event) -
bakeCategoryData
-
isItemVisible
public abstract boolean isItemVisible(net.minecraft.world.item.ItemStack stack) -
buildCategories
public abstract void buildCategories() -
appendCategory
protected void appendCategory(net.minecraft.resources.ResourceLocation id, CreativeTabCategory category) -
builder
public static CategorizedBuilder builder(Function<CategorizedBuilder, CategorizedCreativeTab> tabFactory)
-