beautiful hud data

This commit is contained in:
Jess H 2024-05-28 03:59:56 +01:00
parent f7da34738c
commit 821e67d58f
2 changed files with 26 additions and 4 deletions

View file

@ -54,8 +54,13 @@ public class AutoTotem extends Feature {
/// GATES END
@Config("Render totem amount")
public boolean renderTots = true;
@Config("Render totem amount in HUD")
@Description("Renders the Totem Count Above the Offhand.")
public boolean renderTotemCountHud = false;
@Config("Render totem amount in ModuleList")
@Description("Renders the Totem Count in the HUD as metadata.")
public boolean renderTotemCountModuleList = true;
@Config("Mode")
@Description("The mode of AutoTotem:\n" +
@ -133,6 +138,14 @@ public class AutoTotem extends Feature {
@Override
public void onEveryTick() {
//Hot
if(enabled && renderTotemCountModuleList && !notIngame()) {
text = this + "§7 [" + getTotemCount() + "]";
} else {
text = toString();
}
switch (mode) {
case Single:
isSingle = true;
@ -375,7 +388,7 @@ public class AutoTotem extends Feature {
int fullCount = 0;
public void renderTotems() {
if(fullCount != 0 && renderTots) {
if(fullCount != 0 && renderTotemCountHud) {
ScaledResolution res = new ScaledResolution(mc);
int y = res.getScaledHeight() - 16 * 2 - 3 - 8;
int x;
@ -407,7 +420,7 @@ public class AutoTotem extends Feature {
allowRenderHUD = false;
if(renderTots)
if(renderTotemCountHud)
renderTotems();
}

View file

@ -24,6 +24,15 @@ public class AutoEat extends Feature {
return "AutoEat";
}
@Override
public void onEveryTick() {
if(enabled) {
text = this + "§7 [" + (eating ? "ACTIVE" : "INACTIVE") + "]";
} else {
text = toString();
}
}
@Override
public void onTick() {
if (eating && !mc.player.isHandActive()) {