Guest User

BlockLatexModel

a guest
Feb 22nd, 2014
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.29 KB | None | 0 0
  1. // Date: 21/02/2014 9:45:38 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 Periodicraft;
  13.  
  14. import net.minecraft.client.model.ModelBase;
  15. import net.minecraft.client.model.ModelRenderer;
  16.  
  17. public class ModelLatexBarrel extends ModelBase
  18. {
  19. //fields
  20. ModelRenderer Shape1;
  21. ModelRenderer Shape2;
  22. ModelRenderer Shape3;
  23. ModelRenderer Shape4;
  24. ModelRenderer Shape5;
  25. ModelRenderer Shape6;
  26. ModelRenderer Shape7;
  27. ModelRenderer Shape8;
  28. ModelRenderer Shape9;
  29.  
  30. float f5 = 0.0625F;
  31.  
  32. public ModelLatexBarrel()
  33. {
  34. textureWidth = 128;
  35. textureHeight = 32;
  36.  
  37. Shape1 = new ModelRenderer(this, 64, 0);
  38. Shape1.addBox(0F, 0F, 0F, 16, 1, 16);
  39. Shape1.setRotationPoint(-8F, 21F, -8F);
  40. Shape1.setTextureSize(128, 32);
  41. Shape1.mirror = true;
  42. setRotation(Shape1, 0F, 0F, 0F);
  43. Shape2 = new ModelRenderer(this, 32, 0);
  44. Shape2.addBox(0F, 0F, 0F, 2, 2, 2);
  45. Shape2.setRotationPoint(6F, 22F, 6F);
  46. Shape2.setTextureSize(128, 32);
  47. Shape2.mirror = true;
  48. setRotation(Shape2, 0F, 0F, 0F);
  49. Shape3 = new ModelRenderer(this, 32, 0);
  50. Shape3.addBox(0F, 0F, 0F, 2, 2, 2);
  51. Shape3.setRotationPoint(-8F, 22F, 6F);
  52. Shape3.setTextureSize(128, 32);
  53. Shape3.mirror = true;
  54. setRotation(Shape3, 0F, 0F, 0F);
  55. Shape4 = new ModelRenderer(this, 32, 0);
  56. Shape4.addBox(0F, 0F, 0F, 2, 2, 2);
  57. Shape4.setRotationPoint(-8F, 22F, -8F);
  58. Shape4.setTextureSize(128, 32);
  59. Shape4.mirror = true;
  60. setRotation(Shape4, 0F, 0F, 0F);
  61. Shape5 = new ModelRenderer(this, 32, 0);
  62. Shape5.addBox(0F, 0F, 0F, 2, 2, 2);
  63. Shape5.setRotationPoint(6F, 22F, -8F);
  64. Shape5.setTextureSize(128, 32);
  65. Shape5.mirror = true;
  66. setRotation(Shape5, 0F, 0F, 0F);
  67. Shape6 = new ModelRenderer(this, 0, 0);
  68. Shape6.addBox(0F, 0F, 0F, 12, 12, 1);
  69. Shape6.setRotationPoint(-6F, 9F, 6F);
  70. Shape6.setTextureSize(128, 32);
  71. Shape6.mirror = true;
  72. setRotation(Shape6, 0F, 0F, 0F);
  73. Shape7 = new ModelRenderer(this, 0, 0);
  74. Shape7.addBox(0F, 0F, 0F, 1, 12, 12);
  75. Shape7.setRotationPoint(6F, 9F, -6F);
  76. Shape7.setTextureSize(128, 32);
  77. Shape7.mirror = true;
  78. setRotation(Shape7, 0F, 0F, 0F);
  79. Shape8 = new ModelRenderer(this, 0, 0);
  80. Shape8.addBox(0F, 0F, 0F, 1, 12, 12);
  81. Shape8.setRotationPoint(-7F, 9F, -6F);
  82. Shape8.setTextureSize(128, 32);
  83. Shape8.mirror = true;
  84. setRotation(Shape8, 0F, 0F, 0F);
  85. Shape9 = new ModelRenderer(this, 0, 0);
  86. Shape9.addBox(0F, 0F, 0F, 12, 12, 1);
  87. Shape9.setRotationPoint(-6F, 9F, -7F);
  88. Shape9.setTextureSize(128, 32);
  89. Shape9.mirror = true;
  90. setRotation(Shape9, 0F, 0F, 0F);
  91. }
  92.  
  93. public void render()
  94. {
  95. Shape1.render(f5);
  96. Shape2.render(f5);
  97. Shape3.render(f5);
  98. Shape4.render(f5);
  99. Shape5.render(f5);
  100. Shape6.render(f5);
  101. Shape7.render(f5);
  102. Shape8.render(f5);
  103. Shape9.render(f5);
  104. }
  105.  
  106. private void setRotation(ModelRenderer model, float x, float y, float z)
  107. {
  108. model.rotateAngleX = x;
  109. model.rotateAngleY = y;
  110. model.rotateAngleZ = z;
  111. }
  112. }
Advertisement
Add Comment
Please, Sign In to add comment