Recipe
Importing the class
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.
import crafttweaker.api.recipe.type.Recipe;
Methods
Return Type: boolean
Recipe.canCraftInDimensions(var1 as int, var2 as int) as boolean
Parameter | Type | Description |
---|---|---|
Parameter var1 | Type int | Description No Description Provided |
Parameter var2 | Type int | Description No Description Provided |
Return Type: string
// Recipe.getGroup() as string
myRecipe.getGroup();
Return Type: ResourceLocation
// Recipe.getId() as ResourceLocation
myRecipe.getId();
Return Type: stdlib.List<IIngredient>
// Recipe.getIngredients() as stdlib.List<IIngredient>
myRecipe.getIngredients();
Return Type: IItemStack
// Recipe.getResultItem() as IItemStack
myRecipe.getResultItem();
Return Type: ItemStack
// Recipe.getToastSymbol() as ItemStack
myRecipe.getToastSymbol();
Return Type: boolean
// Recipe.isIncomplete() as boolean
myRecipe.isIncomplete();
Return Type: boolean
// Recipe.isSpecial() as boolean
myRecipe.isSpecial();
Properties
Name | Type | Has Getter | Has Setter | Description |
---|---|---|---|---|
Name group | Type string | Has Getter true | Has Setter false | Description No Description Provided |
Name id | Type ResourceLocation | Has Getter true | Has Setter false | Description No Description Provided |
Name ingredients | Type stdlib.List<IIngredient> | Has Getter true | Has Setter false | Description No Description Provided |
Name isIncomplete | Type boolean | Has Getter true | Has Setter false | Description No Description Provided |
Name isSpecial | Type boolean | Has Getter true | Has Setter false | Description No Description Provided |
Name resultItem | Type IItemStack | Has Getter true | Has Setter false | Description No Description Provided |
Name toastSymbol | Type ItemStack | Has Getter true | Has Setter false | Description No Description Provided |