aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/thatgravyboat/skyblockhud/handlers/HeldItemHandler.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/com/thatgravyboat/skyblockhud/handlers/HeldItemHandler.java')
-rw-r--r--src/main/java/com/thatgravyboat/skyblockhud/handlers/HeldItemHandler.java14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/main/java/com/thatgravyboat/skyblockhud/handlers/HeldItemHandler.java b/src/main/java/com/thatgravyboat/skyblockhud/handlers/HeldItemHandler.java
index 1a401f2..da27590 100644
--- a/src/main/java/com/thatgravyboat/skyblockhud/handlers/HeldItemHandler.java
+++ b/src/main/java/com/thatgravyboat/skyblockhud/handlers/HeldItemHandler.java
@@ -12,23 +12,23 @@ 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);
- drawString(mc.fontRendererObj, "Fuel - " + Math.round(((double)current/(double)max)*100) + "%", 100, 100, 0xffffff);
+ public void drawFuelBar(Minecraft mc, int current, int max) {
+ 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) + "%", 100, 100, 0xffffff);
}
- public boolean isDrill(ItemStack stack){
+ 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");
}
- public String getDrillFuel(ItemStack stack){
+ public String getDrillFuel(ItemStack stack) {
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));
- if (line.trim().startsWith("Fuel:")){
+ if (line.trim().startsWith("Fuel:")) {
return line;
}
}
@@ -36,7 +36,7 @@ public class HeldItemHandler extends Gui {
}
@SubscribeEvent
- public void drawOverlay(RenderGameOverlayEvent.Post event){
+ public void drawOverlay(RenderGameOverlayEvent.Post event) {
/*
if (Utils.overlayShouldRender(event.type, SkyblockHud.hasSkyblockScoreboard())){
Minecraft mc = Minecraft.getMinecraft();