Package net.minecraft.item
Class ItemGroup
java.lang.Object
net.minecraft.item.ItemGroup
-
Field Summary
Modifier and TypeFieldDescriptionprivate ResourceLocation
private String
Deprecated.private boolean
private static final ResourceLocation
private final ITextComponent
private EnchantmentType[]
private ItemStack
private final int
private final String
private String
private boolean
static final ItemGroup
static final ItemGroup
static final ItemGroup
static final ItemGroup
static final ItemGroup
static final ItemGroup
static final ItemGroup
static final ItemGroup
static final ItemGroup
static final ItemGroup
static final ItemGroup
static final ItemGroup
static final ItemGroup
static ItemGroup[]
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate static int
addGroupSafe
(int index, ItemGroup newGroup) boolean
void
fillItemList
(NonNullList<ItemStack> p_78018_1_) 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
(EnchantmentType p_111226_1_) boolean
boolean
boolean
isTopRow()
abstract ItemStack
makeIcon()
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