Guest User

Untitled

a guest
Mar 7th, 2024
8
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 4.42 KB | None | 0 0
  1. package com.thirtydays.items.wearable.breathing.Respirator.models;// Made with Blockbench 4.9.4
  2.  
  3. import net.minecraft.client.model.ModelBiped;
  4. import net.minecraft.client.model.ModelBox;
  5. import net.minecraft.client.model.ModelRenderer;
  6. import net.minecraft.entity.Entity;
  7.  
  8.  
  9. public class ModelRespirator extends ModelBiped {
  10.  
  11.     private final ModelRenderer bb_main;
  12.     private final ModelRenderer offset2_r1;
  13.     private final ModelRenderer offset1_r1;
  14.     private final ModelRenderer filter1_r1;
  15.     private final ModelRenderer strap4_r1;
  16.     private final ModelRenderer strap2_r1;
  17.     private final ModelRenderer filter2_r1;
  18.  
  19.  
  20.     public ModelRespirator() {
  21.         textureWidth = 64;
  22.         textureHeight = 64;
  23.  
  24.         bb_main = new ModelRenderer(this);
  25.         bb_main.setRotationPoint(0.0F, 0.0F, 0.0F);
  26.         bb_main.cubeList.add(new ModelBox(bb_main, 25, 25, -4.2F, 31.075F, 3.25F, 1, 1, 1, 0.0F, false));
  27.         bb_main.cubeList.add(new ModelBox(bb_main, 25, 25, 3.2F, 31.075F, 3.25F, 1, 1, 1, 0.0F, false));
  28.         bb_main.cubeList.add(new ModelBox(bb_main, 24, 8, 4.025F, 24.0F, -4.95F, 0, 1, 9, 0.0F, false));
  29.         bb_main.cubeList.add(new ModelBox(bb_main, 24, 8, -4.025F, 24.0F, -4.95F, 0, 1, 9, 0.0F, false));
  30.         bb_main.cubeList.add(new ModelBox(bb_main, 32, 29, -3.0F, 25.0F, -5.0F, 6, 1, 1, 0.0F, false));
  31.         bb_main.cubeList.add(new ModelBox(bb_main, 32, 21, -3.0F, 24.0F, -6.0F, 6, 2, 1, 0.0F, false));
  32.         bb_main.cubeList.add(new ModelBox(bb_main, 33, 28, -2.0F, 26.0F, -5.0F, 4, 1, 1, 0.0F, false));
  33.         bb_main.cubeList.add(new ModelBox(bb_main, 32, 29, -4.0F, 24.0F, -5.0F, 8, 1, 1, 0.0F, false));
  34.         bb_main.cubeList.add(new ModelBox(bb_main, 11, 19, -4.0F, 31.1F, 3.275F, 8, 1, 1, 0.0F, false));
  35.  
  36.         offset2_r1 = new ModelRenderer(this);
  37.         offset2_r1.setRotationPoint(-4.0F, 24.9F, -6.0F);
  38.         bb_main.addChild(offset2_r1);
  39.         setRotationAngle(offset2_r1, 0.0F, 0.6109F, 0.0F);
  40.         offset2_r1.cubeList.add(new ModelBox(offset2_r1, 41, 28, -1.1649F, -1.0F, 0.2092F, 2, 2, 1, 0.0F, false));
  41.  
  42.         offset1_r1 = new ModelRenderer(this);
  43.         offset1_r1.setRotationPoint(0.0F, 23.9F, 0.0F);
  44.         bb_main.addChild(offset1_r1);
  45.         setRotationAngle(offset1_r1, 0.0F, -0.6109F, 0.0F);
  46.         offset1_r1.cubeList.add(new ModelBox(offset1_r1, 41, 28, -1.0F, 0.0F, -7.0F, 2, 2, 1, 0.0F, false));
  47.  
  48.         filter1_r1 = new ModelRenderer(this);
  49.         filter1_r1.setRotationPoint(4.5F, 24.65F, -6.5F);
  50.         bb_main.addChild(filter1_r1);
  51.         setRotationAngle(filter1_r1, -0.061F, -0.6082F, 0.1064F);
  52.         filter1_r1.cubeList.add(new ModelBox(filter1_r1, 49, 32, -0.9579F, -0.75F, -0.0944F, 2, 2, 1, 0.0F, false));
  53.  
  54.         strap4_r1 = new ModelRenderer(this);
  55.         strap4_r1.setRotationPoint(-4.1F, 25.7F, -3.0F);
  56.         bb_main.addChild(strap4_r1);
  57.         setRotationAngle(strap4_r1, 0.6981F, 0.0F, 0.0F);
  58.         strap4_r1.cubeList.add(new ModelBox(strap4_r1, 18, 5, 0.0F, -0.4F, -2.9F, 0, 1, 12, 0.0F, false));
  59.         strap4_r1.cubeList.add(new ModelBox(strap4_r1, 18, 5, 8.2F, -0.4F, -2.9F, 0, 1, 12, 0.0F, false));
  60.  
  61.         strap2_r1 = new ModelRenderer(this);
  62.         strap2_r1.setRotationPoint(0.125F, 24.0F, -0.1F);
  63.         bb_main.addChild(strap2_r1);
  64.         setRotationAngle(strap2_r1, 0.0F, 1.5708F, 0.0F);
  65.         strap2_r1.cubeList.add(new ModelBox(strap2_r1, 26, 9, -4.1F, 0.0F, -4.1F, 0, 1, 8, 0.0F, false));
  66.  
  67.         filter2_r1 = new ModelRenderer(this);
  68.         filter2_r1.setRotationPoint(-4.5F, 24.65F, -6.5F);
  69.         bb_main.addChild(filter2_r1);
  70.         setRotationAngle(filter2_r1, -0.061F, 0.6082F, -0.1064F);
  71.         filter2_r1.cubeList.add(new ModelBox(filter2_r1, 49, 32, -1.0421F, -0.75F, -0.0944F, 2, 2, 1, 0.0F, false));
  72.         this.bipedHead.addChild(bb_main);
  73.  
  74.  
  75.     }
  76.  
  77.     @Override
  78.     public void render(Entity entity, float f, float f1, float f2, float f3, float f4, float f5) {
  79.         super.render(entity, f, f1, f2, f3, f4, f5);
  80.         setRotationAngles(f, f1, f2, f3, f4, f5, entity);
  81.     }
  82.  
  83.     public void setRotationAngle(ModelRenderer modelRenderer, float x, float y, float z) {
  84.         modelRenderer.rotateAngleX = x;
  85.         modelRenderer.rotateAngleY = y;
  86.         modelRenderer.rotateAngleZ = z;
  87.     }
  88.  
  89.  
  90.     public void setRotationAngles(float f, float f1, float f2, float f3, float f4, float f5, Entity entity) {
  91.         super.setRotationAngles(f, f1, f2, f3, f4, f5, entity);
  92.     }
  93. }
  94.  
  95.  
Advertisement
Add Comment
Please, Sign In to add comment