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 ItemGroup
BREWING
static ItemGroup
BUILDING_BLOCKS
static ItemGroup
COMBAT
static ItemGroup
DECORATIONS
private EnchantmentTarget[]
enchantments
static ItemGroup
FOOD
static ItemGroup[]
GROUPS
static ItemGroup
HOTBAR
private ItemStack
icon
private String
id
private int
index
static ItemGroup
INVENTORY
static ItemGroup
MATERIALS
static ItemGroup
MISC
private String
name
static ItemGroup
REDSTONE
private boolean
renderName
private boolean
scrollbar
static ItemGroup
SEARCH
private String
texture
static ItemGroup
TOOLS
private Text
translationKey
static ItemGroup
TRANSPORTATION
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description void
appendStacks(DefaultedList<ItemStack> stacks)
boolean
containsEnchantments(EnchantmentTarget target)
abstract ItemStack
createIcon()
int
getColumn()
EnchantmentTarget[]
getEnchantments()
ItemStack
getIcon()
int
getIndex()
String
getName()
String
getTexture()
Text
getTranslationKey()
boolean
hasScrollbar()
ItemGroup
hideName()
Specifies that when this item group is selected, the name of the item group should not be rendered.boolean
isSpecial()
boolean
isTopRow()
ItemGroup
setEnchantments(EnchantmentTarget[] targets)
ItemGroup
setName(String name)
ItemGroup
setNoScrollbar()
ItemGroup
setTexture(String texture)
boolean
shouldRenderName()
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
-