aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/gui/TickComponent.kt
blob: d1879b1c2fede7731cf65441d801d6565ee86288 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
package moe.nea.firmament.gui

import io.github.notenoughupdates.moulconfig.gui.GuiComponent
import io.github.notenoughupdates.moulconfig.gui.GuiImmediateContext

class TickComponent(val onTick: Runnable) : GuiComponent() {
    override fun getWidth(): Int {
        return 0
    }

    override fun getHeight(): Int {
        return 0
    }

    override fun render(context: GuiImmediateContext) {
        onTick.run()
    }
}