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

CraftingBookCategory

Importing the class

If you need to reference this type directly, like when casting an Array, or as a parameter, you will need to import it. Simply add the import at the top of the file.

script.zs
import crafttweaker.api.recipe.CraftingBookCategory;

Implements

CraftingBookCategory implements the following interfaces:

StringRepresentable

Undocumented Interfaces

Comparable<Enum>

Enum Constants

CraftingBookCategory is an enum with 4 constants. They are accessible like so:

script.zs
// CraftingBookCategory.BUILDING
<constant:minecraft:recipe/category/crafting:building>
// CraftingBookCategory.EQUIPMENT
<constant:minecraft:recipe/category/crafting:equipment>
// CraftingBookCategory.MISC
<constant:minecraft:recipe/category/crafting:misc>
// CraftingBookCategory.REDSTONE
<constant:minecraft:recipe/category/crafting:redstone>

Members

Getter
Gets the serialized name.
script.zs
// CraftingBookCategory.serializedName as string
<constant:minecraft:recipe/category/crafting:building>.serializedName

Return Type: string

serializedName() as string
Gets the serialized name.

Returns: the serialized name.

script.zs
// CraftingBookCategory.serializedName() as string;
<constant:minecraft:recipe/category/crafting:building>.serializedName();

Return Type: string