Package net.minecraft.world.item
Class CreativeModeTab
java.lang.Object
net.minecraft.world.item.CreativeModeTab
-
Field Summary
Modifier and TypeFieldDescriptionprivate ResourceLocation
private String
Deprecated.private boolean
private static final ResourceLocation
private final Component
private EnchantmentCategory[]
private ItemStack
private final int
private final String
private String
private boolean
static final CreativeModeTab
static final CreativeModeTab
static final CreativeModeTab
static final CreativeModeTab
static final CreativeModeTab
static final CreativeModeTab
static final CreativeModeTab
static final CreativeModeTab
static final CreativeModeTab
static final CreativeModeTab
static final CreativeModeTab
static final CreativeModeTab
static final CreativeModeTab
static CreativeModeTab[]
-
Constructor Summary
ConstructorDescriptionCreativeModeTab
(int p_40773_, String p_40774_) CreativeModeTab
(String label) -
Method Summary
Modifier and TypeMethodDescriptionprivate static int
addGroupSafe
(int index, CreativeModeTab newGroup) boolean
void
fillItemList
(NonNullList<ItemStack> p_40778_) Deprecated.int
static int
int
getId()
int
int
Gets the width of the search bar of the creative tab, use this if your creative tab name overflows together with a custom texture.int
int
boolean
hasEnchantmentCategory
(EnchantmentCategory p_40777_) boolean
boolean
boolean
isTopRow()
abstract ItemStack
makeIcon()
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