Expansion for IIngredient
Link to expansion-for-iingredient
Casters
Link to casters
结果类型 | 是否隐藏 |
---|---|
结果类型 IIngredientWithAmount | 是否隐藏 true |
使用方式
Link to 使用方式
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
参数 | 类型 | 描述 |
---|---|---|
参数 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 CopyIIngredient.transform(transformer as IIngredientTransformer<IIngredient>) as MCIngredientTransformed<IIngredient>
参数 | 类型 | 描述 |
---|---|---|
参数 变压器 | 类型 IIngredientTransformer<IIngredient> | 描述 No Description Provided |
Name: transformCustom
Return Type: MCIngredientTransformed<IIngredient>
ZenScript CopyIIngredient.transformCustom(uid as string, function as Function<IItemStack,IItemStack>) as MCIngredientTransformed<IIngredient>
参数 | 类型 | 描述 | 可选 | DefaultValue |
---|---|---|---|---|
参数 uid | 类型 string | 描述 No Description Provided | 可选 false | DefaultValue |
参数 function | 类型 Function<IItemStack,IItemStack> | 描述 No Description Provided | 可选 true | DefaultValue |
Name: transformDamage
Return Type: MCIngredientTransformed<IIngredient>
ZenScript CopyIIngredient.transformDamage(amount as int) as MCIngredientTransformed<IIngredient>
参数 | 类型 | 描述 | 可选 | DefaultValue |
---|---|---|---|---|
参数 amount | 类型 int | 描述 No Description Provided | 可选 true | DefaultValue 1 |
Name: transformReplace
Return Type: MCIngredientTransformed<IIngredient>
ZenScript CopyIIngredient.transformReplace(replaceWith as IItemStack) as MCIngredientTransformed<IIngredient>
参数 | 类型 | 描述 |
---|---|---|
参数 replaceWith | 类型 IItemstack | 描述 No Description Provided |