Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.TheGoldCrayon.Daemonology.client.model;
- import net.minecraft.client.model.ModelBase;
- import net.minecraft.client.model.ModelRenderer;
- import net.minecraft.entity.Entity;
- import net.minecraft.util.MathHelper;
- public class ModelDjinn extends ModelBase
- {
- ModelRenderer head = new ModelRenderer(this, 0, 0);
- ModelRenderer body;
- ModelRenderer rightarm;
- ModelRenderer leftarm;
- ModelRenderer lefthorn1;
- ModelRenderer lefthorn2;
- ModelRenderer lefthorn3;
- ModelRenderer lefthorn4;
- ModelRenderer lefthorn5;
- ModelRenderer lefthorn6;
- ModelRenderer lefthorn7;
- ModelRenderer lefthorn8;
- ModelRenderer lefthorn9;
- ModelRenderer lefthorn10;
- ModelRenderer righthorn1;
- ModelRenderer righthorn2;
- ModelRenderer righthorn3;
- ModelRenderer righthorn4;
- ModelRenderer righthorn5;
- ModelRenderer righthorn6;
- ModelRenderer righthorn7;
- ModelRenderer righthorn8;
- ModelRenderer righthorn9;
- ModelRenderer righthorn10;
- ModelRenderer cloud1;
- ModelRenderer cloud2;
- ModelRenderer cloud3;
- ModelRenderer cloud4;
- public ModelDjinn()
- {
- textureWidth = 64;
- textureHeight = 64;
- this.head = new ModelRenderer(this, 0, 5);
- this.head.addBox(-4F, -8F, -4F, 8, 8, 8);
- this.head.setRotationPoint(0F, 0F, 0F);
- this.body = new ModelRenderer(this, 0, 22);
- this.body.addBox(-4F, -2F, -17F, 8, 4, 17);
- this.body.setRotationPoint(0F, 0F, 0F);
- this.rightarm = new ModelRenderer(this, 33, 0);
- this.rightarm.addBox(-3F, -2F, -2F, 4, 12, 4);
- this.rightarm.setRotationPoint(-5F, 2F, 0F);
- this.leftarm = new ModelRenderer(this, 33, 0);
- this.leftarm.addBox(-1F, -2F, -2F, 4, 12, 4);
- this.leftarm.setRotationPoint(5F, 2F, 0F);
- this.lefthorn1 = new ModelRenderer(this, 5, 0);
- this.lefthorn1.addBox(1F, -4F, -9F, 2, 2, 2);
- this.lefthorn1.setRotationPoint(0F, 0F, 0F);
- this.lefthorn1.rotateAngleX = -0.7853982F;
- this.lefthorn2 = new ModelRenderer(this, 5, 0);
- this.lefthorn2.addBox(1F, -1.2F, -11F, 2, 2, 2);
- this.lefthorn2.setRotationPoint(0F, 0F, 0F);
- this.lefthorn2.rotateAngleX = -1.099557F;
- this.lefthorn3 = new ModelRenderer(this, 5, 0);
- this.lefthorn3.addBox(1F, 2.1F, -12F, 2, 2, 2);
- this.lefthorn3.setRotationPoint(0F, 0F, 0F);
- this.lefthorn3.rotateAngleX = -1.413717F;
- this.lefthorn4 = new ModelRenderer(this, 5, 0);
- this.lefthorn4.addBox(1F, 5.6F, -12.2F, 2, 2, 2);
- this.lefthorn4.setRotationPoint(0F, 0F, 0F);
- this.lefthorn4.rotateAngleX = -1.727876F;
- this.lefthorn5 = new ModelRenderer(this, 5, 0);
- this.lefthorn5.addBox(1F, 9F, -11.3F, 2, 2, 2);
- this.lefthorn5.setRotationPoint(0F, 0F, 0F);
- this.lefthorn5.rotateAngleX = -2.042035F;
- this.lefthorn6 = new ModelRenderer(this, 0, 0);
- this.lefthorn6.addBox(1.5F, 11.2F, -10.5F, 1, 1, 1);
- this.lefthorn6.setRotationPoint(0F, 0F, 0F);
- this.lefthorn6.rotateAngleX = -2.199115F;
- this.lefthorn7 = new ModelRenderer(this, 0, 0);
- this.lefthorn7.addBox(1.5F, 12.7F, -9.42F, 1, 1, 1);
- this.lefthorn7.setRotationPoint(0F, 0F, 0F);
- this.lefthorn7.rotateAngleX = -2.356194F;
- this.lefthorn8 = new ModelRenderer(this, 0, 0);
- this.lefthorn8.addBox(1.5F, 14F, -8F, 1, 1, 1);
- this.lefthorn8.setRotationPoint(0F, 0F, 0F);
- this.lefthorn8.rotateAngleX = -2.513274F;
- this.lefthorn9 = new ModelRenderer(this, 0, 0);
- this.lefthorn9.addBox(1.5F, 15.1F, -6.5F, 1, 1, 1);
- this.lefthorn9.setRotationPoint(0F, 0F, 0F);
- this.lefthorn9.rotateAngleX = -2.670354F;
- this.lefthorn10 = new ModelRenderer(this, 0, 0);
- this.lefthorn10.addBox(1.5F, 15.9F, -4.9F, 1, 1, 1);
- this.lefthorn10.setRotationPoint(0F, 0F, 0F);
- this.lefthorn10.rotateAngleX = -2.827433F;
- this.righthorn1 = new ModelRenderer(this, 5, 0);
- this.righthorn1.addBox(-3F, -4F, -9F, 2, 2, 2);
- this.righthorn1.setRotationPoint(0F, 0F, 0F);
- this.righthorn1.rotateAngleX = -0.7853982F;
- this.righthorn2 = new ModelRenderer(this, 5, 0);
- this.righthorn2.addBox(-3F, -1.2F, -11F, 2, 2, 2);
- this.righthorn2.setRotationPoint(0F, 0F, 0F);
- this.righthorn2.rotateAngleX = -1.099557F;
- this.righthorn3 = new ModelRenderer(this, 5, 0);
- this.righthorn3.addBox(-3F, 2.1F, -12F, 2, 2, 2);
- this.righthorn3.setRotationPoint(0F, 0F, 0F);
- this.righthorn3.rotateAngleX = -1.413717F;
- this.righthorn4 = new ModelRenderer(this, 5, 0);
- this.righthorn4.addBox(-3F, 5.6F, -12.2F, 2, 2, 2);
- this.righthorn4.setRotationPoint(0F, 0F, 0F);
- this.righthorn4.rotateAngleX = -1.727876F;
- this.righthorn5 = new ModelRenderer(this, 5, 0);
- this.righthorn5.addBox(-3F, 9F, -11.3F, 2, 2, 2);
- this.righthorn5.setRotationPoint(0F, 0F, 0F);
- this.righthorn5.rotateAngleX = -2.042035F;
- this.righthorn6 = new ModelRenderer(this, 0, 0);
- this.righthorn6.addBox(-2.5F, 11.2F, -10.5F, 1, 1, 1);
- this.righthorn6.setRotationPoint(0F, 0F, 0F);
- this.righthorn6.rotateAngleX = -2.199115F;
- this.righthorn7 = new ModelRenderer(this, 0, 0);
- this.righthorn7.addBox(-2.5F, 12.7F, -9.42F, 1, 1, 1);
- this.righthorn7.setRotationPoint(0F, 0F, 0F);
- this.righthorn7.rotateAngleX = -2.356194F;
- this.righthorn8 = new ModelRenderer(this, 0, 0);
- this.righthorn8.addBox(-2.5F, 14F, -8F, 1, 1, 1);
- this.righthorn8.setRotationPoint(0F, 0F, 0F);
- this.righthorn8.rotateAngleX = -2.513274F;
- this.righthorn9 = new ModelRenderer(this, 0, 0);
- this.righthorn9.addBox(-2.5F, 15.1F, -6.5F, 1, 1, 1);
- this.righthorn9.setRotationPoint(0F, 0F, 0F);
- this.righthorn9.rotateAngleX = -2.670354F;
- this.righthorn10 = new ModelRenderer(this, 0, 0);
- this.righthorn10.addBox(-2.5F, 15.9F, -4.9F, 1, 1, 1);
- this.righthorn10.setRotationPoint(0F, 0F, 0F);
- this.righthorn10.rotateAngleX = -2.827433F;
- this.cloud1 = new ModelRenderer(this, 0, 46);
- this.cloud1.addBox(-7F, 18F, -6F, 14, 5, 12);
- this.cloud1.setRotationPoint(0F, 0F, 0F);
- this.cloud2 = new ModelRenderer(this, 0, 46);
- this.cloud2.addBox(-6F, 17F, -5F, 12, 7, 10);
- this.cloud2.setRotationPoint(0F, 0F, 0F);
- this.cloud3 = new ModelRenderer(this, 0, 46);
- this.cloud3.addBox(-7F, 19F, -7F, 14, 3, 14);
- this.cloud3.setRotationPoint(0F, 0F, 0F);
- this.cloud4 = new ModelRenderer(this, 0, 46);
- this.cloud4.addBox(-8F, 19F, -6F, 16, 3, 12);
- this.cloud4.setRotationPoint(0F, 0F, 0F);
- }
- public void setRotationAngles(float time, float limbSwingDistance, float p_78087_3_, float headYRot, float headXRot, float p_78087_6_, Entity entity)
- {
- this.head.rotateAngleX = headXRot / (180F / (float)Math.PI);
- this.head.rotateAngleY = headYRot / (180F / (float)Math.PI);
- this.body.rotateAngleX = ((float)Math.PI / 2.0F);
- this.leftarm.rotateAngleX = MathHelper.cos(time * 0.6662F) * 1.4F * limbSwingDistance;
- this.rightarm.rotateAngleX = MathHelper.cos(time * .6662F + (float)Math.PI) * 1.4F * limbSwingDistance;
- }
- }
Add Comment
Please, Sign In to add comment