package wehavecookies56.kk.client.model;
import wehavecookies56.kk.entities.tileentities.TileEntityKKChest;
import net.minecraft.client.model.ModelBase;
import net.minecraft.client.model.ModelRenderer;
import net.minecraft.entity.Entity;
public class ModelKeybladeChest extends ModelBase
{
ModelRenderer Base1;
ModelRenderer Base2;
ModelRenderer Base3;
ModelRenderer Base4;
ModelRenderer Base5;
ModelRenderer Base6;
ModelRenderer Base7;
ModelRenderer Base8;
ModelRenderer Base9;
ModelRenderer Base10;
ModelRenderer Base11;
ModelRenderer Base12;
ModelRenderer Base13;
ModelRenderer Base14;
ModelRenderer Base15;
ModelRenderer Base16;
ModelRenderer Base17;
ModelRenderer Base18;
ModelRenderer Base19;
ModelRenderer Base20;
ModelRenderer Base21;
ModelRenderer Base22;
ModelRenderer Base23;
ModelRenderer Base24;
ModelRenderer Base25;
ModelRenderer Base26;
ModelRenderer Base27;
ModelRenderer Base28;
ModelRenderer Base29;
ModelRenderer Lid1;
ModelRenderer Lid2;
ModelRenderer Lid3;
ModelRenderer Lid4;
ModelRenderer Lid5;
ModelRenderer Lid6;
ModelRenderer Lid7;
ModelRenderer Lid8;
ModelRenderer Lid9;
ModelRenderer Lid10;
ModelRenderer Lid11;
ModelRenderer Lid12;
ModelRenderer Lid13;
ModelRenderer Lid14;
ModelRenderer Lid15;
ModelRenderer Lid16;
ModelRenderer Lid17;
ModelRenderer Lid18;
ModelRenderer Lid19;
ModelRenderer Lid20;
public ModelKeybladeChest()
{
textureWidth = 128;
textureHeight = 64;
Base1 = new ModelRenderer(this, 1, 47);
Base1.addBox(0F, 0F, 0F, 12, 6, 10);
Base1.setRotationPoint(-6F, 18F, -4F);
Base1.setTextureSize(128, 64);
Base1.mirror = true;
setRotation(Base1, 0F, 0F, 0F);
Base2 = new ModelRenderer(this, 1, 38);
Base2.addBox(0F, 0F, 0F, 1, 7, 1);
Base2.setRotationPoint(5.5F, 17F, -4.5F);
Base2.setTextureSize(128, 64);
Base2.mirror = true;
setRotation(Base2, 0F, 0F, 0F);
Base3 = new ModelRenderer(this, 6, 44);
Base3.addBox(0F, 0F, 0F, 11, 1, 1);
Base3.setRotationPoint(-5.5F, 17F, -4.5F);
Base3.setTextureSize(128, 64);
Base3.mirror = true;
setRotation(Base3, 0F, 0F, 0F);
Base4 = new ModelRenderer(this, 1, 29);
Base4.addBox(0F, 0F, 0F, 1, 7, 1);
Base4.setRotationPoint(-6.5F, 17F, -4.5F);
Base4.setTextureSize(128, 64);
Base4.mirror = true;
setRotation(Base4, 0F, 0F, 0F);
Base5 = new ModelRenderer(this, 6, 41);
Base5.addBox(0F, 0F, 0F, 11, 1, 1);
Base5.setRotationPoint(-5.5F, 23F, -4.5F);
Base5.setTextureSize(128, 64);
Base5.mirror = true;
setRotation(Base5, 0F, 0F, 0F);
Base6 = new ModelRenderer(this, 46, 53);
Base6.addBox(0F, 0F, 0F, 1, 1, 9);
Base6.setRotationPoint(-6.5F, 17F, -3.5F);
Base6.setTextureSize(128, 64);
Base6.mirror = true;
setRotation(Base6, 0F, 0F, 0F);
Base7 = new ModelRenderer(this, 6, 31);
Base7.addBox(0F, 0F, 0F, 1, 7, 1);
Base7.setRotationPoint(-6.5F, 17F, 5.5F);
Base7.setTextureSize(128, 64);
Base7.mirror = true;
setRotation(Base7, 0F, 0F, 0F);
Base8 = new ModelRenderer(this, 67, 53);
Base8.addBox(0F, 0F, 0F, 1, 1, 9);
Base8.setRotationPoint(-6.5F, 23F, -3.5F);
Base8.setTextureSize(128, 64);
Base8.mirror = true;
setRotation(Base8, 0F, 0F, 0F);
Base9 = new ModelRenderer(this, 46, 50);
Base9.addBox(0F, 0F, 0F, 1, 1, 1);
Base9.setRotationPoint(0F, 22.3F, -4.5F);
Base9.setTextureSize(128, 64);
Base9.mirror = true;
setRotation(Base9, 0F, 0F, 0.7853982F);
Base10 = new ModelRenderer(this, 46, 47);
Base10.addBox(0F, 0F, 0F, 1, 1, 1);
Base10.setRotationPoint(0F, 17.3F, -4.5F);
Base10.setTextureSize(128, 64);
Base10.mirror = true;
setRotation(Base10, 0F, 0F, 0.7853982F);
Base11 = new ModelRenderer(this, 51, 50);
Base11.addBox(0F, 0F, 0F, 1, 1, 1);
Base11.setRotationPoint(-5.5F, 19.8F, -4.5F);
Base11.setTextureSize(128, 64);
Base11.mirror = true;
setRotation(Base11, 0F, 0F, 0.7853982F);
Base12 = new ModelRenderer(this, 51, 47);
Base12.addBox(0F, 0F, 0F, 1, 1, 1);
Base12.setRotationPoint(5.5F, 19.8F, -4.5F);
Base12.setTextureSize(128, 64);
Base12.mirror = true;
setRotation(Base12, 0F, 0F, 0.7853982F);
Base13 = new ModelRenderer(this, 11, 31);
Base13.addBox(0F, 0F, 0F, 1, 7, 1);
Base13.setRotationPoint(5.5F, 17F, 5.5F);
Base13.setTextureSize(128, 64);
Base13.mirror = true;
setRotation(Base13, 0F, 0F, 0F);
Base14 = new ModelRenderer(this, 56, 50);
Base14.addBox(0F, 0F, 0F, 11, 1, 1);
Base14.setRotationPoint(-5.5F, 17F, 5.5F);
Base14.setTextureSize(128, 64);
Base14.mirror = true;
setRotation(Base14, 0F, 0F, 0F);
Base15 = new ModelRenderer(this, 88, 53);
Base15.addBox(0F, 0F, 0F, 1, 1, 9);
Base15.setRotationPoint(5.5F, 17F, -3.5F);
Base15.setTextureSize(128, 64);
Base15.mirror = true;
setRotation(Base15, 0F, 0F, 0F);
Base16 = new ModelRenderer(this, 81, 50);
Base16.addBox(0F, 0F, 0F, 1, 1, 1);
Base16.setRotationPoint(5.5F, 19.8F, 5.5F);
Base16.setTextureSize(128, 64);
Base16.mirror = true;
setRotation(Base16, 0F, 0F, 0.7853982F);
Base17 = new ModelRenderer(this, 56, 47);
Base17.addBox(0F, 0F, 0F, 11, 1, 1);
Base17.setRotationPoint(-5.5F, 23F, 5.5F);
Base17.setTextureSize(128, 64);
Base17.mirror = true;
setRotation(Base17, 0F, 0F, 0F);
Base18 = new ModelRenderer(this, 81, 47);
Base18.addBox(0F, 0F, 0F, 1, 1, 1);
Base18.setRotationPoint(-5.5F, 19.8F, 5.5F);
Base18.setTextureSize(128, 64);
Base18.mirror = true;
setRotation(Base18, 0F, 0F, 0.7853982F);
Base19 = new ModelRenderer(this, 86, 50);
Base19.addBox(0F, 0F, 0F, 1, 1, 1);
Base19.setRotationPoint(0F, 17.3F, 5.5F);
Base19.setTextureSize(128, 64);
Base19.mirror = true;
setRotation(Base19, 0F, 0F, 0.7853982F);
Base20 = new ModelRenderer(this, 31, 36);
Base20.addBox(0F, 0F, 0F, 1, 1, 9);
Base20.setRotationPoint(5.5F, 23F, -3.5F);
Base20.setTextureSize(128, 64);
Base20.mirror = true;
setRotation(Base20, 0F, 0F, 0F);
Base21 = new ModelRenderer(this, 86, 47);
Base21.addBox(0F, 0F, 0F, 1, 1, 1);
Base21.setRotationPoint(0F, 22.3F, 5.5F);
Base21.setTextureSize(128, 64);
Base21.mirror = true;
setRotation(Base21, 0F, 0F, 0.7853982F);
Base22 = new ModelRenderer(this, 91, 50);
Base22.addBox(0F, 0F, 0F, 1, 1, 1);
Base22.setRotationPoint(-6.5F, 23F, 0.3F);
Base22.setTextureSize(128, 64);
Base22.mirror = true;
setRotation(Base22, 0.7853982F, 0F, 0F);
Base23 = new ModelRenderer(this, 91, 47);
Base23.addBox(0F, 0F, 0F, 1, 1, 1);
Base23.setRotationPoint(-6.5F, 18F, 0.3F);
Base23.setTextureSize(128, 64);
Base23.mirror = true;
setRotation(Base23, 0.7853982F, 0F, 0F);
Base24 = new ModelRenderer(this, 96, 50);
Base24.addBox(0F, 0F, 0F, 1, 1, 1);
Base24.setRotationPoint(-6.5F, 20.5F, 4.8F);
Base24.setTextureSize(128, 64);
Base24.mirror = true;
setRotation(Base24, 0.7853982F, 0F, 0F);
Base25 = new ModelRenderer(this, 96, 47);
Base25.addBox(0F, 0F, 0F, 1, 1, 1);
Base25.setRotationPoint(-6.5F, 20.5F, -4.2F);
Base25.setTextureSize(128, 64);
Base25.mirror = true;
setRotation(Base25, 0.7853982F, 0F, 0F);
Base26 = new ModelRenderer(this, 101, 50);
Base26.addBox(0F, 0F, 0F, 1, 1, 1);
Base26.setRotationPoint(5.5F, 23F, 0.5F);
Base26.setTextureSize(128, 64);
Base26.mirror = true;
setRotation(Base26, 0.7853982F, 0F, 0F);
Base27 = new ModelRenderer(this, 101, 47);
Base27.addBox(0F, 0F, 0F, 1, 1, 1);
Base27.setRotationPoint(5.5F, 18F, 0.5F);
Base27.setTextureSize(128, 64);
Base27.mirror = true;
setRotation(Base27, 0.7853982F, 0F, 0F);
Base28 = new ModelRenderer(this, 52, 44);
Base28.addBox(0F, 0F, 0F, 1, 1, 1);
Base28.setRotationPoint(5.5F, 20.5F, -4.2F);
Base28.setTextureSize(128, 64);
Base28.mirror = true;
setRotation(Base28, 0.7853982F, 0F, 0F);
Base29 = new ModelRenderer(this, 52, 41);
Base29.addBox(0F, 0F, 0F, 1, 1, 1);
Base29.setRotationPoint(5.5F, 20.5F, 4.8F);
Base29.setTextureSize(128, 64);
Base29.mirror = true;
setRotation(Base29, 0.7853982F, 0F, 0F);
Lid1 = new ModelRenderer(this, 99, 1);
Lid1.addBox(-6.5F, -1F, -1F, 13, 1, 1);
Lid1.setRotationPoint(0F, 17F, 6.5F);
Lid1.setTextureSize(128, 64);
Lid1.mirror = true;
setRotation(Lid1, 0F, 0F, 0F);
Lid2 = new ModelRenderer(this, 97, 4);
Lid2.addBox(-6.5F, -0.3F, -2.9F, 13, 1, 2);
Lid2.setRotationPoint(0F, 17F, 6.5F);
Lid2.setTextureSize(128, 64);
Lid2.mirror = true;
setRotation(Lid2, -1.281629F, 0F, 0F);
Lid3 = new ModelRenderer(this, 97, 8);
Lid3.addBox(-6.5F, -1.8F, -4.3F, 13, 1, 2);
Lid3.setRotationPoint(0F, 17F, 6.5F);
Lid3.setTextureSize(128, 64);
Lid3.mirror = true;
setRotation(Lid3, -0.7063936F, 0F, 0F);
Lid4 = new ModelRenderer(this, 70, 1);
Lid4.addBox(-6.5F, -1F, -11F, 13, 1, 1);
Lid4.setRotationPoint(0F, 17F, 6.5F);
Lid4.setTextureSize(128, 64);
Lid4.mirror = true;
setRotation(Lid4, 0F, 0F, 0F);
Lid5 = new ModelRenderer(this, 66, 4);
Lid5.addBox(-6.5F, -10.8F, -2.3F, 13, 1, 2);
Lid5.setRotationPoint(0F, 17F, 6.5F);
Lid5.setTextureSize(128, 64);
Lid5.mirror = true;
setRotation(Lid5, 1.28163F, 0F, 0F);
Lid6 = new ModelRenderer(this, 66, 8);
Lid6.addBox(-6.5F, -8.9F, -6.1F, 13, 1, 2);
Lid6.setRotationPoint(0F, 17F, 6.5F);
Lid6.setTextureSize(128, 64);
Lid6.mirror = true;
setRotation(Lid6, 0.7063871F, 0F, 0F);
Lid7 = new ModelRenderer(this, 95, 12);
Lid7.addBox(-6.5F, -4.9F, -7F, 13, 1, 3);
Lid7.setRotationPoint(0F, 17F, 6.5F);
Lid7.setTextureSize(128, 64);
Lid7.mirror = true;
setRotation(Lid7, 0F, 0F, 0F);
Lid8 = new ModelRenderer(this, 64, 12);
Lid8.addBox(-6.5F, -7.1F, -6.8F, 13, 1, 2);
Lid8.setRotationPoint(0F, 17F, 6.5F);
Lid8.setTextureSize(128, 64);
Lid8.mirror = true;
setRotation(Lid8, 0.3717796F, 0F, 0F);
Lid9 = new ModelRenderer(this, 97, 17);
Lid9.addBox(-6.5F, -3.1F, -5.5F, 13, 1, 2);
Lid9.setRotationPoint(0F, 17F, 6.5F);
Lid9.setTextureSize(128, 64);
Lid9.mirror = true;
setRotation(Lid9, -0.3717726F, 0F, 0F);
Lid10 = new ModelRenderer(this, 83, 21);
Lid10.addBox(-6.5F, -1F, -10F, 13, 1, 9);
Lid10.setRotationPoint(0F, 17F, 6.5F);
Lid10.setTextureSize(128, 64);
Lid10.mirror = true;
setRotation(Lid10, 0F, 0F, 0F);
Lid11 = new ModelRenderer(this, 45, 0);
Lid11.addBox(-6F, -2F, -10F, 1, 1, 9);
Lid11.setRotationPoint(0F, 17F, 6.5F);
Lid11.setTextureSize(128, 64);
Lid11.mirror = true;
setRotation(Lid11, 0F, 0F, 0F);
Lid12 = new ModelRenderer(this, 24, 0);
Lid12.addBox(-6F, -3F, -10F, 1, 1, 9);
Lid12.setRotationPoint(0F, 17F, 6.5F);
Lid12.setTextureSize(128, 64);
Lid12.mirror = true;
setRotation(Lid12, 0F, 0F, 0F);
Lid13 = new ModelRenderer(this, 47, 11);
Lid13.addBox(-6F, -4F, -9F, 1, 1, 7);
Lid13.setRotationPoint(0F, 17F, 6.5F);
Lid13.setTextureSize(128, 64);
Lid13.mirror = true;
setRotation(Lid13, 0F, 0F, 0F);
Lid14 = new ModelRenderer(this, 24, 11);
Lid14.addBox(5F, -2F, -10F, 1, 1, 9);
Lid14.setRotationPoint(0F, 17F, 6.5F);
Lid14.setTextureSize(128, 64);
Lid14.mirror = true;
setRotation(Lid14, 0F, 0F, 0F);
Lid15 = new ModelRenderer(this, 107, 32);
Lid15.addBox(5F, -3F, -10F, 1, 1, 9);
Lid15.setRotationPoint(0F, 17F, 6.5F);
Lid15.setTextureSize(128, 64);
Lid15.mirror = true;
setRotation(Lid15, 0F, 0F, 0F);
Lid16 = new ModelRenderer(this, 7, 0);
Lid16.addBox(5F, -4F, -9F, 1, 1, 7);
Lid16.setRotationPoint(0F, 17F, 6.5F);
Lid16.setTextureSize(128, 64);
Lid16.mirror = true;
setRotation(Lid16, 0F, 0F, 0F);
Lid17 = new ModelRenderer(this, 19, 9);
Lid17.addBox(5.5F, -4F, -2F, 1, 1, 1);
Lid17.setRotationPoint(0F, 17F, 6.5F);
Lid17.setTextureSize(128, 64);
Lid17.mirror = true;
setRotation(Lid17, 0.2617994F, 0F, 0F);
Lid18 = new ModelRenderer(this, 14, 9);
Lid18.addBox(5.5F, -1.4F, -9.5F, 1, 1, 1);
Lid18.setRotationPoint(0F, 17F, 6.5F);
Lid18.setTextureSize(128, 64);
Lid18.mirror = true;
setRotation(Lid18, -0.2617994F, 0F, 0F);
Lid19 = new ModelRenderer(this, 9, 9);
Lid19.addBox(-6.5F, -4F, -2F, 1, 1, 1);
Lid19.setRotationPoint(0F, 17F, 6.5F);
Lid19.setTextureSize(128, 64);
Lid19.mirror = true;
setRotation(Lid19, 0.2617994F, 0F, 0F);
Lid20 = new ModelRenderer(this, 4, 9);
Lid20.addBox(-6.5F, -1.4F, -9.5F, 1, 1, 1);
Lid20.setRotationPoint(0F, 17F, 6.5F);
Lid20.setTextureSize(128, 64);
Lid20.mirror = true;
setRotation(Lid20, -0.2617994F, 0F, 0F);
}
public void render(Entity entity, float f, float f1, float f2, float f3, float f4, float f5)
{
/*if(Lid1.rotateAngleX <= 180){
rotatePos(0.1F);
}else{
rotateNeg(0.1F);
}*/
super.render(entity, f, f1, f2, f3, f4, f5);
setRotationAngles(f, f1, f2, f3, f4, f5, entity);
Base1.render(f5);
Base2.render(f5);
Base3.render(f5);
Base4.render(f5);
Base5.render(f5);
Base6.render(f5);
Base7.render(f5);
Base8.render(f5);
Base9.render(f5);
Base10.render(f5);
Base11.render(f5);
Base12.render(f5);
Base13.render(f5);
Base14.render(f5);
Base15.render(f5);
Base16.render(f5);
Base17.render(f5);
Base18.render(f5);
Base19.render(f5);
Base20.render(f5);
Base21.render(f5);
Base22.render(f5);
Base23.render(f5);
Base24.render(f5);
Base25.render(f5);
Base26.render(f5);
Base27.render(f5);
Base28.render(f5);
Base29.render(f5);
Lid1.render(f5);
Lid2.render(f5);
Lid3.render(f5);
Lid4.render(f5);
Lid5.render(f5);
Lid6.render(f5);
Lid7.render(f5);
Lid8.render(f5);
Lid9.render(f5);
Lid10.render(f5);
Lid11.render(f5);
Lid12.render(f5);
Lid13.render(f5);
Lid14.render(f5);
Lid15.render(f5);
Lid16.render(f5);
Lid17.render(f5);
Lid18.render(f5);
Lid19.render(f5);
Lid20.render(f5);
}
private void setRotation(ModelRenderer model, float x, float y, float z)
{
model.rotateAngleX = x;
model.rotateAngleY = y;
model.rotateAngleZ = z;
}
public void setRotationAngles(float f, float f1, float f2, float f3, float f4, float f5, Entity ent)
{
super.setRotationAngles(f, f1, f2, f3, f4, f5, ent);
}
public void rotatePos(float inc){
Lid1.rotateAngleX += inc;
Lid2.rotateAngleX += inc;
Lid3.rotateAngleX += inc;
Lid4.rotateAngleX += inc;
Lid5.rotateAngleX += inc;
Lid6.rotateAngleX += inc;
Lid7.rotateAngleX += inc;
Lid8.rotateAngleX += inc;
Lid9.rotateAngleX += inc;
Lid10.rotateAngleX += inc;
Lid11.rotateAngleX += inc;
Lid12.rotateAngleX += inc;
Lid13.rotateAngleX += inc;
Lid14.rotateAngleX += inc;
Lid15.rotateAngleX += inc;
Lid16.rotateAngleX += inc;
Lid17.rotateAngleX += inc;
Lid18.rotateAngleX += inc;
Lid19.rotateAngleX += inc;
Lid20.rotateAngleX += inc;
}
public void rotateNeg(float inc){
Lid1.rotateAngleX -= inc;
Lid2.rotateAngleX -= inc;
Lid3.rotateAngleX -= inc;
Lid4.rotateAngleX -= inc;
Lid5.rotateAngleX -= inc;
Lid6.rotateAngleX -= inc;
Lid7.rotateAngleX -= inc;
Lid8.rotateAngleX -= inc;
Lid9.rotateAngleX -= inc;
Lid10.rotateAngleX -= inc;
Lid11.rotateAngleX -= inc;
Lid12.rotateAngleX -= inc;
Lid13.rotateAngleX -= inc;
Lid14.rotateAngleX -= inc;
Lid15.rotateAngleX -= inc;
Lid16.rotateAngleX -= inc;
Lid17.rotateAngleX -= inc;
Lid18.rotateAngleX -= inc;
Lid19.rotateAngleX -= inc;
Lid20.rotateAngleX -= inc;
}
}