I still want to use fabric still "array backed" events, but these here are just a bit easier to use from kotlin.
17 lines
374 B
Kotlin
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()
|
|
|
|
}
|