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.

Tipo RisultatoImplicito
Tipo Risultato
IData
Implicito
Tipo Risultato
IIngredient
Implicito
Tipo Risultato
IIngredientWithAmount
Implicito

Name: add

Return Type: void

ZenScript
Copy
MCTag.add(items as stdlib.List<IItemStack>) as void
ParametroTipoDescrizione
Parametro
items
Tipo
stdlib.List<IItemStack>
Descrizione
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();

Link to asIIngredientWithAmount

Name: asIIngredientWithAmount

Return Type: IIngredientWithAmount

ZenScript
Copy
// MCTag.asIIngredientWithAmount() as IIngredientWithAmount

<tag:items:forge:gems>.asIIngredientWithAmount();

Name: or

Return Type: IngredientList

ZenScript
Copy
MCTag.or(other as IIngredient) as IngredientList
ParametroTipoDescrizione
Parametro
other
Tipo
IIngredient
Descrizione
No Description Provided

Name: or

Return Type: IngredientList

ZenScript
Copy
MCTag.or(other as MCTag<MCItemDefinition>) as IngredientList
ParametroTipoDescrizione
Parametro
other
Tipo
MCTag<MCItemDefinition>
Descrizione
No Description Provided