From 63cc47d7ed148cd80fbc04d7f99bbe1df073e725 Mon Sep 17 00:00:00 2001 From: ThisIsALegitUsername Date: Wed, 8 Feb 2023 21:28:38 +0000 Subject: [PATCH] Removed ping & serverinfo --- .../dev/resent/module/base/ModManager.java | 6 ---- .../java/dev/resent/module/impl/hud/Ping.java | 24 --------------- .../resent/module/impl/hud/ServerInfo.java | 29 ------------------- 3 files changed, 59 deletions(-) delete mode 100644 src/main/java/dev/resent/module/impl/hud/Ping.java delete mode 100644 src/main/java/dev/resent/module/impl/hud/ServerInfo.java diff --git a/src/main/java/dev/resent/module/base/ModManager.java b/src/main/java/dev/resent/module/base/ModManager.java index 25876acd..31735286 100644 --- a/src/main/java/dev/resent/module/base/ModManager.java +++ b/src/main/java/dev/resent/module/base/ModManager.java @@ -12,11 +12,9 @@ import dev.resent.module.impl.hud.Freelook; import dev.resent.module.impl.hud.Hitboxes; import dev.resent.module.impl.hud.Info; import dev.resent.module.impl.hud.KeyStrokes; -import dev.resent.module.impl.hud.Ping; import dev.resent.module.impl.hud.PotCounter; import dev.resent.module.impl.hud.PotionHUD; import dev.resent.module.impl.hud.ReachDisplay; -import dev.resent.module.impl.hud.ServerInfo; import dev.resent.module.impl.misc.Animations; import dev.resent.module.impl.misc.AutoGG; import dev.resent.module.impl.misc.AutoRespawn; @@ -68,8 +66,6 @@ public class ModManager { public static MinimalViewBobbing minimalViewBobbing = new MinimalViewBobbing(); public static NoSwingDelay noSwingDelay; public static PotCounter potCounter; - public static Ping ping; - public static ServerInfo serverInfo; public static Crosshair crosshair = new Crosshair(); public static HUD hud = new HUD(); public static CrystalOptimizer crystalOptimizer = new CrystalOptimizer(); @@ -81,8 +77,6 @@ public class ModManager { register(tabGui); register(crystalOptimizer); register(hud = new HUD()); - register(ping = new Ping()); - register(serverInfo = new ServerInfo()); register(freelook = new Freelook()); register(fpsb); register(keyStrokes = new KeyStrokes()); diff --git a/src/main/java/dev/resent/module/impl/hud/Ping.java b/src/main/java/dev/resent/module/impl/hud/Ping.java deleted file mode 100644 index d3ff47e5..00000000 --- a/src/main/java/dev/resent/module/impl/hud/Ping.java +++ /dev/null @@ -1,24 +0,0 @@ -package dev.resent.module.impl.hud; - -import dev.resent.annotation.RenderModule; -import dev.resent.module.base.Mod.Category; -import dev.resent.module.base.RenderMod; -import dev.resent.ui.Theme; - -@RenderModule(name = "Ping display", category = Category.HUD, x = 4, y = 50) -public class Ping extends RenderMod { - - @Override - public void draw() { - int ms = 0; - if (mc.isSingleplayer()) { - ms = -1; - } - - ms = (int) mc.getCurrentServerData().pingToServer; - - this.setHeight(mc.fontRendererObj.FONT_HEIGHT + 4); - this.setWidth(mc.fontRendererObj.getStringWidth("[" + ms + " ms]") + 4); - drawString("[" + ms + " ms]", this.x + 2, this.y + 2, Theme.getFontColor(Theme.getFontId()), Theme.getTextShadow()); - } -} diff --git a/src/main/java/dev/resent/module/impl/hud/ServerInfo.java b/src/main/java/dev/resent/module/impl/hud/ServerInfo.java deleted file mode 100644 index 4fa7b56a..00000000 --- a/src/main/java/dev/resent/module/impl/hud/ServerInfo.java +++ /dev/null @@ -1,29 +0,0 @@ -package dev.resent.module.impl.hud; - -import dev.resent.annotation.RenderModule; -import dev.resent.module.base.Mod.Category; -import dev.resent.module.base.RenderMod; -import dev.resent.ui.Theme; - -@RenderModule(name = "Server info", category = Category.HUD, x = 4, y = 110) -public class ServerInfo extends RenderMod { - - public int getWidth() { - return mc.fontRendererObj.getStringWidth(getText()) + 4; - } - - public int getHeight() { - return mc.fontRendererObj.FONT_HEIGHT + 4; - } - - public void draw() { - drawString(getText(), this.x + 2, this.y + 2, Theme.getFontColor(Theme.getFontId()), Theme.getTextShadow()); - } - - public String getText() { - if (mc.getCurrentServerData() != null) { - return "[Playing on: " + mc.getCurrentServerData().serverIP + "]"; - } - return "[Playing on: Not connected]"; - } -}