Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.thirtydays.items.wearable.breathing.Respirator.models;// Made with Blockbench 4.9.4
- import net.minecraft.client.model.ModelBiped;
- import net.minecraft.client.model.ModelBox;
- import net.minecraft.client.model.ModelRenderer;
- import net.minecraft.entity.Entity;
- public class ModelRespirator extends ModelBiped {
- private final ModelRenderer bb_main;
- private final ModelRenderer offset2_r1;
- private final ModelRenderer offset1_r1;
- private final ModelRenderer filter1_r1;
- private final ModelRenderer strap4_r1;
- private final ModelRenderer strap2_r1;
- private final ModelRenderer filter2_r1;
- public ModelRespirator() {
- textureWidth = 64;
- textureHeight = 64;
- bb_main = new ModelRenderer(this);
- bb_main.setRotationPoint(0.0F, 0.0F, 0.0F);
- bb_main.cubeList.add(new ModelBox(bb_main, 25, 25, -4.2F, 31.075F, 3.25F, 1, 1, 1, 0.0F, false));
- bb_main.cubeList.add(new ModelBox(bb_main, 25, 25, 3.2F, 31.075F, 3.25F, 1, 1, 1, 0.0F, false));
- bb_main.cubeList.add(new ModelBox(bb_main, 24, 8, 4.025F, 24.0F, -4.95F, 0, 1, 9, 0.0F, false));
- bb_main.cubeList.add(new ModelBox(bb_main, 24, 8, -4.025F, 24.0F, -4.95F, 0, 1, 9, 0.0F, false));
- bb_main.cubeList.add(new ModelBox(bb_main, 32, 29, -3.0F, 25.0F, -5.0F, 6, 1, 1, 0.0F, false));
- bb_main.cubeList.add(new ModelBox(bb_main, 32, 21, -3.0F, 24.0F, -6.0F, 6, 2, 1, 0.0F, false));
- bb_main.cubeList.add(new ModelBox(bb_main, 33, 28, -2.0F, 26.0F, -5.0F, 4, 1, 1, 0.0F, false));
- bb_main.cubeList.add(new ModelBox(bb_main, 32, 29, -4.0F, 24.0F, -5.0F, 8, 1, 1, 0.0F, false));
- bb_main.cubeList.add(new ModelBox(bb_main, 11, 19, -4.0F, 31.1F, 3.275F, 8, 1, 1, 0.0F, false));
- offset2_r1 = new ModelRenderer(this);
- offset2_r1.setRotationPoint(-4.0F, 24.9F, -6.0F);
- bb_main.addChild(offset2_r1);
- setRotationAngle(offset2_r1, 0.0F, 0.6109F, 0.0F);
- offset2_r1.cubeList.add(new ModelBox(offset2_r1, 41, 28, -1.1649F, -1.0F, 0.2092F, 2, 2, 1, 0.0F, false));
- offset1_r1 = new ModelRenderer(this);
- offset1_r1.setRotationPoint(0.0F, 23.9F, 0.0F);
- bb_main.addChild(offset1_r1);
- setRotationAngle(offset1_r1, 0.0F, -0.6109F, 0.0F);
- offset1_r1.cubeList.add(new ModelBox(offset1_r1, 41, 28, -1.0F, 0.0F, -7.0F, 2, 2, 1, 0.0F, false));
- filter1_r1 = new ModelRenderer(this);
- filter1_r1.setRotationPoint(4.5F, 24.65F, -6.5F);
- bb_main.addChild(filter1_r1);
- setRotationAngle(filter1_r1, -0.061F, -0.6082F, 0.1064F);
- filter1_r1.cubeList.add(new ModelBox(filter1_r1, 49, 32, -0.9579F, -0.75F, -0.0944F, 2, 2, 1, 0.0F, false));
- strap4_r1 = new ModelRenderer(this);
- strap4_r1.setRotationPoint(-4.1F, 25.7F, -3.0F);
- bb_main.addChild(strap4_r1);
- setRotationAngle(strap4_r1, 0.6981F, 0.0F, 0.0F);
- strap4_r1.cubeList.add(new ModelBox(strap4_r1, 18, 5, 0.0F, -0.4F, -2.9F, 0, 1, 12, 0.0F, false));
- strap4_r1.cubeList.add(new ModelBox(strap4_r1, 18, 5, 8.2F, -0.4F, -2.9F, 0, 1, 12, 0.0F, false));
- strap2_r1 = new ModelRenderer(this);
- strap2_r1.setRotationPoint(0.125F, 24.0F, -0.1F);
- bb_main.addChild(strap2_r1);
- setRotationAngle(strap2_r1, 0.0F, 1.5708F, 0.0F);
- strap2_r1.cubeList.add(new ModelBox(strap2_r1, 26, 9, -4.1F, 0.0F, -4.1F, 0, 1, 8, 0.0F, false));
- filter2_r1 = new ModelRenderer(this);
- filter2_r1.setRotationPoint(-4.5F, 24.65F, -6.5F);
- bb_main.addChild(filter2_r1);
- setRotationAngle(filter2_r1, -0.061F, 0.6082F, -0.1064F);
- filter2_r1.cubeList.add(new ModelBox(filter2_r1, 49, 32, -1.0421F, -0.75F, -0.0944F, 2, 2, 1, 0.0F, false));
- this.bipedHead.addChild(bb_main);
- }
- @Override
- public void render(Entity entity, float f, float f1, float f2, float f3, float f4, float f5) {
- super.render(entity, f, f1, f2, f3, f4, f5);
- setRotationAngles(f, f1, f2, f3, f4, f5, entity);
- }
- public void setRotationAngle(ModelRenderer modelRenderer, float x, float y, float z) {
- modelRenderer.rotateAngleX = x;
- modelRenderer.rotateAngleY = y;
- modelRenderer.rotateAngleZ = z;
- }
- public void setRotationAngles(float f, float f1, float f2, float f3, float f4, float f5, Entity entity) {
- super.setRotationAngles(f, f1, f2, f3, f4, f5, entity);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment