Posted August 20, 201510 yr I want to draw the potion amplifier of the current potion effect similar to how vanilla Minecraft does for ItemStacks in your inventory. Currently I am using a fixed x and y offset of 12. Is this the right way to do it? if (potionEffect.getAmplifier() > 0) gui.drawString(minecraft.fontRendererObj, Integer.toString(potionEffect.getAmplifier() + 1), xPos + 12, yPos + 12, 0xFFFFFF); Maker of the Craft++ mod.
August 20, 201510 yr In 1.7.10 and 1.8, the stack size is drawn in RenderItem#renderItemOverlayIntoGUI . Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.
August 20, 201510 yr Author In 1.7.10 and 1.8, the stack size is drawn in RenderItem#renderItemOverlayIntoGUI . Thanks, that did the trick! Maker of the Craft++ mod.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.