MCItemGroup

An item Group (a.k.a. Creative Tab) is a grouping of items based on category.

This class was added by a mod with mod-id contenttweaker. So you need to have this mod installed if you want to use this feature.

Importing the class

It might be required for you to import the package if you encounter any issues (like casting an Array), so better be safe than sorry and add the import at the very top of the file.

ZenScript
Copy
import mods.contenttweaker.item.MCItemGroup;

Implemented Interfaces

MCItemGroup implements the following interfaces. That means all methods defined in these interfaces are also available in MCItemGroup

Methods

getPath

Gets the path of the item group. The path is what you use in the Bracket Expression after the <itemGroup: part.

Return Type: string

ZenScript
Copy
// MCItemGroup.getPath() as string

<itemgroup:misc>.getPath();
setBackgroundImageName

Sets the image name of the Background that is used for this tab in the creative menu

Return Type: MCItemGroup

ZenScript
Copy
MCItemGroup.setBackgroundImageName(texture as string) as MCItemGroup
ParameterTypeDescription
texturestringThe texture to be used
setNoScrollbar

Removes the scrollbar of the item Group in the creative inventory

Return Type: MCItemGroup

ZenScript
Copy
// MCItemGroup.setNoScrollbar() as MCItemGroup

<itemgroup:misc>.setNoScrollbar();
setNoTitle

Removes the title of the item Group in the creative inventory

Return Type: MCItemGroup

ZenScript
Copy
// MCItemGroup.setNoTitle() as MCItemGroup

<itemgroup:misc>.setNoTitle();

Properties

NameTypeHas GetterHas SetterDescription
pathstringtruefalseGets the path of the item group.
The path is what you use in the Bracket Expression after the <itemGroup: part.