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.
import crafttweaker.api.recipe.type.ShapelessRecipe;
Implements
ShapelessRecipe
implements the following interfaces:
CraftingRecipe
,Recipe<CraftingInput>
Members
canCraftInDimensions(var1 as int, var2 as int) as bool
// ShapelessRecipe.canCraftInDimensions(var1 as int, var2 as int) as bool;myShapelessRecipe.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.addShapeless method call.script.zs
Returns: the ingredients of this recipe as an array that can be passed into a craftingTable.addShapeless method call.
myShapelessRecipe.getIngredientArray();
Return Type:
IIngredient[]
Getter
// ShapelessRecipe.group as stringmyShapelessRecipe.group
Return Type:
string
group() as string
// ShapelessRecipe.group() as string;myShapelessRecipe.group();
Return Type:
string
Getter
myShapelessRecipe.ingredients
Return Type:
List<IIngredient>
ingredients() as List<IIngredient>
Getter
// ShapelessRecipe.isIncomplete as boolmyShapelessRecipe.isIncomplete
Return Type:
bool
isIncomplete() as bool
// ShapelessRecipe.isIncomplete() as bool;myShapelessRecipe.isIncomplete();
Return Type:
bool
Getter
// ShapelessRecipe.isSpecial as boolmyShapelessRecipe.isSpecial
Return Type:
bool
isSpecial() as bool
// ShapelessRecipe.isSpecial() as bool;myShapelessRecipe.isSpecial();
Return Type:
bool
Getter
// ShapelessRecipe.resultItem as IItemStackmyShapelessRecipe.resultItem
Return Type:
IItemStack
resultItem() as IItemStack