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 VisorRight;
- ModelRenderer VisorLeft;
- ModelRenderer VisorLens;
- ModelRenderer VisorButton;
- ModelRenderer ShoulderLeft;
- ModelRenderer ShoulderRight;
- public ArmorModel(float expand){
- super(expand, 0 ,64, 64);
- VisorRight = new ModelRenderer(this, 0, 0);
- VisorRight.addBox(0F, 0F, 0F, 1, 3, 3);
- VisorRight.setRotationPoint(0F, 0F, 0F);
- VisorRight.setTextureSize(64, 64);
- VisorRight.mirror = false;
- setRotation(VisorRight, 0F, 0F, 0F);
- VisorLeft = new ModelRenderer(this, 24, 0);
- VisorLeft.addBox(0F, 0F, 0F, 1, 3, 3);
- VisorLeft.setRotationPoint(0F, 0F, 0F);
- VisorLeft.setTextureSize(64, 64);
- VisorLeft.mirror = false;
- setRotation(VisorLeft, 0F, 0F, 0F);
- VisorLens = new ModelRenderer(this, 0, 44);
- VisorLens.addBox(0F, 0F, 0F, 10, 2, 2);
- VisorLens.setRotationPoint(0F, 0F, 0F);
- VisorLens.setTextureSize(64, 64);
- VisorLens.mirror = false;
- setRotation(VisorLens, 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 = false;
- setRotation(VisorButton, 0F, 0F, 0F);
- ShoulderLeft = new ModelRenderer(this, 24, 32);
- ShoulderLeft.addBox(0F, 0F, 0F, 6, 6, 6);
- ShoulderLeft.setRotationPoint(0F, 0F, 0F);
- ShoulderLeft.setTextureSize(64, 64);
- ShoulderLeft.mirror = false;
- setRotation(ShoulderLeft, 0F, 0F, 0F);
- ShoulderRight = new ModelRenderer(this, 0, 32);
- ShoulderRight.addBox(0F, 0F, 0F, 6, 6, 6);
- ShoulderRight.setRotationPoint(0F, 0F, 0F);
- ShoulderRight.setTextureSize(64, 64);
- ShoulderRight.mirror = false;
- setRotation(ShoulderRight, 0F, 0F, 0F);
- VisorLens.addChild(VisorLeft);
- VisorLens.addChild(VisorRight);
- VisorLens.addChild(VisorButton);
- this.bipedHead.addChild(VisorLens);
- this.bipedLeftArm.addChild(ShoulderLeft);
- this.bipedRightArm.addChild(ShoulderRight);
- }
- private void setRotation(ModelRenderer model, float x, float y, float z)
- {
- model.rotateAngleX = x;
- model.rotateAngleY = y;
- model.rotateAngleZ = z;
- }
- 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);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement