Guest User

Untitled

a guest
Oct 5th, 2014
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.57 KB | None | 0 0
  1. // Date: 10/3/2014 4:44:36 PM
  2. // Template version 1.1
  3. // Java generated by Techne
  4. // Keep in mind that you still need to fill in some blanks
  5. // - ZeuX
  6.  
  7.  
  8.  
  9.  
  10.  
  11.  
  12. package mymod.entity.EntityRifleBolt;
  13.  
  14. import net.minecraft.client.model.ModelBase;
  15. import net.minecraft.client.model.ModelRenderer;
  16. import net.minecraft.entity.Entity;
  17.  
  18.  
  19. public class ModelRifleBolt extends ModelBase
  20. {
  21. //fields
  22. ModelRenderer Bullet_Bottom;
  23. ModelRenderer Bullet_Middle;
  24. ModelRenderer Shape1;
  25. ModelRenderer Shape2;
  26. ModelRenderer Shape3;
  27.  
  28. public ModelRifleBolt()
  29. {
  30. textureWidth = 64;
  31. textureHeight = 32;
  32.  
  33. Bullet_Bottom = new ModelRenderer(this, 0, 0);
  34. Bullet_Bottom.addBox(0F, 0F, 0F, 1, 1, 3);
  35. Bullet_Bottom.setRotationPoint(0F, 23F, 0F);
  36. Bullet_Bottom.setTextureSize(64, 32);
  37. Bullet_Bottom.mirror = true;
  38. setRotation(Bullet_Bottom, 0F, 0F, 0F);
  39. Bullet_Middle = new ModelRenderer(this, 0, 0);
  40. Bullet_Middle.addBox(0F, 0F, 0F, 1, 1, 5);
  41. Bullet_Middle.setRotationPoint(0F, 22F, -1F);
  42. Bullet_Middle.setTextureSize(64, 32);
  43. Bullet_Middle.mirror = true;
  44. setRotation(Bullet_Middle, 0F, 0F, 0F);
  45. Shape1 = new ModelRenderer(this, 0, 0);
  46. Shape1.addBox(0F, 0F, 0F, 1, 1, 3);
  47. Shape1.setRotationPoint(0F, 21F, 0F);
  48. Shape1.setTextureSize(64, 32);
  49. Shape1.mirror = true;
  50. setRotation(Shape1, 0F, 0F, 0F);
  51. Shape2 = new ModelRenderer(this, 0, 0);
  52. Shape2.addBox(0F, 0F, 0F, 1, 1, 3);
  53. Shape2.setRotationPoint(-1F, 22F, 0F);
  54. Shape2.setTextureSize(64, 32);
  55. Shape2.mirror = true;
  56. setRotation(Shape2, 0F, 0F, 0F);
  57. Shape3 = new ModelRenderer(this, 0, 0);
  58. Shape3.addBox(0F, 0F, 0F, 1, 1, 3);
  59. Shape3.setRotationPoint(1F, 22F, 0F);
  60. Shape3.setTextureSize(64, 32);
  61. Shape3.mirror = true;
  62. setRotation(Shape3, 0F, 0F, 0F);
  63. }
  64.  
  65. public void render(Entity entity, float f, float f1, float f2, float f3, float f4, float f5)
  66. {
  67. super.render(entity, f, f1, f2, f3, f4, f5);
  68. setRotationAngles(f, f1, f2, f3, f4, f5);
  69. Bullet_Bottom.render(f5);
  70. Bullet_Middle.render(f5);
  71. Shape1.render(f5);
  72. Shape2.render(f5);
  73. Shape3.render(f5);
  74. }
  75.  
  76. private void setRotation(ModelRenderer model, float x, float y, float z)
  77. {
  78. model.rotateAngleX = x;
  79. model.rotateAngleY = y;
  80. model.rotateAngleZ = z;
  81. }
  82.  
  83. public void setRotationAngles(float f, float f1, float f2, float f3, float f4, float f5)
  84. {
  85. // super.setRotationAngles(f, f1, f2, f3, f4, f5);
  86. }
  87.  
  88. }
Advertisement
Add Comment
Please, Sign In to add comment