Package net.minecraft.item
Class ItemGroup
java.lang.Object
net.minecraft.item.ItemGroup
public abstract class ItemGroup extends Object
-
Field Summary
Fields Modifier and Type Field Description static ItemGroupBREWINGstatic ItemGroupBUILDING_BLOCKSstatic ItemGroupCOMBATstatic ItemGroupDECORATIONSprivate EnchantmentTarget[]enchantmentsstatic ItemGroupFOODstatic ItemGroup[]GROUPSstatic ItemGroupHOTBARprivate ItemStackiconprivate Stringidprivate intindexstatic ItemGroupINVENTORYstatic ItemGroupMATERIALSstatic ItemGroupMISCprivate Stringnamestatic ItemGroupREDSTONEprivate booleanrenderNameprivate booleanscrollbarstatic ItemGroupSEARCHprivate Stringtexturestatic ItemGroupTOOLSprivate TexttranslationKeystatic ItemGroupTRANSPORTATION -
Constructor Summary
-
Method Summary
Modifier and Type Method Description voidappendStacks(DefaultedList<ItemStack> stacks)booleancontainsEnchantments(EnchantmentTarget target)abstract ItemStackcreateIcon()intgetColumn()EnchantmentTarget[]getEnchantments()ItemStackgetIcon()intgetIndex()StringgetName()StringgetTexture()TextgetTranslationKey()booleanhasScrollbar()ItemGrouphideName()Specifies that when this item group is selected, the name of the item group should not be rendered.booleanisSpecial()booleanisTopRow()ItemGroupsetEnchantments(EnchantmentTarget[] targets)ItemGroupsetName(String name)ItemGroupsetNoScrollbar()ItemGroupsetTexture(String texture)booleanshouldRenderName()Checks if this item group should render its name.
-
Field Details
-
GROUPS
-
BUILDING_BLOCKS
-
DECORATIONS
-
REDSTONE
-
TRANSPORTATION
-
MISC
-
SEARCH
-
FOOD
-
TOOLS
-
COMBAT
-
BREWING
-
MATERIALS
-
HOTBAR
-
INVENTORY
-
index
private final int index -
id
-
translationKey
-
name
-
texture
-
scrollbar
private boolean scrollbar -
renderName
private boolean renderName -
enchantments
-
icon
-
-
Constructor Details
-
ItemGroup
-
-
Method Details
-
getIndex
@Environment(CLIENT) public int getIndex() -
getName
-
getTranslationKey
-
getIcon
-
createIcon
-
getTexture
-
setTexture
-
setName
-
shouldRenderName
@Environment(CLIENT) public boolean shouldRenderName()Checks if this item group should render its name.The name is rendered below the top row of item groups and above the inventory.
-
hideName
Specifies that when this item group is selected, the name of the item group should not be rendered. -
hasScrollbar
@Environment(CLIENT) public boolean hasScrollbar() -
setNoScrollbar
-
getColumn
@Environment(CLIENT) public int getColumn() -
isTopRow
@Environment(CLIENT) public boolean isTopRow() -
isSpecial
@Environment(CLIENT) public boolean isSpecial() -
getEnchantments
-
setEnchantments
-
containsEnchantments
-
appendStacks
-