diff options
Diffstat (limited to 'src/main/java/io/polyfrost/oneconfig/test/TestHud.java')
-rw-r--r-- | src/main/java/io/polyfrost/oneconfig/test/TestHud.java | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/src/main/java/io/polyfrost/oneconfig/test/TestHud.java b/src/main/java/io/polyfrost/oneconfig/test/TestHud.java deleted file mode 100644 index 9008e3d..0000000 --- a/src/main/java/io/polyfrost/oneconfig/test/TestHud.java +++ /dev/null @@ -1,23 +0,0 @@ -package io.polyfrost.oneconfig.test; - -import io.polyfrost.oneconfig.hud.interfaces.BasicHud; -import io.polyfrost.oneconfig.lwjgl.RenderManager; -import net.minecraft.client.Minecraft; - -public class TestHud extends BasicHud { - - @Override - public int getWidth(float scale) { - return (int) (Minecraft.getMinecraft().fontRendererObj.getStringWidth("FPS: " + Minecraft.getDebugFPS()) * scale); - } - - @Override - public int getHeight(float scale) { - return (int) (9 * scale); - } - - @Override - public void draw(int x, int y, float scale) { - RenderManager.drawScaledString("FPS: " + Minecraft.getDebugFPS(), x, y, 0xffffff, false, scale); - } -} |