Home Migration Guide Getting Started With Scripts Commands Examples
BracketHandlers

WrapperRecipe

Importing the class

It might be required for you to import the package if you encounter any issues (like casting an Array), so better be safe than sorry and add the import at the very top of the file.

script.zs
import crafttweaker.api.recipes.WrapperRecipe;

Implemented Interfaces

WrapperRecipe implements the following interfaces. That means all methods defined in these interfaces are also available in WrapperRecipe

Methods

Return Type: boolean

script.zs
WrapperRecipe.canFit(width as int, height as int) as boolean
ParameterTypeDescription
Parameter
width
Type
int
Description
No Description Provided
Parameter
height
Type
int
Description
No Description Provided

Return Type: void

script.zs
WrapperRecipe.replace(from as IIngredient, to as IIngredient) as void
ParameterTypeDescription
Parameter
from
Type
IIngredient
Description
No Description Provided
Parameter
to
Type
IIngredient
Description
No Description Provided

Properties

NameTypeHas GetterHas SetterDescription
Name
commandString
Type
string
Has Getter
true
Has Setter
false
Description
No Description Provided
Name
dynamic
Type
boolean
Has Getter
true
Has Setter
false
Description
No Description Provided
Name
group
Type
string
Has Getter
true
Has Setter
false
Description
No Description Provided
Name
icon
Type
IItemStack
Has Getter
true
Has Setter
false
Description
No Description Provided
Name
id
Type
MCResourceLocation
Has Getter
true
Has Setter
false
Description
No Description Provided
Name
ingredients
Type
stdlib.List<IIngredient>
Has Getter
true
Has Setter
false
Description
No Description Provided
Name
isShapedCraftingRecipe
Type
boolean
Has Getter
true
Has Setter
false
Description
No Description Provided
Name
isShapelessCraftingRecipe
Type
boolean
Has Getter
true
Has Setter
false
Description
No Description Provided
Name
output
Type
IItemStack
Has Getter
true
Has Setter
false
Description
No Description Provided
Name
recipeManager
Type
IRecipeManager
Has Getter
true
Has Setter
false
Description
No Description Provided