WrapperRecipe
Link to wrapperrecipe
Importing the class
Link to 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.
ZenScript Copyimport crafttweaker.api.recipes.WrapperRecipe;
Implemented Interfaces
Link to implemented-interfaces
WrapperRecipe implements the following interfaces. That means all methods defined in these interfaces are also available in WrapperRecipe
Methods
Link to methods
Name: canFit
Return Type: boolean
ZenScript CopyWrapperRecipe.canFit(width as int, height as int) as boolean
Parameter | Type | Description |
---|---|---|
Parameter width | Type int | Description No Description Provided |
Parameter height | Type int | Description No Description Provided |
Name: replace
Return Type: void
ZenScript CopyWrapperRecipe.replace(from as IIngredient, to as IIngredient) as void
Parameter | Type | Description |
---|---|---|
Parameter from | Type IIngredient | Description No Description Provided |
Parameter to | Type IIngredient | Description No Description Provided |
Properties
Link to properties
名称 | Type | Has Getter | Has Setter | Description |
---|---|---|---|---|
名称 commandString | Type string | Has Getter true | Has Setter false | Description No Description Provided |
名称 dynamic | Type boolean型 | Has Getter true | Has Setter false | Description No Description Provided |
名称 group | Type string | Has Getter true | Has Setter false | Description No Description Provided |
名称 icon | Type IItemStack | Has Getter true | Has Setter false | Description No Description Provided |
名称 id | Type MCResourceLocation | Has Getter true | Has Setter false | Description No Description Provided |
名称 ingredients | Type stdlib.List<IIngredient> | Has Getter true | Has Setter false | Description No Description Provided |
名称 isShapedCraftingRecipe | Type boolean型 | Has Getter true | Has Setter false | Description No Description Provided |
名称 isShapelessCraftingRecipe | Type boolean型 | Has Getter true | Has Setter false | Description No Description Provided |
名称 output | Type IItemStack | Has Getter true | Has Setter false | Description No Description Provided |
名称 recipeManager | Type IRecipeManager | Has Getter true | Has Setter false | Description No Description Provided |