CreativeModeTab
Link to creativemodetab
导入类
Link to 导入类
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 Copyimport crafttweaker.api.item.CreativeModeTab;
使用方式
Link to 使用方式
Name: canScroll
Return Type: boolean
ZenScript Copy// CreativeModeTab.canScroll() as boolean
myCreativeModeTab.canScroll();
Name: fillItemList
Return Type: stdlib.List<IItemStack>
ZenScript Copy// CreativeModeTab.fillItemList() as stdlib.List<IItemStack>
myCreativeModeTab.fillItemList();
Name: getBackgroundSuffix
Return Type: string
ZenScript Copy// CreativeModeTab.getBackgroundSuffix() as string
myCreativeModeTab.getBackgroundSuffix();
Name: getColumn
Return Type: int
ZenScript Copy// CreativeModeTab.getColumn() as int
myCreativeModeTab.getColumn();
Name: getDisplayName
Return Type: Component
ZenScript Copy// CreativeModeTab.getDisplayName() as Component
myCreativeModeTab.getDisplayName();
Name: getEnchantmentCategories
Return Type: EnchantmentCategory[]
ZenScript Copy// CreativeModeTab.getEnchantmentCategories() as EnchantmentCategory[]
myCreativeModeTab.getEnchantmentCategories();
Name: getIconItem
Return Type: IItemStack
ZenScript Copy// CreativeModeTab.getIconItem() as IItemStack
myCreativeModeTab.getIconItem();
Name: getId
Return Type: int
ZenScript Copy// CreativeModeTab.getId() as int
myCreativeModeTab.getId();
Name: getRecipeFolderName
Return Type: string
ZenScript Copy// CreativeModeTab.getRecipeFolderName() as string
myCreativeModeTab.getRecipeFolderName();
Name: hasEnchantmentCategory
Return Type: boolean
ZenScript CopyCreativeModeTab.hasEnchantmentCategory(category as EnchantmentCategory) as boolean
参数 | 类型 | 描述 |
---|---|---|
参数 category | 类型 EnchantmentCategory | 描述 No Description Provided |
Name: hideScroll
Return Type: CreativeModeTab
ZenScript Copy// CreativeModeTab.hideScroll() as CreativeModeTab
myCreativeModeTab.hideScroll();
Name: hideTitle
Return Type: CreativeModeTab
ZenScript Copy// CreativeModeTab.hideTitle() as CreativeModeTab
myCreativeModeTab.hideTitle();
Name: isAlignedRight
Return Type: boolean
ZenScript Copy// CreativeModeTab.isAlignedRight() as boolean
myCreativeModeTab.isAlignedRight();
Name: isTopRow
Return Type: boolean
ZenScript Copy// CreativeModeTab.isTopRow() as boolean
myCreativeModeTab.isTopRow();
Name: setBackgroundSuffix
Return Type: CreativeModeTab
ZenScript CopyCreativeModeTab.setBackgroundSuffix(prefix as string) as CreativeModeTab
参数 | 类型 | 描述 |
---|---|---|
参数 prefix | 类型 string | 描述 No Description Provided |
Name: setEnchantmentCategories
Return Type: CreativeModeTab
ZenScript CopyCreativeModeTab.setEnchantmentCategories(categories as EnchantmentCategory[]) as CreativeModeTab
参数 | 类型 | 描述 |
---|---|---|
参数 categories | 类型 EnchantmentCategory[] | 描述 No Description Provided |
Name: setRecipeFolderName
Return Type: CreativeModeTab
ZenScript CopyCreativeModeTab.setRecipeFolderName(recipeFolderName as string) as CreativeModeTab
参数 | 类型 | 描述 |
---|---|---|
参数 recipeFolderName | 类型 string | 描述 No Description Provided |
Name: showTitle
Return Type: boolean
ZenScript Copy// CreativeModeTab.showTitle() as boolean
myCreativeModeTab.showTitle();
名称 | 类型 | 可获得 | 可设置 | 描述 |
---|---|---|---|---|
名称 backgroundSuffic | 类型 string | 可获得 true | 可设置 false | 描述 No Description Provided |
名称 canScroll | 类型 布尔值 | 可获得 true | 可设置 false | 描述 No Description Provided |
名称 column | 类型 int | 可获得 true | 可设置 false | 描述 No Description Provided |
名称 commandString #命令字符串 | 类型 string | 可获得 true | 可设置 false | 描述 No Description Provided |
名称 displayName | 类型 Component | 可获得 true | 可设置 false | 描述 No Description Provided |
名称 enchantmentCategories | 类型 EnchantmentCategory[] | 可获得 true | 可设置 false | 描述 No Description Provided |
名称 iconItem | 类型 IItemstack | 可获得 true | 可设置 false | 描述 No Description Provided |
名称 id | 类型 int | 可获得 true | 可设置 false | 描述 No Description Provided |
名称 isAlignedRight | 类型 布尔值 | 可获得 true | 可设置 false | 描述 No Description Provided |
名称 isTopRow | 类型 布尔值 | 可获得 true | 可设置 false | 描述 No Description Provided |
名称 recipeFolderName | 类型 string | 可获得 true | 可设置 false | 描述 No Description Provided |
名称 showTitle | 类型 布尔值 | 可获得 true | 可设置 false | 描述 No Description Provided |