Home Commands Examples Getting Started With Scripts Global Keywords
BracketDumpers BracketHandlers BracketValidators ResourceLocationBracketHandler

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
ParameterType
Parameter
category
Type
EnchantmentCategory?

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
ParameterType
Parameter
prefix
Type
string

Return Type: CreativeModeTab

script.zs
CreativeModeTab.setEnchantmentCategories(categories as EnchantmentCategory[]) as CreativeModeTab
ParameterType
Parameter
categories
Type
EnchantmentCategory[]

Return Type: CreativeModeTab

script.zs
CreativeModeTab.setRecipeFolderName(recipeFolderName as string) as CreativeModeTab
ParameterType
Parameter
recipeFolderName
Type
string

Return Type: boolean

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

Properties

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