public abstract class ItemGroup
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
backgroundTexture |
static ItemGroup |
BREWING |
static ItemGroup |
BUILDING_BLOCKS |
static ItemGroup |
COMBAT |
private static ResourceLocation |
CREATIVE_INVENTORY_TABS |
static ItemGroup |
DECORATIONS |
private boolean |
drawTitle |
private EnchantmentType[] |
enchantmentTypes |
static ItemGroup |
FOOD |
static ItemGroup[] |
GROUPS |
private boolean |
hasScrollbar |
static ItemGroup |
HOTBAR |
private ItemStack |
icon |
private int |
index |
static ItemGroup |
INVENTORY |
static ItemGroup |
MATERIALS |
static ItemGroup |
MISC |
static ItemGroup |
REDSTONE |
static ItemGroup |
SEARCH |
private java.lang.String |
tabLabel |
private java.lang.String |
tabPath |
static ItemGroup |
TOOLS |
static ItemGroup |
TRANSPORTATION |
Constructor and Description |
---|
ItemGroup(int index,
java.lang.String label) |
ItemGroup(java.lang.String label) |
public static ItemGroup[] GROUPS
public static final ItemGroup BUILDING_BLOCKS
public static final ItemGroup DECORATIONS
public static final ItemGroup REDSTONE
public static final ItemGroup TRANSPORTATION
public static final ItemGroup MISC
public static final ItemGroup SEARCH
public static final ItemGroup FOOD
public static final ItemGroup TOOLS
public static final ItemGroup COMBAT
public static final ItemGroup BREWING
public static final ItemGroup MATERIALS
public static final ItemGroup HOTBAR
public static final ItemGroup INVENTORY
private final int index
private final java.lang.String tabLabel
private java.lang.String tabPath
private java.lang.String backgroundTexture
private boolean hasScrollbar
private boolean drawTitle
private EnchantmentType[] enchantmentTypes
private ItemStack icon
private static final ResourceLocation CREATIVE_INVENTORY_TABS
public ItemGroup(java.lang.String label)
public ItemGroup(int index, java.lang.String label)
public int getIndex()
public java.lang.String getTabLabel()
public java.lang.String getPath()
public java.lang.String getTranslationKey()
public ItemStack getIcon()
public abstract ItemStack createIcon()
public java.lang.String getBackgroundImageName()
public ItemGroup setBackgroundImageName(java.lang.String texture)
public ItemGroup setTabPath(java.lang.String pathIn)
public boolean drawInForegroundOfTab()
public ItemGroup setNoTitle()
public boolean hasScrollbar()
public ItemGroup setNoScrollbar()
public int getColumn()
public boolean isOnTopRow()
public boolean isAlignedRight()
public EnchantmentType[] getRelevantEnchantmentTypes()
public ItemGroup setRelevantEnchantmentTypes(EnchantmentType... types)
public boolean hasRelevantEnchantmentType(@Nullable EnchantmentType enchantmentType)
public void fill(NonNullList<ItemStack> items)
public int getTabPage()
public boolean hasSearchBar()
public int getSearchbarWidth()
public ResourceLocation getBackgroundImage()
public ResourceLocation getTabsImage()
public int getLabelColor()
public int getSlotColor()
public static int getGroupCountSafe()
private static int addGroupSafe(int index, ItemGroup newGroup)