Show / Hide Table of Contents

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.
Inheritance
System.Object
CustomEntity
CustomRecipe
Inherited Members
CustomEntity.SourceMod
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 Source

CustomRecipe(RecipeConfig)

Custom recipe from a RecipeConfig.
The is created automatically by Jötunn at runtime.
Declaration
public CustomRecipe(RecipeConfig recipeConfig)
Parameters
Type Name Description
RecipeConfig recipeConfig The RecipeConfig for a custom recipe.
| Improve this Doc View Source

CustomRecipe(Recipe, Boolean, Boolean)

Custom recipe from a .
Can fix references for Mock<T>s and MockRequirements or not.
Declaration
public CustomRecipe(Recipe recipe, bool fixReference, bool fixRequirementReferences)
Parameters
Type Name Description
Recipe recipe The for a custom item.
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 Source

FixReference

Indicator if references from Mock<T>s will be replaced at runtime.
Declaration
public bool FixReference { get; set; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

FixRequirementReferences

Indicator if references from MockRequirements will be replaced at runtime.
Declaration
public bool FixRequirementReferences { get; set; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

Recipe

The for this custom recipe.
Declaration
public Recipe Recipe { get; }
Property Value
Type Description
Recipe

Methods

| Improve this Doc View Source

Equals(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
| Improve this Doc View Source

ToString()

Declaration
public override string ToString()
Returns
Type Description
System.String
Overrides
System.Object.ToString()

Extension Methods

PrefabExtension.FixReferences(Object)
  • Improve this Doc
  • View Source
☀
☾
In This Article
Back to top
Generated by DocFX
☀
☾