Expansion for IIngredient
Link to expansion-for-iingredient
Casters
Link to casters
반환 자료형 | 암묵적 |
---|---|
반환 자료형 IIngredientWithAmount | 암묵적 true |
Methods
Link to methods
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 CopyIIngredient.mul(amount as int) as IIngredientWithAmount
Parameter | Type | Description |
---|---|---|
Parameter amount | Type int | Description 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 CopyIIngredient.transform(transformer as IIngredientTransformer<IIngredient>) as MCIngredientTransformed<IIngredient>
Parameter | Type | Description |
---|---|---|
Parameter transformer | Type IIngredientTransformer<IIngredient> | Description No Description Provided |
Name: transformCustom
Return Type: MCIngredientTransformed<IIngredient>
ZenScript CopyIIngredient.transformCustom(uid as string, function as Function<IItemStack,IItemStack>) as MCIngredientTransformed<IIngredient>
Parameter | Type | Description | Optional | DefaultValue |
---|---|---|---|---|
Parameter uid | Type string | Description No Description Provided | Optional false | DefaultValue |
Parameter function | Type Function<IItemStack,IItemStack> | Description No Description Provided | Optional true | DefaultValue |
Name: transformDamage
Return Type: MCIngredientTransformed<IIngredient>
ZenScript CopyIIngredient.transformDamage(amount as int) as MCIngredientTransformed<IIngredient>
Parameter | Type | Description | Optional | DefaultValue |
---|---|---|---|---|
Parameter amount | Type int | Description No Description Provided | Optional true | DefaultValue 1 |
Name: transformReplace
Return Type: MCIngredientTransformed<IIngredient>
ZenScript CopyIIngredient.transformReplace(replaceWith as IItemStack) as MCIngredientTransformed<IIngredient>
Parameter | Type | Description |
---|---|---|
Parameter replaceWith | Type IItemStack | Description No Description Provided |