aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/cc/polyfrost/oneconfig/test/TestHud_Test.java
blob: 9982e7da5922ad7418d04989e3811ac5a4422113 (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
26
package cc.polyfrost.oneconfig.test;

import cc.polyfrost.oneconfig.config.annotations.Switch;
import cc.polyfrost.oneconfig.hud.SingleTextHud;
import net.minecraft.client.Minecraft;

public class TestHud_Test extends SingleTextHud {
    @Switch(
            name = "Custom Option"
    )
    public boolean yes;

    public TestHud_Test(boolean enabled, int x, int y) {
        super(enabled, x, y);
    }

    @Override
    public String getDefaultTitle() {
        return "FPS";
    }

    @Override
    public String getText() {
        return Integer.toString(Minecraft.getDebugFPS());
    }
}