Expansion for MCTag<MCItemDefinition>
Link to expansion-for-mctagmcitemdefinition
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
Link to casters
结果类型 | 是否隐藏 |
---|---|
结果类型 IData #数据 | 是否隐藏 true |
结果类型 材料(IIngredient) | 是否隐藏 true |
结果类型 IIngredientWithAmount | 是否隐藏 true |
使用方式
Link to 使用方式
Name: add
Return Type: void
ZenScript CopyMCTag.add(items as stdlib.List<IItemStack>) as void
参数 | 类型 | 描述 |
---|---|---|
参数 items | 类型 stdlib.List<IItemStack> | 描述 No Description Provided |
Name: asIData
Return Type: IData
ZenScript Copy// MCTag.asIData() as IData
<tag:items:forge:gems>.asIData();
Name: asIIngredient
Return Type: IIngredient
ZenScript Copy// MCTag.asIIngredient() as IIngredient
<tag:items:forge:gems>.asIIngredient();
Name: asIIngredientWithAmount
Return Type: IIngredientWithAmount
ZenScript Copy// MCTag.asIIngredientWithAmount() as IIngredientWithAmount
<tag:items:forge:gems>.asIIngredientWithAmount();
Name: or
Return Type: IngredientList
ZenScript CopyMCTag.or(other as IIngredient) as IngredientList
参数 | 类型 | 描述 |
---|---|---|
参数 other | 类型 材料(IIngredient) | 描述 No Description Provided |
Name: or
Return Type: IngredientList
ZenScript CopyMCTag.or(other as MCTag<MCItemDefinition>) as IngredientList
参数 | 类型 | 描述 |
---|---|---|
参数 other | 类型 MCTag<MCItemDefinition> | 描述 No Description Provided |