Class SmelterConversionConfig
Used to add new ItemConversions to the Smelter
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Jotunn.Configs
Assembly: Jotunn.dll
Syntax
public class SmelterConversionConfig : ConversionConfig
Properties
| Improve this Doc View SourceStation
The name of the station prefab this conversion is added to. Defaults to "smelter".
Declaration
public override string Station { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Overrides
Methods
| Improve this Doc View SourceFromJson(String)
Loads a single SmelterConversionConfig from a JSON string
Declaration
public static SmelterConversionConfig FromJson(string json)
Parameters
Type | Name | Description |
---|---|---|
System.String | json | JSON text |
Returns
Type | Description |
---|---|
SmelterConversionConfig | Loaded SmelterConversionConfig |
GetItemConversion()
Turns the SmelterConversionConfig into a Valheim Smelter.ItemConversion item.
Declaration
public Smelter.ItemConversion GetItemConversion()
Returns
Type | Description |
---|---|
Smelter.ItemConversion | The Valheim Smelter.ItemConversion |
ListFromJson(String)
Loads a list of SmelterConversionConfigs from a JSON string
Declaration
public static List<SmelterConversionConfig> ListFromJson(string json)
Parameters
Type | Name | Description |
---|---|---|
System.String | json | JSON text |
Returns
Type | Description |
---|---|
System.Collections.Generic.List<SmelterConversionConfig> | Loaded list of SmelterConversionConfigs |