From aff1167701b8ce672576b49d4fa05de88662b26e Mon Sep 17 00:00:00 2001 From: ThisIsALegitUsername Date: Thu, 2 Feb 2023 16:12:34 +0000 Subject: [PATCH] port fps --- .../java/dev/resent/module/impl/hud/FPS.java | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) diff --git a/src/main/java/dev/resent/module/impl/hud/FPS.java b/src/main/java/dev/resent/module/impl/hud/FPS.java index 70805d10..f56f1846 100644 --- a/src/main/java/dev/resent/module/impl/hud/FPS.java +++ b/src/main/java/dev/resent/module/impl/hud/FPS.java @@ -1,25 +1,16 @@ package dev.resent.module.impl.hud; +import dev.resent.annotation.RenderMod; import dev.resent.module.Theme; import dev.resent.module.base.Category; import dev.resent.module.base.RenderModule; import net.minecraft.client.Minecraft; +@RenderMod(name = "FPS", category = Category.HUD, x = 4, y = 38) public class FPS extends RenderModule { - public Minecraft mc = Minecraft.getMinecraft(); - - public FPS() { - super("FPS", Category.HUD, 4, 14, true); - } - - public int getWidth() { - return mc.fontRendererObj.getStringWidth(getText()) + 4; - } - - public int getHeight() { - return mc.fontRendererObj.FONT_HEIGHT + 4; - } + public int getWidth() { return mc.fontRendererObj.getStringWidth(getText()) + 4; } + public int getHeight() { return mc.fontRendererObj.FONT_HEIGHT + 4; } public String getText(){ return "[FPS: " + Minecraft.debugFPS + "]";