Home Getting Started With Scripts Commands Examples
BracketDumpers BracketHandlers BracketValidators

CreativeModeTab

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.

script.zs
import crafttweaker.api.item.CreativeModeTab;

Methods

Return Type: boolean

script.zs
// CreativeModeTab.canScroll() as boolean
myCreativeModeTab.canScroll();

Return Type: stdlib.List<IItemStack>

script.zs
// CreativeModeTab.fillItemList() as stdlib.List<IItemStack>
myCreativeModeTab.fillItemList();

Return Type: string

script.zs
// CreativeModeTab.getBackgroundSuffix() as string
myCreativeModeTab.getBackgroundSuffix();

Return Type: int

script.zs
// CreativeModeTab.getColumn() as int
myCreativeModeTab.getColumn();

Return Type: Component

script.zs
// CreativeModeTab.getDisplayName() as Component
myCreativeModeTab.getDisplayName();

Return Type: EnchantmentCategory[]

script.zs
// CreativeModeTab.getEnchantmentCategories() as EnchantmentCategory[]
myCreativeModeTab.getEnchantmentCategories();

Return Type: IItemStack

script.zs
// CreativeModeTab.getIconItem() as IItemStack
myCreativeModeTab.getIconItem();

Return Type: int

script.zs
// CreativeModeTab.getId() as int
myCreativeModeTab.getId();

Return Type: string

script.zs
// CreativeModeTab.getRecipeFolderName() as string
myCreativeModeTab.getRecipeFolderName();

Return Type: boolean

script.zs
CreativeModeTab.hasEnchantmentCategory(category as EnchantmentCategory) as boolean
ParameterTypeDescription
Parameter
category
Type
EnchantmentCategory
Description
No Description Provided

Return Type: CreativeModeTab

script.zs
// CreativeModeTab.hideScroll() as CreativeModeTab
myCreativeModeTab.hideScroll();

Return Type: CreativeModeTab

script.zs
// CreativeModeTab.hideTitle() as CreativeModeTab
myCreativeModeTab.hideTitle();

Return Type: boolean

script.zs
// CreativeModeTab.isAlignedRight() as boolean
myCreativeModeTab.isAlignedRight();

Return Type: boolean

script.zs
// CreativeModeTab.isTopRow() as boolean
myCreativeModeTab.isTopRow();

Return Type: CreativeModeTab

script.zs
CreativeModeTab.setBackgroundSuffix(prefix as string) as CreativeModeTab
ParameterTypeDescription
Parameter
prefix
Type
string
Description
No Description Provided

Return Type: CreativeModeTab

script.zs
CreativeModeTab.setEnchantmentCategories(categories as EnchantmentCategory[]) as CreativeModeTab
ParameterTypeDescription
Parameter
categories
Type
EnchantmentCategory[]
Description
No Description Provided

Return Type: CreativeModeTab

script.zs
CreativeModeTab.setRecipeFolderName(recipeFolderName as string) as CreativeModeTab
ParameterTypeDescription
Parameter
recipeFolderName
Type
string
Description
No Description Provided

Return Type: boolean

script.zs
// CreativeModeTab.showTitle() as boolean
myCreativeModeTab.showTitle();

Properties

NameTypeHas GetterHas SetterDescription
Name
backgroundSuffic
Type
string
Has Getter
true
Has Setter
false
Description
No Description Provided
Name
canScroll
Type
boolean
Has Getter
true
Has Setter
false
Description
No Description Provided
Name
column
Type
int
Has Getter
true
Has Setter
false
Description
No Description Provided
Name
commandString
Type
string
Has Getter
true
Has Setter
false
Description
No Description Provided
Name
displayName
Type
Component
Has Getter
true
Has Setter
false
Description
No Description Provided
Name
enchantmentCategories
Type
EnchantmentCategory[]
Has Getter
true
Has Setter
false
Description
No Description Provided
Name
iconItem
Type
IItemStack
Has Getter
true
Has Setter
false
Description
No Description Provided
Name
id
Type
int
Has Getter
true
Has Setter
false
Description
No Description Provided
Name
isAlignedRight
Type
boolean
Has Getter
true
Has Setter
false
Description
No Description Provided
Name
isTopRow
Type
boolean
Has Getter
true
Has Setter
false
Description
No Description Provided
Name
recipeFolderName
Type
string
Has Getter
true
Has Setter
false
Description
No Description Provided
Name
showTitle
Type
boolean
Has Getter
true
Has Setter
false
Description
No Description Provided