27 public virtual bool Autoload(ref
string name) {
43 public virtual void OnCraft(Item item, Recipe recipe) {
This class provides hooks that control all recipes in the game.
virtual bool RecipeAvailable(Recipe recipe)
Whether or not the conditions are met for the given recipe to be available for the player to use....
Mod mod
The mod which added this GlobalRecipe.
virtual void OnCraft(Item item, Recipe recipe)
Allows you to make anything happen when the player uses the given recipe. The item parameter is the i...
virtual bool Autoload(ref string name)
Allows you to automatically load a GlobalRecipe instead of using Mod.AddGlobalRecipe....
string Name
The name of this GlobaRecipe.
Mod is an abstract class that you will override. It serves as a central place from which the mod's co...
bool Autoload
Whether or not this mod will autoload content by default. Autoloading content means you do not need t...