BlockIngredient
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.
Static Methods
Create a block ingredient from a block
Returns:
Return Type: BlockIngredient
Parameter | Type | Description |
---|---|---|
Parameter block | Type Block | Description block |
Create a block from an array of blocks
Returns:
Return Type: BlockIngredient
Parameter | Type | Description |
---|---|---|
Parameter blocks | Type Block[] | Description array of blocks |
Create a block ingredient from a block tag
Returns:
Return Type: BlockIngredient
Parameter | Type | Description |
---|---|---|
Parameter tag | Type KnownTag<Block> | Description block tag |