aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/thatgravyboat/skyblockhud/handlers/HeldItemHandler.java
diff options
context:
space:
mode:
authorTymanWasTaken <tyman@tyman.tech>2021-07-06 17:20:49 -0400
committerTymanWasTaken <tyman@tyman.tech>2021-07-06 17:20:49 -0400
commitc04ca523f9fb9f7adefa74587db61f76deeae9f0 (patch)
treef148e7bcd9105813d3fe781badcb2cf3892712fd /src/main/java/com/thatgravyboat/skyblockhud/handlers/HeldItemHandler.java
parenta8e475fa0a7977f64f072548459d592274169d66 (diff)
downloadskyblockhud-c04ca523f9fb9f7adefa74587db61f76deeae9f0.tar.gz
skyblockhud-c04ca523f9fb9f7adefa74587db61f76deeae9f0.tar.bz2
skyblockhud-c04ca523f9fb9f7adefa74587db61f76deeae9f0.zip
Increase line width
Diffstat (limited to 'src/main/java/com/thatgravyboat/skyblockhud/handlers/HeldItemHandler.java')
-rw-r--r--src/main/java/com/thatgravyboat/skyblockhud/handlers/HeldItemHandler.java24
1 files changed, 4 insertions, 20 deletions
diff --git a/src/main/java/com/thatgravyboat/skyblockhud/handlers/HeldItemHandler.java b/src/main/java/com/thatgravyboat/skyblockhud/handlers/HeldItemHandler.java
index e7686d2..fa0d21c 100644
--- a/src/main/java/com/thatgravyboat/skyblockhud/handlers/HeldItemHandler.java
+++ b/src/main/java/com/thatgravyboat/skyblockhud/handlers/HeldItemHandler.java
@@ -13,21 +13,10 @@ import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;
public class HeldItemHandler extends Gui {
public void drawFuelBar(Minecraft mc, int current, int max) {
- GenericOverlays.drawSmallBar(
- mc,
- 100,
- 100,
- (double) current / (double) max,
- 1.0d,
- 0xff00ff,
- 0xffff00,
- 0
- );
+ GenericOverlays.drawSmallBar(mc, 100, 100, (double) current / (double) max, 1.0d, 0xff00ff, 0xffff00, 0);
drawString(
mc.fontRendererObj,
- "Fuel - " +
- Math.round(((double) current / (double) max) * 100) +
- "%",
+ "Fuel - " + Math.round(((double) current / (double) max) * 100) + "%",
100,
100,
0xffffff
@@ -37,16 +26,11 @@ public class HeldItemHandler extends Gui {
public boolean isDrill(ItemStack stack) {
if (stack == null) return false;
if (!stack.getTagCompound().hasKey("ExtraAttributes")) return false;
- return stack
- .getTagCompound()
- .getCompoundTag("ExtraAttributes")
- .hasKey("drill_fuel");
+ return stack.getTagCompound().getCompoundTag("ExtraAttributes").hasKey("drill_fuel");
}
public String getDrillFuel(ItemStack stack) {
- NBTTagCompound display = stack
- .getTagCompound()
- .getCompoundTag("display");
+ NBTTagCompound display = stack.getTagCompound().getCompoundTag("display");
NBTTagList lore = display.getTagList("Lore", 8);
for (int i = lore.tagCount() - 1; i >= 0; i--) {
String line = Utils.removeColor(lore.getStringTagAt(i));