SizedIngredient
Importing the class
If you need to reference this type directly, like when casting an Array, or as a parameter, you will need to import it. Simply add the import at the top of the file.
Members
implicit as IIngredientWithAmount
Return Type:
IIngredientWithAmount
Getter
Return Type:
int
Getter
Return Type:
IIngredient
Getter
Return Type:
IItemStack[]
static of(tag as KnownTag<Item>, count as int) as SizedIngredient
Parameters:
tag: KnownTag<ItemDefinition>
Type: KnownTag<ItemDefinition>
count: int
Type: int
Return Type:
SizedIngredient
static of(item as ItemLike, count as int) as SizedIngredient
Return Type:
SizedIngredient
static of(ingredient as IIngredient, count as int) as SizedIngredient
Parameters:
ingredient: IIngredient
Type: IIngredient
count: int
Type: int
Return Type:
SizedIngredient
test(stack as IItemStack) as bool
Parameters:
stack: IItemStack
Type: IItemStack
Return Type:
bool