Home Commands Examples Getting Started With Scripts Global Keywords

AbstractCauldronBlock

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.block.type.cauldron.AbstractCauldronBlock;

Extending Block

AbstractCauldronBlock extends Block. That means all methods available in Block are also available in AbstractCauldronBlock

Methods

Checks if this cauldron is full.

Returns: True if full, false otherwise.
Return Type: boolean

script.zs
// AbstractCauldronBlock.isFull(blockState as BlockState) as boolean
myAbstractCauldronBlock.isFull(<blockstate:minecraft:cauldron:level=3>);
ParameterTypeDescription
Parameter
blockState
Type
BlockState
Description
The current block state of the cauldron.