It might be required for you to import the package if you encounter any issues (like casting an Array), so better be safe than sorry and add the import at the very top of the file.

ZenScript
Copy
import crafttweaker.api.recipe.type.Recipe;

Link to canCraftInDimensions

Name: canCraftInDimensions

Return Type: boolean

ZenScript
Copy
Recipe.canCraftInDimensions(var1 as int, var2 as int) as boolean
参数类型描述
参数
var1
类型
int
描述
No Description Provided
参数
var2
类型
int
描述
No Description Provided

Name: getGroup

Return Type: string

ZenScript
Copy
// Recipe.getGroup() as string

myRecipe.getGroup();

Name: getId

Return Type: ResourceLocation

ZenScript
Copy
// Recipe.getId() as ResourceLocation

myRecipe.getId();

Name: getIngredients

Return Type: stdlib.List<IIngredient>

ZenScript
Copy
// Recipe.getIngredients() as stdlib.List<IIngredient>

myRecipe.getIngredients();

Name: getResultItem

Return Type: IItemStack

ZenScript
Copy
// Recipe.getResultItem() as IItemStack

myRecipe.getResultItem();

Name: getToastSymbol

Return Type: ItemStack

ZenScript
Copy
// Recipe.getToastSymbol() as ItemStack

myRecipe.getToastSymbol();

Name: isIncomplete

Return Type: boolean

ZenScript
Copy
// Recipe.isIncomplete() as boolean

myRecipe.isIncomplete();

Name: isSpecial

Return Type: boolean

ZenScript
Copy
// Recipe.isSpecial() as boolean

myRecipe.isSpecial();
名称类型可获得可设置描述
名称
group
类型
string
可获得
true
可设置
false
描述
No Description Provided
名称
id
类型
资源位置
可获得
true
可设置
false
描述
No Description Provided
名称
ingredients
类型
stdlib.List<IIngredient>
可获得
true
可设置
false
描述
No Description Provided
名称
isIncomplete
类型
布尔值
可获得
true
可设置
false
描述
No Description Provided
名称
isSpecial
类型
布尔值
可获得
true
可设置
false
描述
No Description Provided
名称
resultItem
类型
IItemStack
可获得
true
可设置
false
描述
No Description Provided
名称
toastSymbol
类型
物品应用
可获得
true
可设置
false
描述
No Description Provided