Show / Hide Table of Contents

Class ModQuery

Utility class to query metadata about added content of any loaded mod, including non-Jötunn ones. It is disabled by default, as it unnecessary increases the loading time when not used.
Enable() has to be called anytime before FejdStartup.Awake, meaning in your plugin's Awake or Start.
Inheritance
object
ModQuery
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: Jotunn.Utils
Assembly: Jotunn.dll
Syntax
public class ModQuery

Methods

Name Description
Enable() Enables the collection of mod metadata. It is disabled by default, as it unnecessary increases the loading time when not used.
This method has to be called anytime before FejdStartup.Awake, meaning in your plugin's Awake or Start.
GetPrefab(string) Get an prefab by its name. Does not include Vanilla prefabs, see PrefabManager.GetPrefab(string) for those.
GetPrefabs() Get all prefabs that were added by mods. Does not include Vanilla prefabs.
GetPrefabs(string) Get all prefabs that were added by a specific mod

Extension Methods

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