aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/com/dulkirfabric/util/JarvisIntegrationPlugin.kt
blob: 19588193b10315d81e746df6827c8b555ec5917a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
package com.dulkirfabric.util

import com.dulkirfabric.config.DulkirConfig
import moe.nea.jarvis.api.JarvisHud
import moe.nea.jarvis.api.JarvisPlugin

class JarvisIntegrationPlugin: JarvisPlugin {
    override fun getModId(): String {
        return "dulkirmod-fabric"
    }

    override fun getAllHuds(): List<JarvisHud> {
        return DulkirConfig.huds.map { it.first }
    }

    override fun onHudEditorClosed() {
        super.onHudEditorClosed()
        DulkirConfig.saveConfig()
    }
}