ShapedRecipe
Importing the class
If you need to reference this type directly, like when casting an Array, or as a parameter, you will need to import it. Simply add the import at the top of the file.
import crafttweaker.api.recipe.type.ShapedRecipe;
Implements
ShapedRecipe
implements the following interfaces:
CraftingRecipe
,Recipe<CraftingContainer>
,Recipe<Container>
Undocumented Interfaces
IShapedRecipe<CraftingContainer>
Members
canCraftInDimensions(var1 as int, var2 as int) as bool
// ShapedRecipe.canCraftInDimensions(var1 as int, var2 as int) as bool;myShapedRecipe.canCraftInDimensions(myInt, myInt);
Parameters:
var1: int
Type: int
var2: int
Type: int
Return Type:
bool
getIngredientArray() as IIngredient[][]
Gets the ingredients of this recipe as an array that can be passed into a craftingTable.addShaped method call.script.zs
Returns: the ingredients of this recipe as an array that can be passed into a craftingTable.addShaped method call.
myShapedRecipe.getIngredientArray();
Return Type:
IIngredient[][]
Getter
// ShapedRecipe.group as stringmyShapedRecipe.group
Return Type:
string
group() as string
// ShapedRecipe.group() as string;myShapedRecipe.group();
Return Type:
string
Getter
// ShapedRecipe.height as intmyShapedRecipe.height
Return Type:
int
height() as int
// ShapedRecipe.height() as int;myShapedRecipe.height();
Return Type:
int
Getter
myShapedRecipe.ingredients
Return Type:
List<IIngredient>
ingredients() as List<IIngredient>
Getter
// ShapedRecipe.isIncomplete as boolmyShapedRecipe.isIncomplete
Return Type:
bool
isIncomplete() as bool
// ShapedRecipe.isIncomplete() as bool;myShapedRecipe.isIncomplete();
Return Type:
bool
Getter
// ShapedRecipe.isSpecial as boolmyShapedRecipe.isSpecial
Return Type:
bool
isSpecial() as bool
// ShapedRecipe.isSpecial() as bool;myShapedRecipe.isSpecial();
Return Type:
bool
Getter
// ShapedRecipe.resultItem as IItemStackmyShapedRecipe.resultItem
Return Type:
IItemStack
resultItem() as IItemStack
Getter
// ShapedRecipe.width as intmyShapedRecipe.width
Return Type:
int
width() as int
// ShapedRecipe.width() as int;myShapedRecipe.width();
Return Type:
int