Recipe
Link to recipe
Importare la Classe
Link to importare-la-classe
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 Copyimport crafttweaker.api.recipe.type.Recipe;
Metodi
Link to metodi
Name: canCraftInDimensions
Return Type: boolean
ZenScript CopyRecipe.canCraftInDimensions(var1 as int, var2 as int) as boolean
Parametro | Tipo | Descrizione |
---|---|---|
Parametro var1 | Tipo int | Descrizione No Description Provided |
Parametro var2 | Tipo int | Descrizione 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();
Proprietà
Link to proprietà
Nome | Tipo | Ha Getter | Ha Setter | Descrizione |
---|---|---|---|---|
Nome gruppo | Tipo string | Ha Getter sì | Ha Setter no | Descrizione No Description Provided |
Nome id | Tipo ResourceLocation | Ha Getter sì | Ha Setter no | Descrizione No Description Provided |
Nome ingredients | Tipo stdlib.List<IIngredient> | Ha Getter sì | Ha Setter no | Descrizione No Description Provided |
Nome isIncomplete | Tipo boolean | Ha Getter sì | Ha Setter no | Descrizione No Description Provided |
Nome isSpecial | Tipo boolean | Ha Getter sì | Ha Setter no | Descrizione No Description Provided |
Nome resultItem | Tipo IItemStack | Ha Getter sì | Ha Setter no | Descrizione No Description Provided |
Nome toastSymbol | Tipo ItemStack | Ha Getter sì | Ha Setter no | Descrizione No Description Provided |