Advertisement
Guest User

Untitled

a guest
Jun 14th, 2018
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.68 KB | None | 0 0
  1. package com.micromod.client.model;
  2.  
  3. import net.minecraft.client.model.ModelBase;
  4. import net.minecraft.client.model.ModelBiped;
  5. import net.minecraft.client.model.ModelRenderer;
  6. import net.minecraft.entity.Entity;
  7. import net.minecraft.client.renderer.GlStateManager;
  8. import org.lwjgl.opengl.GL11;
  9.  
  10. import javax.jws.WebParam;
  11. import java.util.ArrayList;
  12.  
  13. public class ModelHelmetArthas extends ModelBiped {
  14. public ModelRenderer shape13;
  15. public ModelRenderer shape14;
  16. public ModelRenderer shape15;
  17. public ModelRenderer shape16;
  18. public ModelRenderer shape17;
  19. public ModelRenderer shape18;
  20. public ModelRenderer shape19;
  21. public ModelRenderer shape35;
  22. public ModelRenderer shape54;
  23. public ModelRenderer shape55;
  24. public ModelRenderer shape56;
  25. public ModelRenderer shape57;
  26. public ModelRenderer shape58;
  27. public ModelRenderer shape59;
  28. public ModelRenderer shape60;
  29. public ModelRenderer shape61;
  30. public ModelRenderer shape21;
  31. public ModelRenderer shape22;
  32. public ModelRenderer shape23;
  33. public ModelRenderer shape24;
  34. public ModelRenderer shape25;
  35. public ModelRenderer shape26;
  36. public ModelRenderer shape27;
  37. public ModelRenderer shape28;
  38. public ModelRenderer shape29;
  39. public ModelRenderer shape30;
  40. public ModelRenderer shape31;
  41. public ModelRenderer shape32;
  42. public ModelRenderer shape33;
  43. public ModelRenderer shape34;
  44. public ModelRenderer shape48;
  45. public ModelRenderer shape49;
  46. public ModelRenderer shape8;
  47. public ModelRenderer shape9;
  48. public ModelRenderer shape10;
  49. public ModelRenderer shape11;
  50. public ModelRenderer shape12;
  51. public ModelRenderer shape39;
  52. public ModelRenderer shape40;
  53. public ModelRenderer shape41;
  54. public ModelRenderer shape42;
  55. public ModelRenderer shape43;
  56. public ModelRenderer shape44;
  57. public ModelRenderer shape45;
  58. public ModelRenderer shape46;
  59. public ModelRenderer shape47;
  60. public ModelRenderer shape50;
  61. public ModelRenderer shape51;
  62. public ModelRenderer shape52;
  63. public ModelRenderer shape53;
  64.  
  65. private ArrayList<ModelRenderer> modelList = new ArrayList<ModelRenderer>();
  66.  
  67. public ModelHelmetArthas() {
  68. this.textureWidth = 64;
  69. this.textureHeight = 32;
  70. this.shape10 = new ModelRenderer(this, 13, 0);
  71. this.shape10.setRotationPoint(0.0F, 0.0F, 0.0F);
  72. this.shape10.addBox(4.0F, -9.0F, -4.0F, 1, 10, 8, 0.0F);
  73. this.shape55 = new ModelRenderer(this, 1, 22);
  74. this.shape55.setRotationPoint(0.0F, 0.0F, 0.0F);
  75. this.shape55.addBox(3.0F, -5.0F, -7.0F, 2, 1, 2, 0.0F);
  76. this.shape56 = new ModelRenderer(this, 1, 22);
  77. this.shape56.setRotationPoint(0.0F, 0.0F, 0.0F);
  78. this.shape56.addBox(-6.0F, -6.0F, -3.0F, 1, 1, 7, 0.0F);
  79. this.shape46 = new ModelRenderer(this, 0, 22);
  80. this.shape46.setRotationPoint(0.0F, 0.0F, 0.0F);
  81. this.shape46.addBox(3.0F, -13.0F, -4.0F, 1, 3, 2, 0.0F);
  82. this.shape53 = new ModelRenderer(this, 0, 22);
  83. this.shape53.setRotationPoint(0.0F, 0.0F, 0.0F);
  84. this.shape53.addBox(3.0F, -13.0F, 0.0F, 1, 1, 1, 0.0F);
  85. this.shape23 = new ModelRenderer(this, 0, 10);
  86. this.shape23.setRotationPoint(0.0F, 0.0F, 0.0F);
  87. this.shape23.addBox(-7.0F, 0.0F, -6.0F, 4, 2, 1, 0.0F);
  88. this.shape14 = new ModelRenderer(this, 1, 21);
  89. this.shape14.setRotationPoint(0.0F, 0.0F, 0.0F);
  90. this.shape14.addBox(1.0F, -7.0F, -7.0F, 5, 1, 2, 0.0F);
  91. this.shape33 = new ModelRenderer(this, 0, 20);
  92. this.shape33.setRotationPoint(0.0F, 0.0F, 0.0F);
  93. this.shape33.addBox(3.0F, -1.0F, -6.0F, 1, 1, 1, 0.0F);
  94. this.shape44 = new ModelRenderer(this, 0, 22);
  95. this.shape44.setRotationPoint(0.0F, 0.0F, 0.0F);
  96. this.shape44.addBox(-4.0F, -13.0F, -4.0F, 1, 3, 2, 0.0F);
  97. this.shape57 = new ModelRenderer(this, 1, 22);
  98. this.shape57.setRotationPoint(0.0F, 0.0F, 0.0F);
  99. this.shape57.addBox(5.0F, -6.0F, -3.0F, 1, 1, 7, 0.0F);
  100. this.shape43 = new ModelRenderer(this, 0, 22);
  101. this.shape43.setRotationPoint(0.0F, 0.0F, 0.0F);
  102. this.shape43.addBox(-1.0F, -17.0F, -6.0F, 2, 2, 2, 0.0F);
  103. this.shape50 = new ModelRenderer(this, 0, 22);
  104. this.shape50.setRotationPoint(0.0F, 0.0F, 0.0F);
  105. this.shape50.addBox(-5.0F, -12.0F, -1.0F, 1, 3, 1, 0.0F);
  106. this.shape51 = new ModelRenderer(this, 0, 22);
  107. this.shape51.setRotationPoint(0.0F, 0.0F, 0.0F);
  108. this.shape51.addBox(-4.0F, -13.0F, 0.0F, 1, 1, 1, 0.0F);
  109. this.shape25 = new ModelRenderer(this, 13, 15);
  110. this.shape25.setRotationPoint(0.0F, 0.0F, 0.0F);
  111. this.shape25.addBox(-3.0F, 0.0F, -6.0F, 2, 2, 1, 0.0F);
  112. this.shape26 = new ModelRenderer(this, 0, 20);
  113. this.shape26.setRotationPoint(0.0F, 0.0F, 0.0F);
  114. this.shape26.addBox(-6.0F, -2.0F, -6.0F, 1, 2, 1, 0.0F);
  115. this.shape12 = new ModelRenderer(this, 11, 0);
  116. this.shape12.setRotationPoint(0.0F, 0.0F, 0.0F);
  117. this.shape12.addBox(-5.0F, -9.0F, 4.0F, 10, 10, 1, 0.0F);
  118. this.shape29 = new ModelRenderer(this, 0, 20);
  119. this.shape29.setRotationPoint(0.0F, 0.0F, 0.0F);
  120. this.shape29.addBox(1.0F, -2.0F, -6.0F, 1, 2, 1, 0.0F);
  121. this.shape35 = new ModelRenderer(this, 1, 22);
  122. this.shape35.setRotationPoint(0.0F, 0.0F, 0.0F);
  123. this.shape35.addBox(-6.0F, -7.0F, -5.0F, 1, 1, 2, 0.0F);
  124. this.shape41 = new ModelRenderer(this, 0, 20);
  125. this.shape41.setRotationPoint(0.0F, 0.0F, 0.0F);
  126. this.shape41.addBox(-4.0F, -9.0F, -6.0F, 8, 1, 1, 0.0F);
  127. this.shape31 = new ModelRenderer(this, 0, 10);
  128. this.shape31.setRotationPoint(0.0F, 0.0F, 0.0F);
  129. this.shape31.addBox(-7.0F, -3.0F, -6.0F, 1, 3, 1, 0.0F);
  130. this.shape49 = new ModelRenderer(this, 0, 20);
  131. this.shape49.setRotationPoint(0.0F, 0.0F, 0.0F);
  132. this.shape49.addBox(-2.0F, 1.0F, -7.0F, 1, 1, 1, 0.0F);
  133. this.shape18 = new ModelRenderer(this, 1, 22);
  134. this.shape18.setRotationPoint(0.0F, 0.0F, 0.0F);
  135. this.shape18.addBox(4.0F, -6.0F, -7.0F, 2, 1, 2, 0.0F);
  136. this.shape22 = new ModelRenderer(this, 0, 8);
  137. this.shape22.setRotationPoint(0.0F, 0.0F, 0.0F);
  138. this.shape22.addBox(5.0F, -3.0F, -5.0F, 2, 5, 4, 0.0F);
  139. this.shape8 = new ModelRenderer(this, 3, 2);
  140. this.shape8.setRotationPoint(0.0F, 0.0F, 0.0F);
  141. this.shape8.addBox(-4.0F, -9.0F, -4.0F, 8, 1, 8, 0.0F);
  142. this.shape11 = new ModelRenderer(this, 0, 0);
  143. this.shape11.mirror = true;
  144. this.shape11.setRotationPoint(0.0F, 0.0F, 0.0F);
  145. this.shape11.addBox(-5.0F, -9.0F, -5.0F, 10, 10, 1, 0.0F);
  146. this.shape42 = new ModelRenderer(this, 0, 22);
  147. this.shape42.setRotationPoint(0.0F, 0.0F, 0.0F);
  148. this.shape42.addBox(-1.0F, -15.0F, -7.0F, 2, 4, 2, 0.0F);
  149. this.shape16 = new ModelRenderer(this, 1, 22);
  150. this.shape16.setRotationPoint(0.0F, 0.0F, 0.0F);
  151. this.shape16.addBox(-1.0F, -5.0F, -6.0F, 2, 1, 1, 0.0F);
  152. this.shape27 = new ModelRenderer(this, 0, 20);
  153. this.shape27.setRotationPoint(0.0F, 0.0F, 0.0F);
  154. this.shape27.addBox(-4.0F, -1.0F, -6.0F, 1, 1, 1, 0.0F);
  155. this.shape45 = new ModelRenderer(this, 0, 22);
  156. this.shape45.setRotationPoint(0.0F, 0.0F, 0.0F);
  157. this.shape45.addBox(-3.0F, -15.0F, -3.0F, 1, 2, 1, 0.0F);
  158. this.shape52 = new ModelRenderer(this, 0, 22);
  159. this.shape52.setRotationPoint(0.0F, 0.0F, 0.0F);
  160. this.shape52.addBox(4.0F, -12.0F, -1.0F, 1, 3, 1, 0.0F);
  161. this.shape47 = new ModelRenderer(this, 0, 22);
  162. this.shape47.setRotationPoint(0.0F, 0.0F, 0.0F);
  163. this.shape47.addBox(2.0F, -15.0F, -3.0F, 1, 2, 1, 0.0F);
  164. this.shape54 = new ModelRenderer(this, 1, 22);
  165. this.shape54.setRotationPoint(0.0F, 0.0F, 0.0F);
  166. this.shape54.addBox(-5.0F, -5.0F, -7.0F, 2, 1, 2, 0.0F);
  167. this.shape17 = new ModelRenderer(this, 1, 20);
  168. this.shape17.setRotationPoint(0.0F, 0.0F, 0.0F);
  169. this.shape17.addBox(-6.0F, -7.0F, -7.0F, 2, 2, 2, 0.0F);
  170. this.shape21 = new ModelRenderer(this, 0, 9);
  171. this.shape21.setRotationPoint(0.0F, 0.0F, 0.0F);
  172. this.shape21.addBox(-7.0F, -3.0F, -5.0F, 2, 5, 4, 0.0F);
  173. this.shape9 = new ModelRenderer(this, 11, 0);
  174. this.shape9.setRotationPoint(0.0F, 0.0F, 0.0F);
  175. this.shape9.addBox(-5.0F, -9.0F, -4.0F, 1, 10, 8, 0.0F);
  176. this.shape60 = new ModelRenderer(this, 0, 20);
  177. this.shape60.setRotationPoint(0.0F, 0.0F, 0.0F);
  178. this.shape60.addBox(-5.0F, -8.0F, -6.0F, 1, 1, 1, 0.0F);
  179. this.shape30 = new ModelRenderer(this, 13, 15);
  180. this.shape30.setRotationPoint(0.0F, 0.0F, 0.0F);
  181. this.shape30.addBox(1.0F, 0.0F, -6.0F, 2, 2, 1, 0.0F);
  182. this.shape28 = new ModelRenderer(this, 0, 20);
  183. this.shape28.setRotationPoint(0.0F, 0.0F, 0.0F);
  184. this.shape28.addBox(-2.0F, -2.0F, -6.0F, 1, 2, 1, 0.0F);
  185. this.shape40 = new ModelRenderer(this, 0, 22);
  186. this.shape40.setRotationPoint(0.0F, 0.0F, 0.0F);
  187. this.shape40.addBox(-1.0F, -12.0F, -6.0F, 2, 3, 2, 0.0F);
  188. this.shape34 = new ModelRenderer(this, 0, 20);
  189. this.shape34.setRotationPoint(0.0F, 0.0F, 0.0F);
  190. this.shape34.addBox(5.0F, -2.0F, -6.0F, 1, 2, 1, 0.0F);
  191. this.shape13 = new ModelRenderer(this, 1, 22);
  192. this.shape13.setRotationPoint(0.0F, 0.0F, 0.0F);
  193. this.shape13.addBox(-5.0F, -7.0F, -7.0F, 4, 1, 2, 0.0F);
  194. this.shape19 = new ModelRenderer(this, 1, 22);
  195. this.shape19.setRotationPoint(0.0F, 0.0F, 0.0F);
  196. this.shape19.addBox(5.0F, -7.0F, -5.0F, 1, 1, 2, 0.0F);
  197. this.shape61 = new ModelRenderer(this, 0, 20);
  198. this.shape61.setRotationPoint(0.0F, 0.0F, 0.0F);
  199. this.shape61.addBox(4.0F, -8.0F, -6.0F, 1, 1, 1, 0.0F);
  200. this.shape24 = new ModelRenderer(this, 0, 10);
  201. this.shape24.setRotationPoint(0.0F, 0.0F, 0.0F);
  202. this.shape24.addBox(3.0F, 0.0F, -6.0F, 4, 2, 1, 0.0F);
  203. this.shape15 = new ModelRenderer(this, 1, 22);
  204. this.shape15.setRotationPoint(0.0F, 0.0F, 0.0F);
  205. this.shape15.addBox(-2.0F, -6.0F, -7.0F, 4, 1, 2, 0.0F);
  206. this.shape32 = new ModelRenderer(this, 0, 10);
  207. this.shape32.setRotationPoint(0.0F, 0.0F, 0.0F);
  208. this.shape32.addBox(6.0F, -3.0F, -6.0F, 1, 3, 1, 0.0F);
  209. this.shape39 = new ModelRenderer(this, 4, 9);
  210. this.shape39.setRotationPoint(0.0F, 0.0F, 0.0F);
  211. this.shape39.addBox(-4.0F, -10.0F, -4.0F, 8, 1, 8, 0.0F);
  212. this.shape59 = new ModelRenderer(this, 1, 22);
  213. this.shape59.setRotationPoint(0.0F, 0.0F, 0.0F);
  214. this.shape59.addBox(-6.0F, -9.0F, -1.0F, 1, 3, 1, 0.0F);
  215. this.shape58 = new ModelRenderer(this, 1, 22);
  216. this.shape58.setRotationPoint(0.0F, 0.0F, 0.0F);
  217. this.shape58.addBox(5.0F, -9.0F, -1.0F, 1, 3, 1, 0.0F);
  218. this.shape48 = new ModelRenderer(this, 0, 20);
  219. this.shape48.setRotationPoint(0.0F, 0.0F, 0.0F);
  220. this.shape48.addBox(1.0F, 1.0F, -7.0F, 1, 1, 1, 0.0F);
  221. modelList.add(shape13);
  222. modelList.add(shape14);
  223. modelList.add(shape15);
  224. modelList.add(shape16);
  225. modelList.add(shape17);
  226. modelList.add(shape18);
  227. modelList.add(shape19);
  228. modelList.add(shape35);
  229. modelList.add(shape54);
  230. modelList.add(shape55);
  231. modelList.add(shape56);
  232. modelList.add(shape57);
  233. modelList.add(shape58);
  234. modelList.add(shape59);
  235. modelList.add(shape60);
  236. modelList.add(shape61);
  237. modelList.add(shape21);
  238. modelList.add(shape22);
  239. modelList.add(shape23);
  240. modelList.add(shape24);
  241. modelList.add(shape25);
  242. modelList.add(shape26);
  243. modelList.add(shape27);
  244. modelList.add(shape28);
  245. modelList.add(shape29);
  246. modelList.add(shape30);
  247. modelList.add(shape31);
  248. modelList.add(shape32);
  249. modelList.add(shape33);
  250. modelList.add(shape34);
  251. modelList.add(shape48);
  252. modelList.add(shape49);
  253. modelList.add(shape8);
  254. modelList.add(shape9);
  255. modelList.add(shape10);
  256. modelList.add(shape11);
  257. modelList.add(shape12);
  258. modelList.add(shape39);
  259. modelList.add(shape40);
  260. modelList.add(shape41);
  261. modelList.add(shape42);
  262. modelList.add(shape43);
  263. modelList.add(shape44);
  264. modelList.add(shape45);
  265. modelList.add(shape46);
  266. modelList.add(shape47);
  267. modelList.add(shape50);
  268. modelList.add(shape51);
  269. modelList.add(shape52);
  270. modelList.add(shape53);
  271. for (ModelRenderer lol : modelList){
  272. this.bipedHead.addChild(lol);
  273. }
  274. this.bipedHead.showModel = false;
  275. this.bipedHeadwear.showModel = false;
  276. this.bipedBody.showModel = false;
  277. this.bipedLeftArm.showModel = false;
  278. this.bipedRightArm.showModel = false;
  279. this.bipedLeftLeg.showModel = false;
  280. this.bipedRightLeg.showModel = false;
  281. }
  282.  
  283. @Override
  284. public void render(Entity entity, float f, float f1, float f2, float f3, float f4, float f5) {
  285. super.render(entity, f, f1, f2, f3, f4, f5);
  286. setRotationAngles(f, f1, f2, f3, f4, f5, entity);
  287. }
  288.  
  289. /**
  290. * This is a helper function from Tabula to set the rotation of model parts
  291. */
  292. public void setRotateAngle(ModelRenderer modelRenderer, float x, float y, float z) {
  293. modelRenderer.rotateAngleX = x;
  294. modelRenderer.rotateAngleY = y;
  295. modelRenderer.rotateAngleZ = z;
  296. }
  297.  
  298. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement