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.

script.zs
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
script.zs
// ShapedRecipe.canCraftInDimensions(var1 as int, var2 as int) as bool;
myShapedRecipe.canCraftInDimensions(myInt, myInt);

Parameters:

var1 Type: int
var2 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.

Returns: the ingredients of this recipe as an array that can be passed into a craftingTable.addShaped method call.

script.zs
// ShapedRecipe.getIngredientArray() as IIngredient[][];
myShapedRecipe.getIngredientArray();

Return Type: IIngredient[][]

Getter
script.zs
// ShapedRecipe.group as string
myShapedRecipe.group

Return Type: string

group() as string
script.zs
// ShapedRecipe.group() as string;
myShapedRecipe.group();

Return Type: string

Getter
script.zs
// ShapedRecipe.height as int
myShapedRecipe.height

Return Type: int

height() as int
script.zs
// ShapedRecipe.height() as int;
myShapedRecipe.height();

Return Type: int

Getter
script.zs
// ShapedRecipe.ingredients as List<IIngredient>
myShapedRecipe.ingredients

Return Type: List<IIngredient>

ingredients() as List<IIngredient>
script.zs
// ShapedRecipe.ingredients() as List<IIngredient>;
myShapedRecipe.ingredients();

Return Type: List<IIngredient>

Getter
script.zs
// ShapedRecipe.isIncomplete as bool
myShapedRecipe.isIncomplete

Return Type: bool

isIncomplete() as bool
script.zs
// ShapedRecipe.isIncomplete() as bool;
myShapedRecipe.isIncomplete();

Return Type: bool

Getter
script.zs
// ShapedRecipe.isSpecial as bool
myShapedRecipe.isSpecial

Return Type: bool

isSpecial() as bool
script.zs
// ShapedRecipe.isSpecial() as bool;
myShapedRecipe.isSpecial();

Return Type: bool

Getter
script.zs
// ShapedRecipe.resultItem as IItemStack
myShapedRecipe.resultItem

Return Type: IItemStack

resultItem() as IItemStack
script.zs
// ShapedRecipe.resultItem() as IItemStack;
myShapedRecipe.resultItem();

Return Type: IItemStack

Getter
script.zs
// ShapedRecipe.toastSymbol as ItemStack
myShapedRecipe.toastSymbol

Return Type: ItemStack

toastSymbol() as ItemStack
script.zs
// ShapedRecipe.toastSymbol() as ItemStack;
myShapedRecipe.toastSymbol();

Return Type: ItemStack

Getter
script.zs
// ShapedRecipe.width as int
myShapedRecipe.width

Return Type: int

width() as int
script.zs
// ShapedRecipe.width() as int;
myShapedRecipe.width();

Return Type: int