SizedIngredient
Link to sizedingredient
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 Copyimport crafttweaker.neoforge.api.item.SizedIngredient;
Static Methods
Link to static-methods
Name: of
Return Type: SizedIngredient
ZenScript CopySizedIngredient.of(ingredient as IIngredient, count as int) as SizedIngredient
Parameter | Type |
---|---|
Parameter ingredient | Type IIngredient |
Parameter count | Type int |
Name: of
Return Type: SizedIngredient
ZenScript CopySizedIngredient.of(item as ItemLike, count as int) as SizedIngredient
Parameter | Type |
---|---|
Parameter item | Type ItemLike |
Parameter count | Type int |
Name: of
Return Type: SizedIngredient
ZenScript CopySizedIngredient.of(tag as KnownTag<ItemDefinition>, count as int) as SizedIngredient
Parameter | Type |
---|---|
Parameter tag | Type KnownTag<ItemDefinition> |
Parameter count | Type int |
Casters
Link to casters
Result Type | Is Implicit |
---|---|
Result Type IIngredientWithAmount | Is Implicit true |
Methods
Link to methods
Name: test
Return Type: boolean
ZenScript CopySizedIngredient.test(stack as IItemStack) as boolean
Parameter | Type |
---|---|
Parameter stack | Type IItemStack |
Properties
Link to properties
Name | Type | Has Getter | Has 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 |