SHARE
TWEET

ModelDragon.java

kman2010 Jun 4th, 2011 96 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package net.minecraft.src;
  2. //Exported java file
  3. //Keep in mind that you still need to fill in some blanks
  4. // - ZeuX
  5.  
  6. public class ModelDragon extends ModelBase
  7. {
  8.  
  9. public ModelDragon()
  10. {
  11. foot1 = new ModelRenderer(0, 0);
  12. foot1.addBox(0F, 3, 2, 4, 0, 0, 0);
  13. foot1.setRotationPoint(-4, 22, -3);
  14.  
  15. foot1.rotateAngleX = 0;
  16. foot1.rotateAngleY = 0;
  17. foot1.rotateAngleZ = 0;
  18.  
  19. foot2 = new ModelRenderer(0, 0);
  20. foot2.addBox(0F, 3, 2, 4, 0, 0, 0);
  21. foot2.setRotationPoint(1, 22, -3);
  22.  
  23. foot2.rotateAngleX = 0;
  24. foot2.rotateAngleY = 0;
  25. foot2.rotateAngleZ = 0;
  26.  
  27. thigh1 = new ModelRenderer(0, 0);
  28. thigh1.addBox(0F, 3, 9, 2, 0, 0, 0);
  29. thigh1.setRotationPoint(1, 15, -2);
  30.  
  31. thigh1.rotateAngleX = 0.226892802759263;
  32. thigh1.rotateAngleY = 0;
  33. thigh1.rotateAngleZ = 0;
  34.  
  35. thigh2 = new ModelRenderer(0, 0);
  36. thigh2.addBox(0F, 3, 9, 2, 0, 0, 0);
  37. thigh2.setRotationPoint(-4, 15, -2);
  38.  
  39. thigh2.rotateAngleX = 0.226892802759263;
  40. thigh2.rotateAngleY = 0;
  41. thigh2.rotateAngleZ = 0;
  42.  
  43. calf1 = new ModelRenderer(0, 0);
  44. calf1.addBox(0F, 3, 6, 2, 0, 0, 0);
  45. calf1.setRotationPoint(1, 9, -1);
  46.  
  47. calf1.rotateAngleX = -0.15707963267949;
  48. calf1.rotateAngleY = 0;
  49. calf1.rotateAngleZ = 0;
  50.  
  51. calf2 = new ModelRenderer(0, 0);
  52. calf2.addBox(0F, 3, 6, 2, 0, 0, 0);
  53. calf2.setRotationPoint(-4, 9, -1);
  54.  
  55. calf2.rotateAngleX = -0.15707963267949;
  56. calf2.rotateAngleY = 0;
  57. calf2.rotateAngleZ = 0;
  58.  
  59. body = new ModelRenderer(0, 0);
  60. body.addBox(0F, 6, 9, 3, 0, 0, 0);
  61. body.setRotationPoint(-3, 1, -2);
  62.  
  63. body.rotateAngleX = 0;
  64. body.rotateAngleY = 0;
  65. body.rotateAngleZ = 0;
  66.  
  67. neck = new ModelRenderer(0, 0);
  68. neck.addBox(0F, 2, 3, 2, 0, 0, 0);
  69. neck.setRotationPoint(-1, -1, -2);
  70.  
  71. neck.rotateAngleX = 0.191986217719376;
  72. neck.rotateAngleY = 0;
  73. neck.rotateAngleZ = 0;
  74.  
  75. head = new ModelRenderer(0, 12);
  76. head.addBox(0F, 4, 3, 6, 0, 0, 0);
  77. head.setRotationPoint(-2, -4, -6);
  78.  
  79. head.rotateAngleX = 0;
  80. head.rotateAngleY = 0;
  81. head.rotateAngleZ = 0;
  82.  
  83. wing1 = new ModelRenderer(32, 0);
  84. wing1.addBox(0F, 12, 6, 1, 0, 0, 0);
  85. wing1.setRotationPoint(3, 1, 0);
  86.  
  87. wing1.rotateAngleX = 0;
  88. wing1.rotateAngleY = 0;
  89. wing1.rotateAngleZ = 0;
  90.  
  91. wing2 = new ModelRenderer(32, 0);
  92. wing2.addBox(0F, 12, 6, 1, 0, 0, 0);
  93. wing2.setRotationPoint(-15, 1, 0);
  94.  
  95. wing2.rotateAngleX = 0;
  96. wing2.rotateAngleY = 0;
  97. wing2.rotateAngleZ = 0;
  98.  
  99.  
  100. }
  101. public void render(float f, float f1, float f2, float f3, float f4, float f5)
  102. {
  103. super.render(float f, float f1, float f2, float f3, float f4, float f5)
  104. setRotationAngles(f, f1, f2, f3, f4, f5);
  105. foot1.render(f5);
  106. foot2.render(f5);
  107. thigh1.render(f5);
  108. thigh2.render(f5);
  109. calf1.render(f5);
  110. calf2.render(f5);
  111. body.render(f5);
  112. neck.render(f5);
  113. head.render(f5);
  114. wing1.render(f5);
  115. wing2.render(f5);
  116.  
  117. }
  118.  
  119. public void setRotationAngles(float f, float f1, float f2, float f3, float f4, float f5)
  120. {
  121. super.setRotationAngles(f, f1, f2, f3, f4, f5);
  122. }
  123.  
  124. //fields
  125. public ModelRenderer foot1;
  126. public ModelRenderer foot2;
  127. public ModelRenderer thigh1;
  128. public ModelRenderer thigh2;
  129. public ModelRenderer calf1;
  130. public ModelRenderer calf2;
  131. public ModelRenderer body;
  132. public ModelRenderer neck;
  133. public ModelRenderer head;
  134. public ModelRenderer wing1;
  135. public ModelRenderer wing2;
  136.  
  137. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top