Advertisement
Guest User

Untitled

a guest
Jun 28th, 2017
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.33 KB | None | 0 0
  1. import org.lwjgl.opengl.GL11;
  2.  
  3. public class MagicRender extends aq {
  4.  
  5.  
  6. public void a(Magic paramat, double paramDouble1, double paramDouble2, double paramDouble3, float paramFloat1, float paramFloat2)
  7. {
  8. GL11.glPushMatrix();
  9.  
  10. GL11.glTranslatef((float)paramDouble1, (float)paramDouble2, (float)paramDouble3);
  11. GL11.glEnable(32826);
  12. GL11.glScalef(0.5F, 0.5F, 0.5F);
  13. int i = mod_Staff.orb.a((fn)null);
  14. a("/gui/items.png");
  15. ip localip = ip.a;
  16.  
  17. float f1 = (i % 16 * 16 + 0) / 256.0F;
  18. float f2 = (i % 16 * 16 + 16) / 256.0F;
  19. float f3 = (i / 16 * 16 + 0) / 256.0F;
  20. float f4 = (i / 16 * 16 + 16) / 256.0F;
  21.  
  22. float f5 = 1.0F;
  23. float f6 = 0.5F;
  24. float f7 = 0.25F;
  25.  
  26. GL11.glRotatef(180.0F - this.b.i, 0.0F, 1.0F, 0.0F);
  27. GL11.glRotatef(-this.b.j, 1.0F, 0.0F, 0.0F);
  28. localip.b();
  29. localip.b(0.0F, 1.0F, 0.0F);
  30. localip.a(0.0F - f6, 0.0F - f7, 0.0D, f1, f4);
  31. localip.a(f5 - f6, 0.0F - f7, 0.0D, f2, f4);
  32. localip.a(f5 - f6, 1.0F - f7, 0.0D, f2, f3);
  33. localip.a(0.0F - f6, 1.0F - f7, 0.0D, f1, f3);
  34. localip.a();
  35.  
  36. GL11.glDisable(32826);
  37. GL11.glPopMatrix();
  38. }
  39. public void a(lr lr, double d, double d1, double d2,
  40. float f, float f1)
  41. {
  42. a((Magic)lr, d, d1, d2, f, f1);
  43. }
  44.  
  45.  
  46. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement