ICraftingRecipe
Link to icraftingrecipe
An ICraftingRecipe is a crafting table recipe the way ZS sees it.
Diese Klasse importieren
Link to diese-klasse-importieren
It might be required to import the class to avoid errors.
import crafttweaker.recipes.ICraftingRecipe
ZenMethods/Getters
Link to zenmethodsgetters
Get Ingredients
Link to get-ingredients
Either returns an IIngredient[] or an IIngredient[][]
ZenScript Copyrec.ingredients1D
rec.ingredients2D
Get standart output
Link to get-standart-output
Returns the ouptut as IItemStack. Careful, can be null!
ZenScript Copyrec.output
Check for conditions
Link to check-for-conditions
Each of these returns a boolean
ZenScript Copyrec.hasTransformers;
rec.hasRecipeAction;
rec.hasRecipeFunction;
rec.hidden;
rec.shaped;
resourceDomain
Link to resourcedomain
Basically, the modid of the mod that added the recipe.
ZenScript Copyrec.resourceDomain;
rec.fullResourceDomain;
Ingredients
Link to ingredients
Returns the ingredients list as IIngredient[] or IIngredient[][] respectively.
ZenScript Copyrec.ingredients1D;
rec.ingredients2D;
Output
Link to output
The IItemStack output of the recipe.
ZenScript Copyrec.output;
To String
Link to to-string
ZenScript Copyrec.commandString;
rec.toCommandString();
rec.name;
rec.getName();