aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/cc/polyfrost/oneconfig/test/TestHud_Test.java
blob: ae557c70936dc82e0de8c9b8464c3e2a5d668b9a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
package cc.polyfrost.oneconfig.test;

import cc.polyfrost.oneconfig.config.annotations.Switch;
import cc.polyfrost.oneconfig.hud.SingleTextHud;

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

    public TestHud_Test() {
        super("Time", true);
    }

    @Override
    public String getText() {
        times++;
        return String.valueOf(times);
    }
}