LayeredCauldronBlock

Link to layeredcauldronblock

Импорт класса

Link to импорт-класса

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

Extending AbstractCauldronBlock

Link to extending-abstractcauldronblock

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

Name: lowerFillLevel

Lowers the fill level of the layered Cauldron at the given position.

ZenScript
Copy
// LayeredCauldronBlock.lowerFillLevel(blockState as BlockState, level as Level, position as BlockPos)

LayeredCauldronBlock.lowerFillLevel(<blockstate:minecraft:cauldron:level=3>, level, new BlockPos(1, 2, 3););
ПараметрТипОписание
Параметр
blockState
Тип
BlockState
Описание
The blockstate of the cauldron.
Параметр
level
Тип
Level
Описание
The current level.
Параметр
position
Тип
BlockPos
Описание
The position of the cauldron.