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
Copy
import crafttweaker.api.recipe.type.RecipeHolder;

Extending Record

Link to extending-record

RecipeHolder extends Record. That means all methods available in Record are also available in RecipeHolder

Result TypeIs Implicit
Result Type
Recipe<Container>
Is Implicit
true
Result Type
ResourceLocation
Is Implicit
true
NameTypeHas GetterHas SetterDescription
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.