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
. 因此,如果要使用此功能,则需要安装此mod。
导入类
Link to 导入类
如果遇到任何问题(例如强制转换数组),则可能需要导入软件包,因此,最好的方式就是导入包支持。
ZenScript Copymods.contenttweaker.item.MCItemGroup
已实现的接口
Link to 已实现的接口
MCItemGroup implements the following interfaces. 这意味着对这个接口可用的任何方法也可以在此类上使用。
使用方式
Link to 使用方式
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);
参数 | 类型 | 描述 |
---|---|---|
参数 texture | 类型 字符串[string] | 描述 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();
名称 | 类型 | 可获得 | 可设置 |
---|---|---|---|
名称 commandString #命令字符串 | 类型 字符串[string] | 可获得 true | 可设置 false |
名称 path | 类型 字符串[string] | 可获得 true | 可设置 false |