aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/Danker/utils/RenderUtils.java
diff options
context:
space:
mode:
authorbowser0000 <bowser0000@gmail.com>2022-08-06 22:08:32 -0400
committerbowser0000 <bowser0000@gmail.com>2022-08-06 22:08:32 -0400
commit66fa83a1942b4ec79c5fa94168c04b84c60c628a (patch)
treec2abdaa3f1f249df2b94935639b0f24f8e04600c /src/main/java/me/Danker/utils/RenderUtils.java
parentabd656382da708b8cd77df1f4f0a74f2287618c5 (diff)
downloadSkyblockMod-66fa83a1942b4ec79c5fa94168c04b84c60c628a.tar.gz
SkyblockMod-66fa83a1942b4ec79c5fa94168c04b84c60c628a.tar.bz2
SkyblockMod-66fa83a1942b4ec79c5fa94168c04b84c60c628a.zip
Add trophy fish completion to display
Diffstat (limited to 'src/main/java/me/Danker/utils/RenderUtils.java')
-rw-r--r--src/main/java/me/Danker/utils/RenderUtils.java9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/main/java/me/Danker/utils/RenderUtils.java b/src/main/java/me/Danker/utils/RenderUtils.java
index c3efc90..f334b7a 100644
--- a/src/main/java/me/Danker/utils/RenderUtils.java
+++ b/src/main/java/me/Danker/utils/RenderUtils.java
@@ -387,15 +387,16 @@ public class RenderUtils {
GlStateManager.popMatrix();
}
- public static void renderItem(ItemStack item, float x, float y, float z) {
-
+ public static void renderItem(ItemStack stack, int x, int y, double scale) {
GlStateManager.enableRescaleNormal();
RenderHelper.enableGUIStandardItemLighting();
GlStateManager.enableDepth();
GlStateManager.pushMatrix();
- GlStateManager.translate(x, y, z);
- Minecraft.getMinecraft().getRenderItem().renderItemIntoGUI(item, 0, 0);
+ GlStateManager.translate(x, y, 0);
+ GlStateManager.scale(scale, scale, scale);
+ //Minecraft.getMinecraft().getRenderItem().renderItemIntoGUI(stack, 0, 0);
+ Minecraft.getMinecraft().getRenderItem().renderItemAndEffectIntoGUI(stack, 0, 0);
GlStateManager.popMatrix();
GlStateManager.disableDepth();