aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/thatgravyboat/skyblockhud/Utils.java
diff options
context:
space:
mode:
authorThatGravyBoat <ThatGravyBoat@users.noreply.github.com>2021-07-11 21:28:26 +0000
committerGitHub Action <actions@github.com>2021-07-11 21:28:26 +0000
commite616a0910bdf7f4540f2814a35c1b7eefa9cd59d (patch)
treee1ec5d961ef3a0b2337f9794176b3fac3ae299d2 /src/main/java/com/thatgravyboat/skyblockhud/Utils.java
parent3a1917c8a0af4157cc1e6d5f3986e89377f245d8 (diff)
downloadSkyblockHud-Death-Defied-e616a0910bdf7f4540f2814a35c1b7eefa9cd59d.tar.gz
SkyblockHud-Death-Defied-e616a0910bdf7f4540f2814a35c1b7eefa9cd59d.tar.bz2
SkyblockHud-Death-Defied-e616a0910bdf7f4540f2814a35c1b7eefa9cd59d.zip
Prettified Code!
Diffstat (limited to 'src/main/java/com/thatgravyboat/skyblockhud/Utils.java')
-rw-r--r--src/main/java/com/thatgravyboat/skyblockhud/Utils.java13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/main/java/com/thatgravyboat/skyblockhud/Utils.java b/src/main/java/com/thatgravyboat/skyblockhud/Utils.java
index 3d176c9..5455c0a 100644
--- a/src/main/java/com/thatgravyboat/skyblockhud/Utils.java
+++ b/src/main/java/com/thatgravyboat/skyblockhud/Utils.java
@@ -1,5 +1,9 @@
package com.thatgravyboat.skyblockhud;
+import java.nio.FloatBuffer;
+import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.LinkedList;
import net.minecraft.client.Minecraft;
import net.minecraft.client.entity.EntityPlayerSP;
import net.minecraft.client.gui.FontRenderer;
@@ -18,11 +22,6 @@ import org.lwjgl.BufferUtils;
import org.lwjgl.opengl.GL11;
import org.lwjgl.opengl.GL14;
-import java.nio.FloatBuffer;
-import java.util.ArrayList;
-import java.util.Arrays;
-import java.util.LinkedList;
-
public class Utils {
private static LinkedList<Integer> guiScales = new LinkedList<>();
@@ -62,14 +61,14 @@ public class Utils {
return (int) (g + f * (h - g));
}
- public static NBTTagCompound getSkyBlockTag(ItemStack stack){
+ public static NBTTagCompound getSkyBlockTag(ItemStack stack) {
if (stack == null) return null;
if (!stack.hasTagCompound()) return null;
if (!stack.getTagCompound().hasKey("ExtraAttributes")) return null;
return stack.getTagCompound().getCompoundTag("ExtraAttributes");
}
- public static boolean isDrill(ItemStack stack){
+ public static boolean isDrill(ItemStack stack) {
NBTTagCompound tag = getSkyBlockTag(stack);
return tag != null && tag.hasKey("drill_fuel");
}