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 |
Methods
Link to methods
Name: add
Return Type: void
ZenScript CopyMCTag.add(items as stdlib.List<IItemStack>) as void
Parameter | Type | Description |
---|---|---|
Parameter items | Type stdlib.List<IItemStack> | Description 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
Parameter | Type | Description |
---|---|---|
Parameter other | Type IIngredient | Description No Description Provided |
Name: or
Return Type: IngredientList
ZenScript CopyMCTag.or(other as MCTag<MCItemDefinition>) as IngredientList
Parameter | Type | Description |
---|---|---|
Parameter other | Type MCTag<MCItemDefinition> | Description No Description Provided |