Link to stateingredient
Wrapper around blocks, blockstates or block tags used to match recipe inputs like blocks to convert with the Pure Daisy, or catalysts for mana infusion.
To create, simply cast an MCBlock, MCBlockState, an array of MCBlocks, or an MCTag<MCBlock> to StateIngredient. This is done automatically when using them as a parameter for a method.
This class was added by a mod with mod-id
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.
Link to 已实现的接口
StateIngredient implements the following interfaces. That means all methods defined in these interfaces are also available in StateIngredient
Link to casters
Link to 使用方式
Tests if the provided block state matches the recipe.
Return Type: boolean
// StateIngredient.matches(state as MCBlockState) as boolean ingredient.matches(<blockstate:minecraft:dirt>);
描述Block state to test against this ingredient