Advertisement
Guest User

Untitled

a guest
Apr 9th, 2018
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. public class Gui_Ingame_CurrencyBox {
  2.  
  3. public static void renderCurrencyBox(int y, ResourceLocation resourceLocation) {
  4.  
  5. Minecraft mc = Minecraft.getMinecraft();
  6. FontRenderer fr = mc.fontRenderer;
  7. ICapabilityCaps playerCapability = mc.player.getCapability(ManagerCapabilities.CAPABILITY_CAPS,null);
  8.  
  9. DeciGuiUtils.drawRectWithShadow2(0, y, 18 + fr.getStringWidth("" + playerCapability.getCaps()), 15, Color.black, 100);
  10. DeciGuiUtils.drawImage(0, y - 2, resourceLocation, 16, 16);
  11. DeciGuiUtils.drawTextScaled(ChatFormatting.YELLOW + "" + playerCapability.getCaps(), 17, y + 2, 1, 0);
  12.  
  13. }
  14.  
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement