package moe.nea.firmament.gui.config import net.minecraft.text.Text interface EnumRenderer { fun getName(option: ManagedOption, value: E): Text companion object { fun > default() = object : EnumRenderer { override fun getName(option: ManagedOption, value: E): Text { return Text.translatable(option.rawLabelText + ".choice." + value.name.lowercase()) } } } }