aboutsummaryrefslogtreecommitdiff
path: root/src/compat/configured/java/BaseConfigNode.kt
blob: 7330990005eddf82e26c924efcc5e4861a6d6977 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
package moe.nea.firmament.compat.configured

import com.mrcrayfish.configured.api.IConfigEntry
import com.mrcrayfish.configured.api.IConfigValue
import net.minecraft.text.Text
import moe.nea.firmament.gui.config.AllConfigsGui

object BaseConfigNode : IConfigEntry {
    override fun getChildren(): List<IConfigEntry> {
        return AllConfigsGui.allConfigs.map {
            ConfigNode(it)
        }
    }

    override fun isRoot(): Boolean {
        return true
    }

    override fun isLeaf(): Boolean {
        return false
    }

    override fun getValue(): IConfigValue<*>? {
        return null
    }

    override fun getEntryName(): String {
        return "Firmament"
    }

    override fun getTooltip(): Text? {
        return null
    }

    override fun getTranslationKey(): String? {
        return null
    }

}