Importing the class

Link to importing-the-class

It might be required for you to import the package if you encounter any issues (like casting an Array), so better be safe than sorry and add the import at the very top of the file.

ZenScript
Copy
import crafttweaker.neoforge.api.item.SizedIngredient;

Name: of

Return Type: SizedIngredient

ZenScript
Copy
SizedIngredient.of(ingredient as IIngredient, count as int) as SizedIngredient
ParameterType
Parameter
ingredient
Type
IIngredient
Parameter
count
Type
int

Name: of

Return Type: SizedIngredient

ZenScript
Copy
SizedIngredient.of(item as ItemLike, count as int) as SizedIngredient
ParameterType
Parameter
item
Type
ItemLike
Parameter
count
Type
int

Name: of

Return Type: SizedIngredient

ZenScript
Copy
SizedIngredient.of(tag as KnownTag<ItemDefinition>, count as int) as SizedIngredient
ParameterType
Parameter
tag
Type
KnownTag<ItemDefinition>
Parameter
count
Type
int
Result TypeIs Implicit
Result Type
IIngredientWithAmount
Is Implicit
true

Name: test

Return Type: boolean

ZenScript
Copy
SizedIngredient.test(stack as IItemStack) as boolean
ParameterType
Parameter
stack
Type
IItemStack
NameTypeHas GetterHas Setter
Name
count
Type
int
Has Getter
true
Has Setter
false
Name
ingredient
Type
IIngredient
Has Getter
true
Has Setter
false
Name
items
Type
IItemStack[]
Has Getter
true
Has Setter
false