Class CustomRecipe
Main interface for adding custom recipes to the game.
All custom recipes have to be wrapped inside this class to add it to Jötunns ItemManager.
All custom recipes have to be wrapped inside this class to add it to Jötunns ItemManager.
Inherited Members
Namespace: Jotunn.Entities
Assembly: Jotunn.dll
Syntax
public class CustomRecipe : CustomEntity
Constructors
Name | Description |
---|---|
CustomRecipe(RecipeConfig) | Custom recipe from a RecipeConfig. The Recipe is created automatically by Jötunn at runtime. |
CustomRecipe(Recipe, bool, bool) | Custom recipe from a Recipe. Can fix references for Mock<T>s and MockRequirements or not. |
Properties
Name | Description |
---|---|
FixReference | Indicator if references from Mock<T>s will be replaced at runtime. |
FixRequirementReferences | Indicator if references from MockRequirements will be replaced at runtime. |
Recipe | The Recipe for this custom recipe. |
Methods
Name | Description |
---|---|
Equals(object) | Determines whether the specified object is equal to the current object. |
GetHashCode() | Serves as the default hash function. |
IsValid() | Checks if a custom status effect is valid (i.e. has a Recipe). |
ToString() | Returns a string that represents the current object. |