diff options
Diffstat (limited to 'src/main/java/com/thatgravyboat/skyblockhud/Utils.java')
-rw-r--r-- | src/main/java/com/thatgravyboat/skyblockhud/Utils.java | 13 |
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"); } |