Importare la Classe

Link to importare-la-classe

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
Copy
import crafttweaker.api.item.CreativeModeTab;

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();

Link to getBackgroundSuffix

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();

Link to getEnchantmentCategories

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();

Link to getRecipeFolderName

Name: getRecipeFolderName

Return Type: string

ZenScript
Copy
// CreativeModeTab.getRecipeFolderName() as string

myCreativeModeTab.getRecipeFolderName();

Link to hasEnchantmentCategory

Name: hasEnchantmentCategory

Return Type: boolean

ZenScript
Copy
CreativeModeTab.hasEnchantmentCategory(category as EnchantmentCategory?) as boolean
ParametroTipo
Parametro
category
Tipo
EnchantmentCategory?

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();

Link to setBackgroundSuffix

Name: setBackgroundSuffix

Return Type: CreativeModeTab

ZenScript
Copy
CreativeModeTab.setBackgroundSuffix(prefix as string) as CreativeModeTab
ParametroTipo
Parametro
prefix
Tipo
string

Link to setEnchantmentCategories

Name: setEnchantmentCategories

Return Type: CreativeModeTab

ZenScript
Copy
CreativeModeTab.setEnchantmentCategories(categories as EnchantmentCategory[]) as CreativeModeTab
ParametroTipo
Parametro
categories
Tipo
EnchantmentCategory[]

Link to setRecipeFolderName

Name: setRecipeFolderName

Return Type: CreativeModeTab

ZenScript
Copy
CreativeModeTab.setRecipeFolderName(recipeFolderName as string) as CreativeModeTab
ParametroTipo
Parametro
recipeFolderName
Tipo
string

Name: showTitle

Return Type: boolean

ZenScript
Copy
// CreativeModeTab.showTitle() as boolean

myCreativeModeTab.showTitle();
NomeTipoHa GetterHa Setter
Nome
backgroundSuffic
Tipo
string
Ha Getter
Ha Setter
no
Nome
canScroll
Tipo
boolean
Ha Getter
Ha Setter
no
Nome
column
Tipo
int
Ha Getter
Ha Setter
no
Nome
commandString
Tipo
string
Ha Getter
Ha Setter
no
Nome
displayName
Tipo
Component
Ha Getter
Ha Setter
no
Nome
enchantmentCategories
Tipo
EnchantmentCategory[]
Ha Getter
Ha Setter
no
Nome
iconItem
Tipo
IItemStack
Ha Getter
Ha Setter
no
Nome
id
Tipo
int
Ha Getter
Ha Setter
no
Nome
isAlignedRight
Tipo
boolean
Ha Getter
Ha Setter
no
Nome
isTopRow
Tipo
boolean
Ha Getter
Ha Setter
no
Nome
recipeFolderName
Tipo
string
Ha Getter
Ha Setter
no
Nome
showTitle
Tipo
boolean
Ha Getter
Ha Setter
no