Advertisement
Guest User

Blomph Model Class

a guest
Jun 10th, 2021
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.80 KB | None | 0 0
  1. public class BlomphModel<T extends BlomphEntity> extends EntityModel<T> {
  2.  
  3. public ModelRenderer Body;
  4. public ModelRenderer Body2;
  5. public ModelRenderer horn;
  6. public ModelRenderer FLleg;
  7. public ModelRenderer FRleg;
  8. public ModelRenderer BLleg;
  9. public ModelRenderer BRleg;
  10. public ModelRenderer head;
  11.  
  12. public BlomphModel() {
  13. this.texWidth = 120;
  14. this.texHeight = 120;
  15. this.FRleg = new ModelRenderer(this, 75, 62);
  16. this.FRleg.setPos(-3.0F, 8.0F, -4.0F);
  17. this.FRleg.addBox(-2.5F, 0.0F, -3.0F, 5.0F, 12.0F, 6.0F, 0.0F, 0.0F, 0.0F);
  18. this.BRleg = new ModelRenderer(this, 75, 20);
  19. this.BRleg.setPos(-3.0F, 7.0F, 0.0F);
  20. this.BRleg.addBox(-2.5F, 0.0F, -3.0F, 5.0F, 12.0F, 6.0F, 0.0F, 0.0F, 0.0F);
  21. this.Body = new ModelRenderer(this, 0, 62);
  22. this.Body.setPos(0.0F, 4.0F, -3.0F);
  23. this.Body.addBox(-8.0F, -9.0F, -10.0F, 16.0F, 18.0F, 20.0F, 0.0F, 0.0F, 0.0F);
  24. this.head = new ModelRenderer(this, 0, 102);
  25. this.head.setPos(0.0F, 1.0F, -1.4F);
  26. this.head.addBox(-4.0F, -3.0F, -12.0F, 8.0F, 6.0F, 12.0F, 0.0F, 0.0F, 0.0F);
  27. this.setRotateAngle(head, 0.45378560551852565F, 0.0F, 0.0F);
  28. this.FLleg = new ModelRenderer(this, 75, 42);
  29. this.FLleg.setPos(3.0F, 8.0F, -4.0F);
  30. this.FLleg.addBox(-2.5F, 0.0F, -3.0F, 5.0F, 12.0F, 6.0F, 0.0F, 0.0F, 0.0F);
  31. this.Body2 = new ModelRenderer(this, 0, 34);
  32. this.Body2.setPos(0.0F, 1.0F, 15.0F);
  33. this.Body2.addBox(-6.0F, -8.0F, -5.0F, 12.0F, 16.0F, 10.0F, 0.0F, 0.0F, 0.0F);
  34. this.BLleg = new ModelRenderer(this, 75, 0);
  35. this.BLleg.setPos(3.0F, 7.0F, 0.0F);
  36. this.BLleg.addBox(-2.5F, 0.0F, -3.0F, 5.0F, 12.0F, 6.0F, 0.0F, 0.0F, 0.0F);
  37. this.horn = new ModelRenderer(this, 0, 0);
  38. this.horn.setPos(0.0F, -3.2F, -6.0F);
  39. this.horn.addBox(-3.0F, -9.0F, -10.0F, 6.0F, 13.0F, 12.0F, 0.0F, 0.0F, 0.0F);
  40. this.Body.addChild(this.FRleg);
  41. this.Body2.addChild(this.BRleg);
  42. this.horn.addChild(this.head);
  43. this.Body.addChild(this.FLleg);
  44. this.Body.addChild(this.Body2);
  45. this.Body2.addChild(this.BLleg);
  46. this.Body.addChild(this.horn);
  47. }
  48.  
  49.  
  50. public void setupAnim(T p_225597_1_, float p_225597_2_, float p_225597_3_, float p_225597_4_, float p_225597_5_, float p_225597_6_) {
  51.  
  52. }
  53.  
  54. public void setRotateAngle(ModelRenderer modelRenderer, float x, float y, float z) {
  55. modelRenderer.xRot = x;
  56. modelRenderer.yRot = y;
  57. modelRenderer.zRot = z;
  58. }
  59.  
  60. @Override
  61. public void renderToBuffer(MatrixStack p_225598_1_, IVertexBuilder p_225598_2_, int p_225598_3_, int p_225598_4_, float p_225598_5_, float p_225598_6_, float p_225598_7_, float p_225598_8_) {
  62.  
  63. }
  64. }
  65.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement