From a0ff501947a84b268e099524a06b56a6b900dad2 Mon Sep 17 00:00:00 2001 From: DeDiamondPro <67508414+DeDiamondPro@users.noreply.github.com> Date: Tue, 3 May 2022 18:25:32 +0200 Subject: move to cc.polyfrost --- .../java/io/polyfrost/oneconfig/test/TestHud.java | 23 ---------------------- 1 file changed, 23 deletions(-) delete mode 100644 src/main/java/io/polyfrost/oneconfig/test/TestHud.java (limited to 'src/main/java/io/polyfrost/oneconfig/test/TestHud.java') 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); - } -} -- cgit