Advertisement
Guest User

Untitled

a guest
Jan 17th, 2019
166
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.49 KB | None | 0 0
  1. package net.mod.topazmod.models;
  2.  
  3.  
  4. import net.minecraft.client.model.ModelBiped;
  5. import net.minecraft.client.model.ModelRenderer;
  6. import net.minecraft.entity.Entity;
  7.  
  8. public class ArmorTopaze extends ModelBiped
  9. {
  10. ModelRenderer body;
  11. ModelRenderer rightarm;
  12. ModelRenderer leftarm;
  13. ModelRenderer rightleg;
  14. ModelRenderer leftleg;
  15. ModelRenderer Shape1;
  16. ModelRenderer Shape2;
  17. ModelRenderer Shape2le2;
  18. ModelRenderer Shape3;
  19. ModelRenderer Shape4;
  20. ModelRenderer Shape5;
  21. ModelRenderer Shape6;
  22. ModelRenderer Shape7;
  23. ModelRenderer Shape8;
  24. ModelRenderer Shape9;
  25. ModelRenderer Shape10;
  26. ModelRenderer Shape11;
  27. ModelRenderer Shape12;
  28. ModelRenderer Shape122;
  29. ModelRenderer Shape13;
  30. ModelRenderer Shape132;
  31. ModelRenderer Shape14;
  32. ModelRenderer Shape142;
  33. ModelRenderer Shape15;
  34. ModelRenderer Shape152;
  35. ModelRenderer Shape16;
  36. ModelRenderer Shape162;
  37.  
  38. public ArmorTopaze(float expand) {
  39.  
  40. super(expand, 0, 128, 128);
  41.  
  42. Shape1 = new ModelRenderer(this, 88, 0);
  43. Shape1.addBox(0F, 0F, 0F, 10, 1, 10);
  44. Shape1.setRotationPoint(-5F, 0F, -5F);
  45. Shape1.setTextureSize(128, 128);
  46. Shape1.mirror = true;
  47. setRotation(Shape1, 0F, 0F, 0F);
  48. Shape2 = new ModelRenderer(this, 66, 0);
  49. Shape2.addBox(0F, 0F, 0F, 1, 9, 10);
  50. Shape2.setRotationPoint(4F, -9F, -5F);
  51. Shape2.setTextureSize(128, 128);
  52. Shape2.mirror = true;
  53. setRotation(Shape2, 0F, 0F, 0F);
  54. Shape2le2 = new ModelRenderer(this, 106, 11);
  55. Shape2le2.addBox(0F, 0F, 0F, 1, 9, 10);
  56. Shape2le2.setRotationPoint(-5F, -9F, -5F);
  57. Shape2le2.setTextureSize(128, 128);
  58. Shape2le2.mirror = true;
  59. setRotation(Shape2le2, 0F, 0F, 0F);
  60. Shape3 = new ModelRenderer(this, 88, 11);
  61. Shape3.addBox(0F, 0F, 0F, 8, 9, 1);
  62. Shape3.setRotationPoint(-4F, -9F, 4F);
  63. Shape3.setTextureSize(128, 128);
  64. Shape3.mirror = true;
  65. setRotation(Shape3, 0F, 0F, 0F);
  66. Shape4 = new ModelRenderer(this, 32, 0);
  67. Shape4.addBox(0F, 0F, 0F, 8, 1, 9);
  68. Shape4.setRotationPoint(-4F, -9F, -5F);
  69. Shape4.setTextureSize(128, 128);
  70. Shape4.mirror = true;
  71. setRotation(Shape4, 0F, 0F, 0F);
  72. Shape5 = new ModelRenderer(this, 34, 10);
  73. Shape5.addBox(0F, 0F, 0F, 8, 2, 1);
  74. Shape5.setRotationPoint(-4F, -8F, -5F);
  75. Shape5.setTextureSize(128, 128);
  76. Shape5.mirror = true;
  77. setRotation(Shape5, 0F, 0F, 0F);
  78. Shape6 = new ModelRenderer(this, 60, 10);
  79. Shape6.addBox(0F, 0F, 0F, 2, 2, 1);
  80. Shape6.setRotationPoint(-1F, -6F, -5F);
  81. Shape6.setTextureSize(128, 128);
  82. Shape6.mirror = true;
  83. setRotation(Shape6, 0F, 0F, 0F);
  84. Shape7 = new ModelRenderer(this, 56, 10);
  85. Shape7.addBox(0F, 0F, 0F, 0, 2, 2);
  86. Shape7.setRotationPoint(0F, -10F, 4F);
  87. Shape7.setTextureSize(128, 128);
  88. Shape7.mirror = true;
  89. setRotation(Shape7, 0F, 0F, 0F);
  90. Shape8 = new ModelRenderer(this, 54, 10);
  91. Shape8.addBox(0F, 0F, 0F, 0, 1, 1);
  92. Shape8.setRotationPoint(0F, -10F, 1F);
  93. Shape8.setTextureSize(128, 128);
  94. Shape8.mirror = true;
  95. setRotation(Shape8, 0F, 0F, 0F);
  96. Shape9 = new ModelRenderer(this, 52, 10);
  97. Shape9.addBox(0F, 0F, 0F, 0, 1, 1);
  98. Shape9.setRotationPoint(0F, -6F, 5F);
  99. Shape9.setTextureSize(128, 128);
  100. Shape9.mirror = true;
  101. setRotation(Shape9, 0F, 0F, 0F);
  102. Shape10 = new ModelRenderer(this, 4, 0);
  103. Shape10.addBox(0F, 0F, 0F, 2, 3, 7);
  104. Shape10.setRotationPoint(-1F, -13F, 0F);
  105. Shape10.setTextureSize(128, 128);
  106. Shape10.mirror = true;
  107. setRotation(Shape10, 0F, 0F, 0F);
  108. Shape11 = new ModelRenderer(this, 22, 0);
  109. Shape11.addBox(0F, 0F, 0F, 2, 7, 3);
  110. Shape11.setRotationPoint(-1F, -11F, 6F);
  111. Shape11.setTextureSize(128, 128);
  112. Shape11.mirror = true;
  113. setRotation(Shape11, 0F, 0F, 0F);
  114. Shape12 = new ModelRenderer(this, 24, 61);
  115. Shape12.addBox(0F, 0F, 0F, 4, 1, 4);
  116. Shape12.setRotationPoint(4F, 10F, -2F);
  117. Shape12.setTextureSize(128, 128);
  118. Shape12.mirror = true;
  119. setRotation(Shape12, 0F, 0F, 0F);
  120. Shape122 = new ModelRenderer(this, 24, 56);
  121. Shape122.addBox(0F, 0F, 0F, 4, 1, 4);
  122. Shape122.setRotationPoint(-8F, 10F, -2F);
  123. Shape122.setTextureSize(128, 128);
  124. Shape122.mirror = true;
  125. setRotation(Shape122, 0F, 0F, 0F);
  126. Shape13 = new ModelRenderer(this, 0, 56);
  127. Shape13.addBox(0F, 0F, 0F, 6, 1, 6);
  128. Shape13.setRotationPoint(3F, 11F, -3F);
  129. Shape13.setTextureSize(128, 128);
  130. Shape13.mirror = true;
  131. setRotation(Shape13, 0F, 0F, 0F);
  132. Shape132 = new ModelRenderer(this, 0, 63);
  133. Shape132.addBox(0F, 0F, 0F, 6, 1, 6);
  134. Shape132.setRotationPoint(-9F, 11F, -3F);
  135. Shape132.setTextureSize(128, 128);
  136. Shape132.mirror = true;
  137. setRotation(Shape132, 0F, 0F, 0F);
  138. Shape14 = new ModelRenderer(this, 0, 70);
  139. Shape14.addBox(0F, 0F, 0F, 4, 8, 4);
  140. Shape14.setRotationPoint(0F, 12F, -2F);
  141. Shape14.setTextureSize(128, 128);
  142. Shape14.mirror = true;
  143. setRotation(Shape14, 0F, 0F, 0F);
  144. Shape142 = new ModelRenderer(this, 0, 82);
  145. Shape142.addBox(0F, 0F, 0F, 4, 8, 4);
  146. Shape142.setRotationPoint(-4F, 12F, -2F);
  147. Shape142.setTextureSize(128, 128);
  148. Shape142.mirror = true;
  149. setRotation(Shape142, 0F, 0F, 0F);
  150. Shape15 = new ModelRenderer(this, 0, 94);
  151. Shape15.addBox(0F, 0F, 0F, 1, 6, 4);
  152. Shape15.setRotationPoint(4F, 12F, -2F);
  153. Shape15.setTextureSize(128, 128);
  154. Shape15.mirror = true;
  155. setRotation(Shape15, 0F, 0F, 0F);
  156. Shape152 = new ModelRenderer(this, 0, 104);
  157. Shape152.addBox(0F, 0F, 0F, 1, 6, 4);
  158. Shape152.setRotationPoint(-5F, 12F, -2F);
  159. Shape152.setTextureSize(128, 128);
  160. Shape152.mirror = true;
  161. setRotation(Shape152, 0F, 0F, 0F);
  162. Shape16 = new ModelRenderer(this, 0, 114);
  163. Shape16.addBox(0F, 0F, 0F, 4, 6, 1);
  164. Shape16.setRotationPoint(0F, 14F, -3F);
  165. Shape16.setTextureSize(128, 128);
  166. Shape16.mirror = true;
  167. setRotation(Shape16, 0F, 0F, 0F);
  168. Shape162 = new ModelRenderer(this, 0, 121);
  169. Shape162.addBox(0F, 0F, 0F, 4, 6, 1);
  170. Shape162.setRotationPoint(-4F, 14F, -3F);
  171. Shape162.setTextureSize(128, 128);
  172. Shape162.mirror = true;
  173. setRotation(Shape162, 0F, 0F, 0F);
  174. body = new ModelRenderer(this, 0, 34);
  175. body.addBox(-4F, 0F, -2F, 10, 12, 6);
  176. body.setRotationPoint(-1F, 0F, -1F);
  177. body.setTextureSize(128, 128);
  178. body.mirror = true;
  179. setRotation(body, 0F, 0F, 0F);
  180. rightarm = new ModelRenderer(this, 40, 33);
  181. rightarm.addBox(-3F, -2F, -2F, 6, 11, 6);
  182. rightarm.setRotationPoint(-6F, 1F, -1F);
  183. rightarm.setTextureSize(128, 128);
  184. rightarm.mirror = true;
  185. setRotation(rightarm, 0F, 0F, 0F);
  186. leftarm = new ModelRenderer(this, 40, 16);
  187. leftarm.addBox(-1F, -2F, -2F, 6, 11, 6);
  188. leftarm.setRotationPoint(4F, 1F, -1F);
  189. leftarm.setTextureSize(128, 128);
  190. leftarm.mirror = true;
  191. setRotation(leftarm, 0F, 0F, 0F);
  192. rightleg = new ModelRenderer(this, 0, 16);
  193. rightleg.addBox(-2F, 0F, -2F, 5, 4, 6);
  194. rightleg.setRotationPoint(-3F, 20F, -1F);
  195. rightleg.setTextureSize(128, 128);
  196. rightleg.mirror = true;
  197. setRotation(rightleg, 0F, 0F, 0F);
  198. leftleg = new ModelRenderer(this, 0, 16);
  199. leftleg.addBox(-2F, 0F, -2F, 5, 4, 6);
  200. leftleg.setRotationPoint(2F, 20F, -1F);
  201. leftleg.setTextureSize(128, 128);
  202. leftleg.mirror = true;
  203. setRotation(leftleg, 0F, 0F, 0F);
  204.  
  205.  
  206. this.bipedHead.addChild(Shape1);
  207. this.bipedHead.addChild(Shape2);
  208. this.bipedHead.addChild(Shape2le2);
  209. this.bipedHead.addChild(Shape3);
  210. this.bipedHead.addChild(Shape4);
  211. this.bipedHead.addChild(Shape5);
  212. this.bipedHead.addChild(Shape6);
  213. this.bipedHead.addChild(Shape7);
  214. this.bipedHead.addChild(Shape8);
  215. this.bipedHead.addChild(Shape9);
  216. this.bipedHead.addChild(Shape10);
  217. this.bipedHead.addChild(Shape11);
  218.  
  219.  
  220.  
  221. this.bipedRightArm.addChild(Shape122);
  222. this.bipedRightArm.addChild(Shape132);
  223. this.bipedRightArm.addChild(rightarm);
  224.  
  225.  
  226. this.bipedLeftArm.addChild(Shape12);
  227. this.bipedLeftArm.addChild(Shape13);
  228. this.bipedLeftArm.addChild(leftarm);
  229.  
  230.  
  231.  
  232. this.bipedRightLeg.addChild(rightleg);
  233. this.bipedRightLeg.addChild(Shape142);
  234. this.bipedRightLeg.addChild(Shape152);
  235. this.bipedRightLeg.addChild(Shape162);
  236.  
  237. this.bipedLeftLeg.addChild(leftleg);
  238. this.bipedLeftLeg.addChild(Shape14);
  239. this.bipedLeftLeg.addChild(Shape15);
  240. this.bipedLeftLeg.addChild(Shape16);
  241.  
  242.  
  243. this.bipedBody.addChild(body);
  244.  
  245.  
  246.  
  247. }
  248.  
  249. public void render(Entity entity, float f, float f1, float f2, float f3, float f4, float f5) {
  250. super.render(entity, f, f1, f2, f3, f4, f5);
  251. setRotationAngles(f, f1, f2, f3, f4, f5, entity);
  252.  
  253. }
  254.  
  255. private void setRotation(ModelRenderer model, float x, float y, float z)
  256. {
  257. model.rotateAngleX = x;
  258. model.rotateAngleY = y;
  259. model.rotateAngleZ = z;
  260. }
  261. public void setRotationAngles(float f, float f1, float f2, float f3, float f4, float f5, Entity entity)
  262. {
  263. super.setRotationAngles(f, f1, f2, f3, f4, f5, entity);
  264. }
  265.  
  266.  
  267. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement