blob: f960f17e40e999055ba591ef53a2c9f09ac6f42a (
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
|
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
}
|