Expansion for KnownTag<ItemDefinition>

Link to expansion-for-knowntagitemdefinition

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.

Result Type암묵적
Result Type
IData
암묵적
true
Result Type
IIngredient
암묵적
true
Result Type
IIngredientWithAmount
암묵적
true

Name: add

ZenScript
Copy
KnownTag.add(items as stdlib.List<IItemStack>)
ParameterType
Parameter
items
Type
stdlib.List<IItemStack>

Name: asIData

Return Type: IData

ZenScript
Copy
// KnownTag.asIData() as IData

myKnownTag.asIData();

Name: asIIngredient

Return Type: IIngredient

ZenScript
Copy
// KnownTag.asIIngredient() as IIngredient

myKnownTag.asIIngredient();

Link to asIIngredientWithAmount

Name: asIIngredientWithAmount

Return Type: IIngredientWithAmount

ZenScript
Copy
// KnownTag.asIIngredientWithAmount() as IIngredientWithAmount

myKnownTag.asIIngredientWithAmount();