ShapelessRecipe

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.ShapelessRecipe;

Implements

ShapelessRecipe implements the following interfaces:

CraftingRecipe,Recipe<CraftingContainer>

Members

canCraftInDimensions(var1 as int, var2 as int) as bool
script.zs
// ShapelessRecipe.canCraftInDimensions(var1 as int, var2 as int) as bool;
myShapelessRecipe.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.addShapeless method call.

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

script.zs
// ShapelessRecipe.getIngredientArray() as IIngredient[];
myShapelessRecipe.getIngredientArray();

Return Type: IIngredient[]

Getter
script.zs
// ShapelessRecipe.group as string
myShapelessRecipe.group

Return Type: string

group() as string
script.zs
// ShapelessRecipe.group() as string;
myShapelessRecipe.group();

Return Type: string

Getter
script.zs
// ShapelessRecipe.ingredients as List<IIngredient>
myShapelessRecipe.ingredients

Return Type: List<IIngredient>

ingredients() as List<IIngredient>
script.zs
// ShapelessRecipe.ingredients() as List<IIngredient>;
myShapelessRecipe.ingredients();

Return Type: List<IIngredient>

Getter
script.zs
// ShapelessRecipe.isIncomplete as bool
myShapelessRecipe.isIncomplete

Return Type: bool

isIncomplete() as bool
script.zs
// ShapelessRecipe.isIncomplete() as bool;
myShapelessRecipe.isIncomplete();

Return Type: bool

Getter
script.zs
// ShapelessRecipe.isSpecial as bool
myShapelessRecipe.isSpecial

Return Type: bool

isSpecial() as bool
script.zs
// ShapelessRecipe.isSpecial() as bool;
myShapelessRecipe.isSpecial();

Return Type: bool

Getter
script.zs
// ShapelessRecipe.resultItem as IItemStack
myShapelessRecipe.resultItem

Return Type: IItemStack

resultItem() as IItemStack
script.zs
// ShapelessRecipe.resultItem() as IItemStack;
myShapelessRecipe.resultItem();

Return Type: IItemStack

Getter
script.zs
// ShapelessRecipe.toastSymbol as ItemStack
myShapelessRecipe.toastSymbol

Return Type: ItemStack

toastSymbol() as ItemStack
script.zs
// ShapelessRecipe.toastSymbol() as ItemStack;
myShapelessRecipe.toastSymbol();

Return Type: ItemStack