jokekid

Untitled

Aug 24th, 2015
168
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.92 KB | None | 0 0
  1. this.mc.getTextureManager().bindTexture(TEXTUREPATH);
  2. int counter, pos;
  3. ScaledResolution resolution = new ScaledResolution(this.mc, this.mc.displayWidth, this.mc.displayHeight);
  4. int horizontalStart = resolution.getScaledWidth() / 2 - 91;
  5. int verticalStart = resolution.getScaledHeight() - 49;
  6. //int screenHeight = resolution.getScaledHeight();
  7.  
  8. for (counter = 0; counter < 10; counter++){
  9.     if(currentMana > 0){
  10.         pos = horizontalStart + counter * 8;
  11.        
  12.         if (counter * 2 + 1 < currentMana)
  13.                 {
  14.                     this.drawTexturedModalRect(pos, verticalStart, 10, 0, 9, 9);
  15.                 }
  16.         if (counter * 2 + 1 == currentMana)
  17.                 {
  18.                     this.drawTexturedModalRect(pos, verticalStart, 20, 0, 9, 9);
  19.                 }
  20.         if (counter * 2 + 1 > currentMana)
  21.                 {
  22.                     this.drawTexturedModalRect(pos, verticalStart, 0, 0, 9, 9);
  23.                 }
  24.     }
  25. }
Advertisement
Add Comment
Please, Sign In to add comment