Package net.minecraft.item
Class ItemGroup
- java.lang.Object
-
- net.minecraft.item.ItemGroup
-
public abstract class ItemGroup extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private ResourceLocation
backgroundLocation
private java.lang.String
backgroundSuffix
Deprecated.private boolean
canScroll
private static ResourceLocation
CREATIVE_INVENTORY_TABS
private ITextComponent
displayName
private EnchantmentType[]
enchantmentCategories
private ItemStack
iconItemStack
private int
id
private java.lang.String
langId
private java.lang.String
recipeFolderName
private boolean
showTitle
static ItemGroup
TAB_BREWING
static ItemGroup
TAB_BUILDING_BLOCKS
static ItemGroup
TAB_COMBAT
static ItemGroup
TAB_DECORATIONS
static ItemGroup
TAB_FOOD
static ItemGroup
TAB_HOTBAR
static ItemGroup
TAB_INVENTORY
static ItemGroup
TAB_MATERIALS
static ItemGroup
TAB_MISC
static ItemGroup
TAB_REDSTONE
static ItemGroup
TAB_SEARCH
static ItemGroup
TAB_TOOLS
static ItemGroup
TAB_TRANSPORTATION
static ItemGroup[]
TABS
-
Method Summary
-
-
-
Field Detail
-
TABS
public static ItemGroup[] TABS
-
TAB_BUILDING_BLOCKS
public static final ItemGroup TAB_BUILDING_BLOCKS
-
TAB_DECORATIONS
public static final ItemGroup TAB_DECORATIONS
-
TAB_REDSTONE
public static final ItemGroup TAB_REDSTONE
-
TAB_TRANSPORTATION
public static final ItemGroup TAB_TRANSPORTATION
-
TAB_MISC
public static final ItemGroup TAB_MISC
-
TAB_SEARCH
public static final ItemGroup TAB_SEARCH
-
TAB_FOOD
public static final ItemGroup TAB_FOOD
-
TAB_TOOLS
public static final ItemGroup TAB_TOOLS
-
TAB_COMBAT
public static final ItemGroup TAB_COMBAT
-
TAB_BREWING
public static final ItemGroup TAB_BREWING
-
TAB_MATERIALS
public static final ItemGroup TAB_MATERIALS
-
TAB_HOTBAR
public static final ItemGroup TAB_HOTBAR
-
TAB_INVENTORY
public static final ItemGroup TAB_INVENTORY
-
id
private final int id
-
langId
private final java.lang.String langId
-
displayName
private final ITextComponent displayName
-
recipeFolderName
private java.lang.String recipeFolderName
-
backgroundSuffix
@Deprecated private java.lang.String backgroundSuffix
Deprecated.
-
backgroundLocation
private ResourceLocation backgroundLocation
-
canScroll
private boolean canScroll
-
showTitle
private boolean showTitle
-
enchantmentCategories
private EnchantmentType[] enchantmentCategories
-
iconItemStack
private ItemStack iconItemStack
-
CREATIVE_INVENTORY_TABS
private static final ResourceLocation CREATIVE_INVENTORY_TABS
-
-
Method Detail
-
getId
public int getId()
-
getRecipeFolderName
public java.lang.String getRecipeFolderName()
-
getDisplayName
public ITextComponent getDisplayName()
-
getIconItem
public ItemStack getIconItem()
-
makeIcon
public abstract ItemStack makeIcon()
-
getBackgroundSuffix
@Deprecated public java.lang.String getBackgroundSuffix()
Deprecated.Forge usegetBackgroundImage()
instead
-
setBackgroundSuffix
@Deprecated public ItemGroup setBackgroundSuffix(java.lang.String p_78025_1_)
Deprecated.Forge: usesetBackgroundImage(net.minecraft.util.ResourceLocation)
instead
-
setBackgroundImage
public ItemGroup setBackgroundImage(ResourceLocation texture)
-
setRecipeFolderName
public ItemGroup setRecipeFolderName(java.lang.String p_199783_1_)
-
showTitle
public boolean showTitle()
-
hideTitle
public ItemGroup hideTitle()
-
canScroll
public boolean canScroll()
-
hideScroll
public ItemGroup hideScroll()
-
getColumn
public int getColumn()
-
isTopRow
public boolean isTopRow()
-
isAlignedRight
public boolean isAlignedRight()
-
getEnchantmentCategories
public EnchantmentType[] getEnchantmentCategories()
-
setEnchantmentCategories
public ItemGroup setEnchantmentCategories(EnchantmentType... p_111229_1_)
-
hasEnchantmentCategory
public boolean hasEnchantmentCategory(@Nullable EnchantmentType p_111226_1_)
-
fillItemList
public void fillItemList(NonNullList<ItemStack> p_78018_1_)
-
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
public ResourceLocation getBackgroundImage()
-
getTabsImage
public ResourceLocation getTabsImage()
-
getLabelColor
public int getLabelColor()
-
getSlotColor
public int getSlotColor()
-
getGroupCountSafe
public static int getGroupCountSafe()
-
addGroupSafe
private static int addGroupSafe(int index, ItemGroup newGroup)
-
-