Guest User

Model Class Code

a guest
Sep 28th, 2014
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.52 KB | None | 0 0
  1. // Date: 9/27/2014 9:49:43 AM
  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.  
  17. import com.sun.xml.internal.stream.Entity;
  18.  
  19. public class ModelRifleBolt extends ModelBase
  20. {
  21. //fields
  22. ModelRenderer Shape1;
  23. ModelRenderer Shape2;
  24. ModelRenderer Shape3;
  25. ModelRenderer Shape4;
  26. ModelRenderer Shape5;
  27. ModelRenderer Shape6;
  28. ModelRenderer Shape7;
  29. ModelRenderer Shape8;
  30. ModelRenderer Shape9;
  31. ModelRenderer Shape10;
  32. ModelRenderer Shape11;
  33. ModelRenderer Shape12;
  34. public ModelRifleBolt()
  35. {
  36. textureWidth = 64;
  37. textureHeight = 32;
  38.  
  39. Shape1 = new ModelRenderer(this, 0, 0);
  40. Shape1.addBox(0F, 0F, 0F, 1, 1, 1);
  41. Shape1.setRotationPoint(0F, 22F, 2F);
  42. Shape1.setTextureSize(64, 32);
  43. Shape1.mirror = true;
  44. setRotation(Shape1, 0F, 0F, 0F);
  45. Shape12 = new ModelRenderer(this, 0, 0);
  46. Shape12.addBox(0F, 0F, 0F, 1, 1, 1);
  47. Shape12.setRotationPoint(0F, 23F, 1F);
  48. Shape12.setTextureSize(64, 32);
  49. Shape12.mirror = true;
  50. setRotation(Shape1, 0F, 0F, 0F);
  51. Shape2 = new ModelRenderer(this, 0, 0);
  52. Shape2.addBox(0F, 0F, 0F, 1, 1, 1);
  53. Shape2.setRotationPoint(0F, 23F, -1F);
  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, 1);
  59. Shape3.setRotationPoint(1F, 22F, 1F);
  60. Shape3.setTextureSize(64, 32);
  61. Shape3.mirror = true;
  62. setRotation(Shape3, 0F, 0F, 0F);
  63. Shape4 = new ModelRenderer(this, 0, 0);
  64. Shape4.addBox(0F, 0F, 0F, 1, 1, 1);
  65. Shape4.setRotationPoint(-1F, 22F, 1F);
  66. Shape4.setTextureSize(64, 32);
  67. Shape4.mirror = true;
  68. setRotation(Shape4, 0F, 0F, 0F);
  69. Shape5 = new ModelRenderer(this, 0, 0);
  70. Shape5.addBox(0F, 0F, 0F, 1, 1, 1);
  71. Shape5.setRotationPoint(1F, 22F, 0F);
  72. Shape5.setTextureSize(64, 32);
  73. Shape5.mirror = true;
  74. setRotation(Shape5, 0F, 0F, 0F);
  75. Shape6 = new ModelRenderer(this, 0, 0);
  76. Shape6.addBox(0F, 0F, 0F, 1, 1, 1);
  77. Shape6.setRotationPoint(1F, 22F, -1F);
  78. Shape6.setTextureSize(64, 32);
  79. Shape6.mirror = true;
  80. setRotation(Shape6, 0F, 0F, 0F);
  81. Shape7 = new ModelRenderer(this, 0, 0);
  82. Shape7.addBox(0F, 0F, 0F, 1, 1, 1);
  83. Shape7.setRotationPoint(-1F, 22F, 0F);
  84. Shape7.setTextureSize(64, 32);
  85. Shape7.mirror = true;
  86. setRotation(Shape7, 0F, 0F, 0F);
  87. Shape8 = new ModelRenderer(this, 0, 0);
  88. Shape8.addBox(0F, 0F, 0F, 1, 1, 1);
  89. Shape8.setRotationPoint(-1F, 22F, -1F);
  90. Shape8.setTextureSize(64, 32);
  91. Shape8.mirror = true;
  92. setRotation(Shape8, 0F, 0F, 0F);
  93. Shape9 = new ModelRenderer(this, 0, 0);
  94. Shape9.addBox(0F, 0F, 0F, 1, 1, 1);
  95. Shape9.setRotationPoint(0F, 22F, -2F);
  96. Shape9.setTextureSize(64, 32);
  97. Shape9.mirror = true;
  98. setRotation(Shape9, 0F, 0F, 0F);
  99. Shape10 = new ModelRenderer(this, 0, 0);
  100. Shape10.addBox(0F, 0F, 0F, 1, 1, 1);
  101. Shape10.setRotationPoint(0F, 23F, 0F);
  102. Shape10.setTextureSize(64, 32);
  103. Shape10.mirror = true;
  104. setRotation(Shape10, 0F, 0F, 0F);
  105. Shape11 = new ModelRenderer(this, 0, 0);
  106. Shape11.addBox(0F, 0F, 0F, 1, 1, 3);
  107. Shape11.setRotationPoint(0F, 21F, -1F);
  108. Shape11.setTextureSize(64, 32);
  109. Shape11.mirror = true;
  110. setRotation(Shape11, 0F, 0F, 0F);
  111. }
  112.  
  113. public void render(net.minecraft.entity.Entity entity, float f, float f1, float f2, float f3, float f4, float f5)
  114. {
  115. super.render(entity, f, f1, f2, f3, f4, f5);
  116. setRotationAngles(f, f1, f2, f3, f4, f5);
  117. Shape1.render(f5);
  118. Shape1.render(f5);
  119. Shape2.render(f5);
  120. Shape3.render(f5);
  121. Shape4.render(f5);
  122. Shape5.render(f5);
  123. Shape6.render(f5);
  124. Shape7.render(f5);
  125. Shape8.render(f5);
  126. Shape9.render(f5);
  127. Shape10.render(f5);
  128. Shape11.render(f5);
  129. }
  130.  
  131. private void setRotation(ModelRenderer model, float x, float y, float z)
  132. {
  133. model.rotateAngleX = x;
  134. model.rotateAngleY = y;
  135. model.rotateAngleZ = z;
  136. }
  137.  
  138. public void setRotationAngles(float f, float f1, float f2, float f3, float f4, float f5)
  139. {
  140. super.setRotationAngles(f, f1, f2, f3, f4, f5, null);
  141. }
  142.  
  143. }
Advertisement
Add Comment
Please, Sign In to add comment