Expansion for MCTag<MCItemDefinition>

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.

Casters

结果类型是否隐藏
IDatatrue
材料(IIngredient)true
IIngredientWithAmounttrue

方法

add

Return Type: void

ZenScript
Copy
MCTag.add(items as stdlib.List<IItemStack>) as void
参数类型描述
itemsstdlib.List<IItemStack>No Description Provided

asIData

Return Type: IData

ZenScript
Copy
MCTag.asIData() as IData
<tag:items:forge:gems>.asIData();

asIIngredient

Return Type: IIngredient

ZenScript
Copy
MCTag.asIIngredient() as IIngredient
<tag:items:forge:gems>.asIIngredient();

asIIngredientWithAmount

Return Type: IIngredientWithAmount

ZenScript
Copy
MCTag.asIIngredientWithAmount() as IIngredientWithAmount
<tag:items:forge:gems>.asIIngredientWithAmount();