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
object
CustomEntity
CustomRecipe
Inherited Members
CustomEntity.SourceMod
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetType()
object.MemberwiseClone()
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.

Extension Methods

PrefabExtension.FixReferences(object)
  • Edit this page
  • View Source
☀
☾
In this article
Back to top
Generated by DocFX
☀
☾