Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package net.Ethereal.armor;
- import net.minecraft.client.model.ModelBiped;
- import net.minecraft.client.model.ModelRenderer;
- import net.minecraft.entity.Entity;
- public class ArmorModel extends ModelBiped
- {
- //fields
- ModelRenderer LeftShoulder;
- ModelRenderer RightShoulder;
- ModelRenderer VisorL;
- ModelRenderer VisorButton;
- ModelRenderer VisorLens;
- ModelRenderer VisorR;
- public ArmorModel(float expand){
- super(expand, 0 ,64, 64);
- LeftShoulder = new ModelRenderer(this, 0, 32);
- LeftShoulder.addBox(0F, 0F, 0F, 6, 6, 6);
- LeftShoulder.setRotationPoint(0F, 0F, 0F);
- LeftShoulder.setTextureSize(64, 64);
- LeftShoulder.mirror = true;
- setRotation(LeftShoulder, 0F, 0F, 0F);
- RightShoulder = new ModelRenderer(this, 24, 32);
- RightShoulder.addBox(0F, 0F, 0F, 6, 6, 6);
- RightShoulder.setRotationPoint(0F, 0F, 0F);
- RightShoulder.setTextureSize(64, 64);
- RightShoulder.mirror = true;
- setRotation(RightShoulder, 0F, 0F, 0F);
- VisorL = new ModelRenderer(this, 24, 0);
- VisorL.addBox(0F, 0F, 0F, 1, 3, 3);
- VisorL.setRotationPoint(0F, 0F, 0F);
- VisorL.setTextureSize(64, 64);
- VisorL.mirror = true;
- setRotation(VisorL, 0F, 0F, 0F);
- VisorButton = new ModelRenderer(this, 32, 0);
- VisorButton.addBox(0F, 0F, 0F, 1, 1, 1);
- VisorButton.setRotationPoint(0F, 0F, 0F);
- VisorButton.setTextureSize(64, 64);
- VisorButton.mirror = true;
- setRotation(VisorButton, 0F, 0F, 0F);
- VisorLens = new ModelRenderer(this, 1, 44);
- VisorLens.addBox(0F, 0F, 0F, 10, 2, 2);
- VisorLens.setRotationPoint(0F, 0F, 0F);
- VisorLens.setTextureSize(64, 64);
- VisorLens.mirror = true;
- setRotation(VisorLens, 0F, 0F, 0F);
- VisorR = new ModelRenderer(this, 0, 0);
- VisorR.addBox(0F, 0F, 0F, 1, 3, 3);
- VisorR.setRotationPoint(0F, 0F, 0F);
- VisorR.setTextureSize(64, 64);
- VisorR.mirror = true;
- setRotation(VisorR, 0F, 0F, 0F);
- VisorLens.addChild(VisorL);
- VisorLens.addChild(VisorR);
- VisorLens.addChild(VisorButton);
- this.bipedHead.addChild(VisorLens);
- this.bipedLeftArm.addChild(LeftShoulder);
- this.bipedRightArm.addChild(RightShoulder);
- }
- 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);
- }
- private void setRotation(ModelRenderer model, float x, float y, float z)
- {
- model.rotateAngleX = x;
- model.rotateAngleY = y;
- model.rotateAngleZ = z;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement