Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Gui_Ingame_CurrencyBox {
- public static void renderCurrencyBox(int y, ResourceLocation resourceLocation) {
- Minecraft mc = Minecraft.getMinecraft();
- FontRenderer fr = mc.fontRenderer;
- ICapabilityCaps playerCapability = mc.player.getCapability(ManagerCapabilities.CAPABILITY_CAPS,null);
- DeciGuiUtils.drawRectWithShadow2(0, y, 18 + fr.getStringWidth("" + playerCapability.getCaps()), 15, Color.black, 100);
- DeciGuiUtils.drawImage(0, y - 2, resourceLocation, 16, 16);
- DeciGuiUtils.drawTextScaled(ChatFormatting.YELLOW + "" + playerCapability.getCaps(), 17, y + 2, 1, 0);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement