Package net.minecraft.world.item
Class CreativeModeTab
java.lang.Object
net.minecraft.world.item.CreativeModeTab
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate ResourceLocationprivate StringDeprecated.private booleanprivate static final ResourceLocationprivate final Componentprivate EnchantmentCategory[]private ItemStackprivate final intprivate final Stringprivate Stringprivate booleanstatic final CreativeModeTabstatic final CreativeModeTabstatic final CreativeModeTabstatic final CreativeModeTabstatic final CreativeModeTabstatic final CreativeModeTabstatic final CreativeModeTabstatic final CreativeModeTabstatic final CreativeModeTabstatic final CreativeModeTabstatic final CreativeModeTabstatic final CreativeModeTabstatic final CreativeModeTabstatic CreativeModeTab[] -
Constructor Summary
ConstructorsConstructorDescriptionCreativeModeTab(int p_40773_, String p_40774_) CreativeModeTab(String label) -
Method Summary
Modifier and TypeMethodDescriptionprivate static intaddGroupSafe(int index, CreativeModeTab newGroup) booleanvoidfillItemList(NonNullList<ItemStack> p_40778_) Deprecated.intstatic intintgetId()intintGets the width of the search bar of the creative tab, use this if your creative tab name overflows together with a custom texture.intintbooleanhasEnchantmentCategory(EnchantmentCategory p_40777_) booleanbooleanbooleanisTopRow()abstract ItemStackmakeIcon()setBackgroundImage(ResourceLocation texture) setBackgroundSuffix(String p_40780_) Deprecated.Forge: usesetBackgroundImage(net.minecraft.resources.ResourceLocation)insteadsetEnchantmentCategories(EnchantmentCategory... p_40782_) setRecipeFolderName(String p_40785_) boolean
-
Field Details
-
TABS
-
TAB_BUILDING_BLOCKS
-
TAB_DECORATIONS
-
TAB_REDSTONE
-
TAB_TRANSPORTATION
-
TAB_MISC
-
TAB_SEARCH
-
TAB_FOOD
-
TAB_TOOLS
-
TAB_COMBAT
-
TAB_BREWING
-
TAB_MATERIALS
-
TAB_HOTBAR
-
TAB_INVENTORY
-
id
private final int id -
langId
-
displayName
-
recipeFolderName
-
backgroundSuffix
Deprecated. -
backgroundLocation
-
canScroll
private boolean canScroll -
showTitle
private boolean showTitle -
enchantmentCategories
-
iconItemStack
-
CREATIVE_INVENTORY_TABS
-
-
Constructor Details
-
CreativeModeTab
-
CreativeModeTab
-
-
Method Details
-
getId
public int getId() -
getRecipeFolderName
-
getDisplayName
-
getIconItem
-
makeIcon
-
getBackgroundSuffix
Deprecated.Forge usegetBackgroundImage()instead -
setBackgroundSuffix
Deprecated.Forge: usesetBackgroundImage(net.minecraft.resources.ResourceLocation)instead -
setBackgroundImage
-
setRecipeFolderName
-
showTitle
public boolean showTitle() -
hideTitle
-
canScroll
public boolean canScroll() -
hideScroll
-
getColumn
public int getColumn() -
isTopRow
public boolean isTopRow() -
isAlignedRight
public boolean isAlignedRight() -
getEnchantmentCategories
-
setEnchantmentCategories
-
hasEnchantmentCategory
-
fillItemList
-
getTabPage
public int getTabPage() -
hasSearchBar
public boolean hasSearchBar() -
getSearchbarWidth
public int getSearchbarWidth()Gets the width of the search bar of the creative tab, use this if your creative tab name overflows together with a custom texture.- Returns:
- The width of the search bar, 89 by default
-
getBackgroundImage
-
getTabsImage
-
getLabelColor
public int getLabelColor() -
getSlotColor
public int getSlotColor() -
getGroupCountSafe
public static int getGroupCountSafe() -
addGroupSafe
-
getBackgroundImage()instead