Expansion for IIngredient

Casters

Result typeIs Implicit
IIngredientWithAmounttrue

Methods

asIIngredientWithAmount

Used implicitly when a machine can accept more than one item but you only provide one.

Return Type: IIngredientWithAmount

IIngredient.asIIngredientWithAmount() as IIngredientWithAmount
<tag:items:forge:ingots>.asIIngredientWithAmount();

mul

Use this in contexts where machines accept more than one item to state that fact.

Return Type: IIngredientWithAmount

IIngredient.mul(amount as int) as IIngredientWithAmount
ParameterTypeDescription
amountintNo Description Provided

reuse

Return Type: MCIngredientTransformed<IIngredient>

IIngredient.reuse() as MCIngredientTransformed<IIngredient>
<tag:items:forge:ingots>.reuse();

transform

Use this if you already have the transformer from another ingredient

Return Type: MCIngredientTransformed<IIngredient>

IIngredient.transform(transformer as IIngredientTransformer<IIngredient>) as MCIngredientTransformed<IIngredient>
ParameterTypeDescription
transformadorIIngredientTransformer<IIngredient>No Description Provided

transformCustom

Return Type: MCIngredientTransformed<IIngredient>

IIngredient.transformCustom(uid as string, function as Function<IItemStack,IItemStack>) as MCIngredientTransformed<IIngredient>
ParameterTypeDescriptionOptionalDefaultValue
uidstringNo Description Providedfalse
functionFunction<IItemStack,IItemStack>No Description Providedtrue

transformDamage

Return Type: MCIngredientTransformed<IIngredient>

IIngredient.transformDamage(amount as int) as MCIngredientTransformed<IIngredient>
ParameterTypeDescriptionOptionalDefaultValue
amountintNo Description Providedtrue1

transformReplace

Return Type: MCIngredientTransformed<IIngredient>

IIngredient.transformReplace(replaceWith as IItemStack) as MCIngredientTransformed<IIngredient>
ParameterTypeDescription
replaceWithIItemStackNo Description Provided