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
Copy
import 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

Result TypeIs Implicit
Result Type
Recipe<RecipeInput>
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<RecipeInput>
Has Getter
true
Has Setter
false
Description
Gets the recipe held by this holder.