RecipeHolder
Link to recipeholder
Holds Recipe<T> 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.RecipeHolder;
Extending Record
Link to extending-record
RecipeHolder extends Record. That means all methods available in Record are also available in RecipeHolder
Casters
Link to casters
Result Type | Is Implicit |
---|---|
Result Type Recipe<RecipeInput> | 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<RecipeInput> | Has Getter true | Has Setter false | Description Gets the recipe held by this holder. |