Show / Hide Table of Contents

Class CustomItemConversion

Main interface for adding custom item conversions to the game.
Supports and combines conversions for the cooking station, fermenter and smelter.
All custom item conversions have to be wrapped inside this class to add it to Jötunns ItemManager.
Inheritance
System.Object
CustomEntity
CustomItemConversion
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 CustomItemConversion : CustomEntity

Constructors

| Improve this Doc View Source

CustomItemConversion(ConversionConfig)

Create a custom item conversion. Depending on the config class this custom conversion represents one of the following item conversions:
Declaration
public CustomItemConversion(ConversionConfig config)
Parameters
Type Name Description
ConversionConfig config The item conversion config

Properties

| Improve this Doc View Source

Config

Config of the item conversion. Depends on the Type of the conversion.
Declaration
public ConversionConfig Config { get; }
Property Value
Type Description
ConversionConfig
| Improve this Doc View Source

Type

Type of the item conversion. Defines to which station the conversion is added.
Declaration
public CustomItemConversion.ConversionType Type { get; }
Property Value
Type Description
CustomItemConversion.ConversionType

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 item conversion is valid.
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
☀
☾