Files
Firmament/src/main/kotlin/moe/nea/notenoughupdates/features/NEUFeature.kt
nea ec66c82198 Move Eventhandling around.
I still want to use fabric still "array backed" events, but these here are just a bit easier to use from kotlin.
2022-09-10 03:48:03 +02:00

17 lines
374 B
Kotlin

package moe.nea.notenoughupdates.features
interface NEUFeature {
val name: String
val identifier: String
val defaultEnabled: Boolean
get() = true
var isEnabled: Boolean
get() = FeatureManager.isEnabled(identifier) ?: defaultEnabled
set(value) {
FeatureManager.setEnabled(identifier, value)
}
fun onLoad()
}