public abstract class ItemGroup
extends java.lang.Object
修飾子とタイプ | フィールドと説明 |
---|---|
static ItemGroup |
BREWING |
static ItemGroup |
BUILDING_BLOCKS |
static ItemGroup |
COMBAT |
static ItemGroup |
DECORATIONS |
static ItemGroup |
FOOD |
static ItemGroup[] |
GROUPS |
static ItemGroup |
HOTBAR |
static ItemGroup |
INVENTORY |
static ItemGroup |
MATERIALS |
static ItemGroup |
MISC |
static ItemGroup |
REDSTONE |
static ItemGroup |
SEARCH |
static ItemGroup |
TOOLS |
static ItemGroup |
TRANSPORTATION |
コンストラクタと説明 |
---|
ItemGroup(int index,
java.lang.String label) |
ItemGroup(java.lang.String label) |
修飾子とタイプ | メソッドと説明 |
---|---|
abstract ItemStack |
createIcon() |
boolean |
drawInForegroundOfTab() |
void |
fill(NonNullList<ItemStack> items)
Fills
items with all items that are in this group. |
ResourceLocation |
getBackgroundImage() |
java.lang.String |
getBackgroundImageName() |
int |
getColumn()
returns index % 6
|
static int |
getGroupCountSafe() |
ItemStack |
getIcon() |
int |
getIndex() |
int |
getLabelColor() |
java.lang.String |
getPath()
Gets the name that's valid for use in a ResourceLocation's path.
|
EnchantmentType[] |
getRelevantEnchantmentTypes()
Returns the enchantment types relevant to this tab
|
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.
|
int |
getSlotColor() |
java.lang.String |
getTabLabel() |
int |
getTabPage() |
ResourceLocation |
getTabsImage() |
java.lang.String |
getTranslationKey()
Gets the translated Label.
|
boolean |
hasRelevantEnchantmentType(EnchantmentType enchantmentType) |
boolean |
hasScrollbar() |
boolean |
hasSearchBar() |
boolean |
isAlignedRight() |
boolean |
isOnTopRow()
returns tabIndex < 6
|
ItemGroup |
setBackgroundImageName(java.lang.String texture) |
ItemGroup |
setNoScrollbar() |
ItemGroup |
setNoTitle() |
ItemGroup |
setRelevantEnchantmentTypes(EnchantmentType... types)
Sets the enchantment types for populating this tab with enchanting books
|
ItemGroup |
setTabPath(java.lang.String pathIn) |
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
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)
items
with all items that are in this group.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()