MCItemGroup
Link to 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
Link to 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.
ZenScript Copymods.contenttweaker.item.MCItemGroup
Implemented Interfaces
Link to implemented-interfaces
MCItemGroup implements the following interfaces. That means any method available to them can also be used on this class.
Methods
Link to methods
getPath
Link to 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<itemgroup:misc>.getPath();
setBackgroundImageName
Link to setbackgroundimagename
Sets the image name of the Background that is used for this tab in the creative menu Returns: This object for chaining
Return type: mods.contenttweaker.item.MCItemGroup
ZenScript Copy<itemgroup:misc>.setBackgroundImageName(texture as String);
Parameter | Type | Description |
---|---|---|
Parameter texture | Type String | Description The texture to be used |
setNoScrollbar
Link to setnoscrollbar
Removes the scrollbar of the item Group in the creative inventory
Returns: This object for chaining
Return type: mods.contenttweaker.item.MCItemGroup
ZenScript Copy<itemgroup:misc>.setNoScrollbar();
setNoTitle
Link to setnotitle
Removes the title of the item Group in the creative inventory
Returns: This object for chaining
Return type: mods.contenttweaker.item.MCItemGroup
ZenScript Copy<itemgroup:misc>.setNoTitle();
Properties
Link to properties
Name | Type | Has Getter | Has Setter |
---|---|---|---|
Name commandString | Type String | Has Getter true | Has Setter false |
Name path | Type String | Has Getter true | Has Setter false |