Expansion for IIngredient

Link to expansion-for-iingredient

Тип результатаЯвляется неявным
Тип результата
IIngredientWithAmount
Является неявным
true

Link to asIIngredientWithAmount

Name: asIIngredientWithAmount

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

Return Type: IIngredientWithAmount

ZenScript
Copy
// IIngredient.asIIngredientWithAmount() as IIngredientWithAmount

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

Name: mul

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

Return Type: IIngredientWithAmount

ZenScript
Copy
IIngredient.mul(amount as int) as IIngredientWithAmount
ПараметрТипОписание
Параметр
amount
Тип
int
Описание
No Description Provided

Name: reuse

Return Type: MCIngredientTransformed<IIngredient>

ZenScript
Copy
// IIngredient.reuse() as MCIngredientTransformed<IIngredient>

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

Name: transform

Use this if you already have the transformer from another ingredient

Return Type: MCIngredientTransformed<IIngredient>

ZenScript
Copy
IIngredient.transform(transformer as IIngredientTransformer<IIngredient>) as MCIngredientTransformed<IIngredient>
ПараметрТипОписание
Параметр
трансформатор
Тип
IIngredientTransformer<IIngredient>
Описание
No Description Provided

Name: transformCustom

Return Type: MCIngredientTransformed<IIngredient>

ZenScript
Copy
IIngredient.transformCustom(uid as string, function as Function<IItemStack,IItemStack>) as MCIngredientTransformed<IIngredient>
ПараметрТипОписаниеOptionalDefaultValue
Параметр
uid
Тип
string
Описание
No Description Provided
Optional
false
DefaultValue
Параметр
function
Тип
Function<IItemStack,IItemStack>
Описание
No Description Provided
Optional
true
DefaultValue

Name: transformDamage

Return Type: MCIngredientTransformed<IIngredient>

ZenScript
Copy
IIngredient.transformDamage(amount as int) as MCIngredientTransformed<IIngredient>
ПараметрТипОписаниеOptionalDefaultValue
Параметр
amount
Тип
int
Описание
No Description Provided
Optional
true
DefaultValue
1

Link to transformReplace

Name: transformReplace

Return Type: MCIngredientTransformed<IIngredient>

ZenScript
Copy
IIngredient.transformReplace(replaceWith as IItemStack) as MCIngredientTransformed<IIngredient>
ПараметрТипОписание
Параметр
replaceWith
Тип
IItemStack
Описание
No Description Provided