Package net.minecraft.item
Class ItemGroup
java.lang.Object
net.minecraft.item.ItemGroup
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate ResourceLocationprivate StringDeprecated.private booleanprivate static final ResourceLocationprivate final ITextComponentprivate EnchantmentType[]private ItemStackprivate final intprivate final Stringprivate Stringprivate booleanstatic final ItemGroupstatic final ItemGroupstatic final ItemGroupstatic final ItemGroupstatic final ItemGroupstatic final ItemGroupstatic final ItemGroupstatic final ItemGroupstatic final ItemGroupstatic final ItemGroupstatic final ItemGroupstatic final ItemGroupstatic final ItemGroupstatic ItemGroup[] -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static intaddGroupSafe(int index, ItemGroup newGroup) booleanvoidfillItemList(NonNullList<ItemStack> p_78018_1_) 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(EnchantmentType p_111226_1_) booleanbooleanbooleanisTopRow()abstract ItemStackmakeIcon()setBackgroundImage(ResourceLocation texture) setBackgroundSuffix(String p_78025_1_) Deprecated.Forge: usesetBackgroundImage(net.minecraft.util.ResourceLocation)insteadsetEnchantmentCategories(EnchantmentType... p_111229_1_) setRecipeFolderName(String p_199783_1_) 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
-
ItemGroup
-
ItemGroup
-
-
Method Details
-
getId
public int getId() -
getRecipeFolderName
-
getDisplayName
-
getIconItem
-
makeIcon
-
getBackgroundSuffix
Deprecated.Forge usegetBackgroundImage()instead -
setBackgroundSuffix
Deprecated.Forge: usesetBackgroundImage(net.minecraft.util.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