beautiful hud data
This commit is contained in:
parent
f7da34738c
commit
821e67d58f
2 changed files with 26 additions and 4 deletions
|
@ -54,8 +54,13 @@ public class AutoTotem extends Feature {
|
||||||
|
|
||||||
/// GATES END
|
/// GATES END
|
||||||
|
|
||||||
@Config("Render totem amount")
|
@Config("Render totem amount in HUD")
|
||||||
public boolean renderTots = true;
|
@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")
|
@Config("Mode")
|
||||||
@Description("The mode of AutoTotem:\n" +
|
@Description("The mode of AutoTotem:\n" +
|
||||||
|
@ -133,6 +138,14 @@ public class AutoTotem extends Feature {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onEveryTick() {
|
public void onEveryTick() {
|
||||||
|
|
||||||
|
//Hot
|
||||||
|
if(enabled && renderTotemCountModuleList && !notIngame()) {
|
||||||
|
text = this + "§7 [" + getTotemCount() + "]";
|
||||||
|
} else {
|
||||||
|
text = toString();
|
||||||
|
}
|
||||||
|
|
||||||
switch (mode) {
|
switch (mode) {
|
||||||
case Single:
|
case Single:
|
||||||
isSingle = true;
|
isSingle = true;
|
||||||
|
@ -375,7 +388,7 @@ public class AutoTotem extends Feature {
|
||||||
int fullCount = 0;
|
int fullCount = 0;
|
||||||
|
|
||||||
public void renderTotems() {
|
public void renderTotems() {
|
||||||
if(fullCount != 0 && renderTots) {
|
if(fullCount != 0 && renderTotemCountHud) {
|
||||||
ScaledResolution res = new ScaledResolution(mc);
|
ScaledResolution res = new ScaledResolution(mc);
|
||||||
int y = res.getScaledHeight() - 16 * 2 - 3 - 8;
|
int y = res.getScaledHeight() - 16 * 2 - 3 - 8;
|
||||||
int x;
|
int x;
|
||||||
|
@ -407,7 +420,7 @@ public class AutoTotem extends Feature {
|
||||||
|
|
||||||
allowRenderHUD = false;
|
allowRenderHUD = false;
|
||||||
|
|
||||||
if(renderTots)
|
if(renderTotemCountHud)
|
||||||
renderTotems();
|
renderTotems();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -24,6 +24,15 @@ public class AutoEat extends Feature {
|
||||||
return "AutoEat";
|
return "AutoEat";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onEveryTick() {
|
||||||
|
if(enabled) {
|
||||||
|
text = this + "§7 [" + (eating ? "ACTIVE" : "INACTIVE") + "]";
|
||||||
|
} else {
|
||||||
|
text = toString();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onTick() {
|
public void onTick() {
|
||||||
if (eating && !mc.player.isHandActive()) {
|
if (eating && !mc.player.isHandActive()) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue