Removed ping & serverinfo
This commit is contained in:
parent
3760fb2da5
commit
63cc47d7ed
|
@ -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());
|
||||
|
|
|
@ -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());
|
||||
}
|
||||
}
|
|
@ -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]";
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user