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.
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.
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 CustomItemConversion : CustomEntity
Constructors
| Improve this Doc View SourceCustomItemConversion(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 SourceConfig
Config of the item conversion. Depends on the Type of the conversion.
Declaration
public ConversionConfig Config { get; }
Property Value
Type | Description |
---|---|
ConversionConfig |
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 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 item conversion is valid.
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()