package at.hannibal2.skyhanni.features.combat import at.hannibal2.skyhanni.SkyHanniMod import at.hannibal2.skyhanni.data.model.SkyblockStat import at.hannibal2.skyhanni.events.GuiRenderEvent import at.hannibal2.skyhanni.skyhannimodule.SkyHanniModule import at.hannibal2.skyhanni.utils.LorenzUtils import at.hannibal2.skyhanni.utils.RenderUtils.renderString import net.minecraftforge.fml.common.eventhandler.SubscribeEvent @SkyHanniModule object FerocityDisplay { private val config get() = SkyHanniMod.feature.combat.ferocityDisplay @SubscribeEvent fun onRenderOverlay(event: GuiRenderEvent) { if (!isEnabled()) return SkyblockStat.FEROCITY.displayValue?.let { config.position.renderString(it, posLabel = "Ferocity Display") } } fun isEnabled() = LorenzUtils.inSkyBlock && config.enabled }