aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/Danker/utils/RenderUtils.java
diff options
context:
space:
mode:
authorbowser0000 <bowser0000@gmail.com>2022-08-12 19:37:53 -0400
committerbowser0000 <bowser0000@gmail.com>2022-08-12 19:37:53 -0400
commit189526f2d6d96cce6086af6947b4e752c13944e2 (patch)
tree29a3ed9a89e0a7791c0a8210666e528e55e050fd /src/main/java/me/Danker/utils/RenderUtils.java
parent8e4810bdaff443866f7c5a1346ba919bc8083899 (diff)
downloadSkyblockMod-189526f2d6d96cce6086af6947b4e752c13944e2.tar.gz
SkyblockMod-189526f2d6d96cce6086af6947b4e752c13944e2.tar.bz2
SkyblockMod-189526f2d6d96cce6086af6947b4e752c13944e2.zip
Display trophy fish completion behind chat and tab
Works for SBA custom tab and ST custom chat as well
Diffstat (limited to 'src/main/java/me/Danker/utils/RenderUtils.java')
-rw-r--r--src/main/java/me/Danker/utils/RenderUtils.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/main/java/me/Danker/utils/RenderUtils.java b/src/main/java/me/Danker/utils/RenderUtils.java
index f334b7a..e1ee261 100644
--- a/src/main/java/me/Danker/utils/RenderUtils.java
+++ b/src/main/java/me/Danker/utils/RenderUtils.java
@@ -388,12 +388,16 @@ public class RenderUtils {
}
public static void renderItem(ItemStack stack, int x, int y, double scale) {
+ renderItem(stack, x, y, 0, scale);
+ }
+
+ public static void renderItem(ItemStack stack, int x, int y, int z, double scale) {
GlStateManager.enableRescaleNormal();
RenderHelper.enableGUIStandardItemLighting();
GlStateManager.enableDepth();
GlStateManager.pushMatrix();
- GlStateManager.translate(x, y, 0);
+ GlStateManager.translate(x, y, z);
GlStateManager.scale(scale, scale, scale);
//Minecraft.getMinecraft().getRenderItem().renderItemIntoGUI(stack, 0, 0);
Minecraft.getMinecraft().getRenderItem().renderItemAndEffectIntoGUI(stack, 0, 0);