RecipeHolderRecipeHolder
Link to recipeholderrecipeholder
Holds Recipe<C> recipe and a ResourceLocation id.
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.recipe.type.RecipeHolderRecipeHolder;
Extending Record
Link to extending-record
RecipeHolderRecipeHolder extends Record. That means all methods available in Record are also available in RecipeHolderRecipeHolder
Casters
Link to casters
Result Type | Is Implicit |
---|---|
Result Type Recipe<Container> | Is Implicit true |
Result Type ResourceLocation | Is Implicit true |
Properties
Link to properties
Name | Type | Has Getter | Has Setter | Description |
---|---|---|---|---|
Name id | Type ResourceLocation | Has Getter true | Has Setter false | Description Gets the id of this holder |
Name value | Type Recipe<Container> | Has Getter true | Has Setter false | Description Gets the recipe held by this holder. |