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

ExpandManyBlockTag

Expands

This class expands crafttweaker.api.util.Many<crafttweaker.api.tag.type.KnownTag<crafttweaker.api.block.Block>>, meaning that the content found on this page can be called on that type directly.

Description

This expansion specifically targets itemTags. It adds implicit casters to IIngredient and IData, so that you can use them wherever you can use IIngredient.


Only downside is that if you want to use Ingredient Transformers, you will need to call asIIngredient() first.

Operators

|(other as CTBlockIngredient) as CTBlockIngredient
script.zs
myInstance | myCTBlockIngredient

Parameters:

Return Type: BlockIngredient

Members

asIngredient() as CTBlockIngredient
script.zs
myInstance.asIngredient();

Return Type: BlockIngredient

implicit as CTBlockIngredient
script.zs
myInstance as CTBlockIngredient

Return Type: BlockIngredient