DrMDGG

ModelBeeHive

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