Guest User

Untitled

a guest
Sep 30th, 2013
56
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // Date: 20/09/2013 22:33:43
  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 landcast.common;
  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 ModelTest extends ModelBase
  19. {
  20. //fields
  21. ModelRenderer Shape1;
  22.  
  23.  
  24. public ModelTest()
  25. {
  26. textureWidth = 64;
  27. textureHeight = 64;
  28.  
  29. Shape1 = new ModelRenderer(this, 0, 32);
  30. Shape1.addBox(0F, 0F, 0F, 4, 14, 1);
  31. Shape1.setRotationPoint(-2F, 8F, 7F);
  32. Shape1.setTextureSize(64, 64);
  33. Shape1.mirror = true;
  34. setRotation(Shape1, 0F, 0F, 0F);
  35.  
  36. }
  37.  
  38. public void render(Entity entity, float f, float f1, float f2, float f3, float f4, float f5)
  39. {
  40. super.render(entity, f, f1, f2, f3, f4, f5);
  41. setRotationAngles(f, f1, f2, f3, f4, f5, entity);
  42. Shape1.render(f5);
  43.  
  44. }
  45.  
  46. private void setRotation(ModelRenderer model, float x, float y, float z)
  47. {
  48. model.rotateAngleX = x;
  49. model.rotateAngleY = y;
  50. model.rotateAngleZ = z;
  51. }
  52.  
  53. public void setRotationAngles(float f, float f1, float f2, float f3, float f4, float f5, Entity entity)
  54. {
  55. super.setRotationAngles(f, f1, f2, f3, f4, f5, entity);
  56.  
  57. }
  58.  
  59. }
RAW Paste Data