GlobalRecipe
This class provides hooks that control all recipes in the game.
Methods
- Autoload(System.String@)()
- Allows you to automatically load a GlobalRecipe instead of using Mod.AddGlobalRecipe. Return true to allow autoloading; by default returns the mod's autoload property. Name is initialized to the overriding class name. Use this method to either force or stop an autoload, and to change the default internal name.
- RecipeAvailable(Terraria.Recipe)()
- Whether or not the conditions are met for the given recipe to be available for the player to use. This hook can be used for conditions unrelated to items or tiles (for example, biome or time).
- OnCraft(Terraria.Item,Terraria.Recipe)()
- Allows you to make anything happen when the player uses the given recipe. The item parameter is the item the player has just crafted.