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

BlockIngredient

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.block.BlockIngredient;

Implements

BlockIngredient implements the following interfaces:

CommandStringDisplayable

Operators

|(other as CTBlockIngredient) as CTBlockIngredient
script.zs
// (CTBlockIngredient | (other as BlockIngredient)) as BlockIngredient
myCTBlockIngredient | myCTBlockIngredient

Parameters:

Return Type: BlockIngredient