Archive eaglercraft-archive-resent-3-3-source (source, 1.8.8, clean)

This commit is contained in:
2026-11-27 22:14:40 -06:00
parent b5363c89d9
commit a9c9aad05a
44 changed files with 2649 additions and 0 deletions
@@ -0,0 +1,28 @@
package dev.resent.module.impl.hud;
import dev.resent.module.base.Category;
import dev.resent.module.base.RenderModule;
import dev.resent.setting.BooleanSetting;
public class Ping extends RenderModule{
public Ping(){
super("Ping Display", Category.HUD, 4, 74, true);
addSetting(tshadow);
}
public BooleanSetting tshadow = new BooleanSetting("Text Shadow", "", true);
@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);
mc.fontRendererObj.drawString("[" + ms + " ms]", this.x+2, this.y+2, -1, tshadow.getValue());
}
}