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.
Enable() has to be called anytime before FejdStartup.Awake, meaning in your plugin's Awake or Start.
Inherited Members
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 |