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
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Jotunn.Entities
Assembly: Jotunn.dll
Syntax
public class CustomRecipe : CustomEntity
Constructors
| Improve this Doc View SourceCustomRecipe(RecipeConfig)
Declaration
public CustomRecipe(RecipeConfig recipeConfig)
Parameters
Type | Name | Description |
---|---|---|
RecipeConfig | recipeConfig | The RecipeConfig for a custom recipe. |
CustomRecipe(Recipe, Boolean, Boolean)
Declaration
public CustomRecipe(Recipe recipe, bool fixReference, bool fixRequirementReferences)
Parameters
Type | Name | Description |
---|---|---|
Recipe | recipe | The |
System.Boolean | fixReference | If true references for Mock<T> objects get resolved at runtime by Jötunn. |
System.Boolean | fixRequirementReferences | If true references for MockRequirements get resolved at runtime by Jötunn. |
Properties
| Improve this Doc View SourceFixReference
Indicator if references from Mock<T>s will be replaced at runtime.
Declaration
public bool FixReference { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
FixRequirementReferences
Indicator if references from MockRequirements will be replaced at runtime.
Declaration
public bool FixRequirementReferences { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Recipe
The for this custom recipe.
Declaration
public Recipe Recipe { get; }
Property Value
Type | Description |
---|---|
Recipe |
Methods
| Improve this Doc View SourceEquals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj |
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
System.Object.Equals(System.Object)
|
Improve this Doc
View Source
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 |
Overrides
System.Object.GetHashCode()
|
Improve this Doc
View Source
IsValid()
Checks if a custom status effect is valid (i.e. has a ).
Declaration
public bool IsValid()
Returns
Type | Description |
---|---|
System.Boolean | true if all criteria is met |
ToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String |
Overrides
System.Object.ToString()