atomicscience/src/main/java/atomicscience/muoxing/MLargeTurbine.java
2022-10-21 19:53:56 +02:00

409 lines
18 KiB
Java

package atomicscience.muoxing;
import net.minecraft.client.model.ModelBase;
import net.minecraft.client.model.ModelRenderer;
import org.lwjgl.opengl.GL11;
public class MLargeTurbine extends ModelBase {
ModelRenderer Centeraxle;
ModelRenderer wall1;
ModelRenderer wall2;
ModelRenderer wall6;
ModelRenderer wall5;
ModelRenderer wall3;
ModelRenderer wall4;
ModelRenderer wallunder1;
ModelRenderer wallunder3;
ModelRenderer wallunder2;
ModelRenderer wallunder6;
ModelRenderer wallunder5;
ModelRenderer wallunder4;
ModelRenderer Blade1;
ModelRenderer Blade2;
ModelRenderer Blade3;
ModelRenderer Blade4;
ModelRenderer Blade5;
ModelRenderer Blade6;
ModelRenderer LargeBlade1;
ModelRenderer LargeBlade2;
ModelRenderer LargeBlade3;
ModelRenderer LargeBlade4;
ModelRenderer LargeBlade5;
ModelRenderer LargeBlade6;
ModelRenderer MediumBlade1;
ModelRenderer MediumBlade2;
ModelRenderer MediumBlade3;
ModelRenderer MediumBlade4;
ModelRenderer MediumBlade5;
ModelRenderer MediumBlade6;
ModelRenderer Support1;
ModelRenderer support2;
ModelRenderer support3;
ModelRenderer cornerbottom1;
ModelRenderer corner1;
ModelRenderer corner2;
ModelRenderer cornerbottom2;
ModelRenderer corner6;
ModelRenderer cornerbottom6;
ModelRenderer corner5;
ModelRenderer cornerbottom5;
ModelRenderer corner4;
ModelRenderer cornerbottom4;
ModelRenderer corner3;
ModelRenderer cornerbottom3;
ModelRenderer Topelectricityoutput;
public MLargeTurbine() {
super.textureWidth = 128;
super.textureHeight = 128;
this.Centeraxle = new ModelRenderer(this, 24, 0);
this.Centeraxle.addBox(-1.0F, 0.0F, -1.0F, 2, 16, 2);
this.Centeraxle.setRotationPoint(0.0F, 8.0F, 0.0F);
this.Centeraxle.setTextureSize(128, 128);
this.Centeraxle.mirror = true;
this.setRotation(this.Centeraxle, 0.0F, 0.0F, 0.0F);
this.wall1 = new ModelRenderer(this, 0, 92);
this.wall1.addBox(-12.0F, 0.0F, 20.0F, 24, 12, 1);
this.wall1.setRotationPoint(0.0F, 14.0F, 0.0F);
this.wall1.setTextureSize(128, 128);
this.wall1.mirror = true;
this.setRotation(this.wall1, 0.2094395F, 0.0F, 0.0F);
this.wall2 = new ModelRenderer(this, 0, 92);
this.wall2.addBox(-12.0F, 0.0F, 20.0F, 24, 12, 1);
this.wall2.setRotationPoint(0.0F, 14.0F, 0.0F);
this.wall2.setTextureSize(128, 128);
this.wall2.mirror = true;
this.setRotation(this.wall2, 0.2094395F, 1.047198F, 0.0F);
this.wall6 = new ModelRenderer(this, 0, 92);
this.wall6.addBox(-12.0F, 0.0F, 20.0F, 24, 12, 1);
this.wall6.setRotationPoint(0.0F, 14.0F, 0.0F);
this.wall6.setTextureSize(128, 128);
this.wall6.mirror = true;
this.setRotation(this.wall6, 0.2094395F, -1.047198F, 0.0F);
this.wall5 = new ModelRenderer(this, 0, 92);
this.wall5.addBox(-12.0F, 0.0F, 20.0F, 24, 12, 1);
this.wall5.setRotationPoint(0.0F, 14.0F, 0.0F);
this.wall5.setTextureSize(128, 128);
this.wall5.mirror = true;
this.setRotation(this.wall5, 0.2094395F, -2.094395F, 0.0F);
this.wall3 = new ModelRenderer(this, 0, 92);
this.wall3.addBox(-12.0F, 0.0F, 20.0F, 24, 12, 1);
this.wall3.setRotationPoint(0.0F, 14.0F, 0.0F);
this.wall3.setTextureSize(128, 128);
this.wall3.mirror = true;
this.setRotation(this.wall3, 0.2094395F, 2.094395F, 0.0F);
this.wall4 = new ModelRenderer(this, 0, 92);
this.wall4.addBox(-12.0F, 0.0F, -21.0F, 24, 12, 1);
this.wall4.setRotationPoint(0.0F, 14.0F, 0.0F);
this.wall4.setTextureSize(128, 128);
this.wall4.mirror = true;
this.setRotation(this.wall4, -0.2094395F, 0.0F, 0.0F);
this.wallunder1 = new ModelRenderer(this, 0, 107);
this.wallunder1.addBox(-13.0F, 0.0F, 21.0F, 26, 6, 1);
this.wallunder1.setRotationPoint(0.0F, 18.0F, 0.0F);
this.wallunder1.setTextureSize(128, 128);
this.wallunder1.mirror = true;
this.setRotation(this.wallunder1, 0.0F, 0.0F, 0.0F);
this.wallunder3 = new ModelRenderer(this, 0, 107);
this.wallunder3.addBox(-13.0F, 0.0F, 21.0F, 26, 6, 1);
this.wallunder3.setRotationPoint(0.0F, 18.0F, 0.0F);
this.wallunder3.setTextureSize(128, 128);
this.wallunder3.mirror = true;
this.setRotation(this.wallunder3, 0.0F, 2.094395F, 0.0F);
this.wallunder2 = new ModelRenderer(this, 0, 107);
this.wallunder2.addBox(-13.0F, 0.0F, 21.0F, 26, 6, 1);
this.wallunder2.setRotationPoint(0.0F, 18.0F, 0.0F);
this.wallunder2.setTextureSize(128, 128);
this.wallunder2.mirror = true;
this.setRotation(this.wallunder2, 0.0F, 1.047198F, 0.0F);
this.wallunder6 = new ModelRenderer(this, 0, 107);
this.wallunder6.addBox(-13.0F, 0.0F, 21.0F, 26, 6, 1);
this.wallunder6.setRotationPoint(0.0F, 18.0F, 0.0F);
this.wallunder6.setTextureSize(128, 128);
this.wallunder6.mirror = true;
this.setRotation(this.wallunder6, 0.0F, -1.047198F, 0.0F);
this.wallunder5 = new ModelRenderer(this, 0, 107);
this.wallunder5.addBox(-13.0F, 0.0F, 21.0F, 26, 6, 1);
this.wallunder5.setRotationPoint(0.0F, 18.0F, 0.0F);
this.wallunder5.setTextureSize(128, 128);
this.wallunder5.mirror = true;
this.setRotation(this.wallunder5, 0.0F, -2.094395F, 0.0F);
this.wallunder4 = new ModelRenderer(this, 0, 107);
this.wallunder4.addBox(-13.0F, 0.0F, -22.0F, 26, 6, 1);
this.wallunder4.setRotationPoint(0.0F, 18.0F, 0.0F);
this.wallunder4.setTextureSize(128, 128);
this.wallunder4.mirror = true;
this.setRotation(this.wallunder4, 0.0F, 0.0F, 0.0F);
this.Blade1 = new ModelRenderer(this, 0, 0);
this.Blade1.addBox(-1.0F, 0.0F, -18.0F, 2, 1, 36);
this.Blade1.setRotationPoint(0.0F, 12.0F, 0.0F);
this.Blade1.setTextureSize(128, 128);
this.Blade1.mirror = true;
this.setRotation(this.Blade1, 0.0F, 0.0F, 0.1745329F);
this.Blade2 = new ModelRenderer(this, 0, 0);
this.Blade2.addBox(-1.0F, 0.0F, -18.0F, 2, 1, 36);
this.Blade2.setRotationPoint(0.0F, 12.0F, 0.0F);
this.Blade2.setTextureSize(128, 128);
this.Blade2.mirror = true;
this.setRotation(this.Blade2, 0.0F, 0.5235988F, 0.1745329F);
this.Blade3 = new ModelRenderer(this, 0, 0);
this.Blade3.addBox(-1.0F, 0.0F, -18.0F, 2, 1, 36);
this.Blade3.setRotationPoint(0.0F, 12.0F, 0.0F);
this.Blade3.setTextureSize(128, 128);
this.Blade3.mirror = true;
this.setRotation(this.Blade3, 0.0F, 1.047198F, 0.1745329F);
this.Blade4 = new ModelRenderer(this, 0, 0);
this.Blade4.addBox(-1.0F, 0.0F, -18.0F, 2, 1, 36);
this.Blade4.setRotationPoint(0.0F, 12.0F, 0.0F);
this.Blade4.setTextureSize(128, 128);
this.Blade4.mirror = true;
this.setRotation(this.Blade4, 0.0F, 1.570796F, 0.1745329F);
this.Blade5 = new ModelRenderer(this, 0, 0);
this.Blade5.addBox(-1.0F, 0.0F, -18.0F, 2, 1, 36);
this.Blade5.setRotationPoint(0.0F, 12.0F, 0.0F);
this.Blade5.setTextureSize(128, 128);
this.Blade5.mirror = true;
this.setRotation(this.Blade5, 0.0F, 2.094395F, 0.1745329F);
this.Blade6 = new ModelRenderer(this, 0, 0);
this.Blade6.addBox(-1.0F, 0.0F, -18.0F, 2, 1, 36);
this.Blade6.setRotationPoint(0.0F, 12.0F, 0.0F);
this.Blade6.setTextureSize(128, 128);
this.Blade6.mirror = true;
this.setRotation(this.Blade6, 0.0F, 2.617994F, 0.1745329F);
this.LargeBlade1 = new ModelRenderer(this, 0, 49);
this.LargeBlade1.addBox(-3.0F, 0.0F, -20.0F, 6, 1, 40);
this.LargeBlade1.setRotationPoint(0.0F, 20.0F, 0.0F);
this.LargeBlade1.setTextureSize(128, 128);
this.LargeBlade1.mirror = true;
this.setRotation(this.LargeBlade1, 0.0F, 2.094395F, 0.1745329F);
this.LargeBlade2 = new ModelRenderer(this, 0, 49);
this.LargeBlade2.addBox(-3.0F, 0.0F, -20.0F, 6, 1, 40);
this.LargeBlade2.setRotationPoint(0.0F, 20.0F, 0.0F);
this.LargeBlade2.setTextureSize(128, 128);
this.LargeBlade2.mirror = true;
this.setRotation(this.LargeBlade2, 0.0F, 2.617994F, 0.1745329F);
this.LargeBlade3 = new ModelRenderer(this, 0, 49);
this.LargeBlade3.addBox(-3.0F, 0.0F, -20.0F, 6, 1, 40);
this.LargeBlade3.setRotationPoint(0.0F, 20.0F, 0.0F);
this.LargeBlade3.setTextureSize(128, 128);
this.LargeBlade3.mirror = true;
this.setRotation(this.LargeBlade3, 0.0F, 0.0F, 0.1745329F);
this.LargeBlade4 = new ModelRenderer(this, 0, 49);
this.LargeBlade4.addBox(-3.0F, 0.0F, -20.0F, 6, 1, 40);
this.LargeBlade4.setRotationPoint(0.0F, 20.0F, 0.0F);
this.LargeBlade4.setTextureSize(128, 128);
this.LargeBlade4.mirror = true;
this.setRotation(this.LargeBlade4, 0.0F, 0.5235988F, 0.1745329F);
this.LargeBlade5 = new ModelRenderer(this, 0, 49);
this.LargeBlade5.addBox(-3.0F, 0.0F, -20.0F, 6, 1, 40);
this.LargeBlade5.setRotationPoint(0.0F, 20.0F, 0.0F);
this.LargeBlade5.setTextureSize(128, 128);
this.LargeBlade5.mirror = true;
this.setRotation(this.LargeBlade5, 0.0F, 1.047198F, 0.1745329F);
this.LargeBlade6 = new ModelRenderer(this, 0, 49);
this.LargeBlade6.addBox(-3.0F, 0.0F, -20.0F, 6, 1, 40);
this.LargeBlade6.setRotationPoint(0.0F, 20.0F, 0.0F);
this.LargeBlade6.setTextureSize(128, 128);
this.LargeBlade6.mirror = true;
this.setRotation(this.LargeBlade6, 0.0F, 1.570796F, 0.1745329F);
this.MediumBlade1 = new ModelRenderer(this, 43, 0);
this.MediumBlade1.addBox(-2.0F, 0.0F, -19.0F, 4, 1, 38);
this.MediumBlade1.setRotationPoint(0.0F, 16.0F, 0.0F);
this.MediumBlade1.setTextureSize(128, 128);
this.MediumBlade1.mirror = true;
this.setRotation(this.MediumBlade1, 0.0F, 2.094395F, 0.1745329F);
this.MediumBlade2 = new ModelRenderer(this, 43, 0);
this.MediumBlade2.addBox(-2.0F, 0.0F, -19.0F, 4, 1, 38);
this.MediumBlade2.setRotationPoint(0.0F, 16.0F, 0.0F);
this.MediumBlade2.setTextureSize(128, 128);
this.MediumBlade2.mirror = true;
this.setRotation(this.MediumBlade2, 0.0F, 2.617994F, 0.1745329F);
this.MediumBlade3 = new ModelRenderer(this, 43, 0);
this.MediumBlade3.addBox(-2.0F, 0.0F, -19.0F, 4, 1, 38);
this.MediumBlade3.setRotationPoint(0.0F, 16.0F, 0.0F);
this.MediumBlade3.setTextureSize(128, 128);
this.MediumBlade3.mirror = true;
this.setRotation(this.MediumBlade3, 0.0F, 0.0F, 0.1745329F);
this.MediumBlade4 = new ModelRenderer(this, 43, 0);
this.MediumBlade4.addBox(-2.0F, 0.0F, -19.0F, 4, 1, 38);
this.MediumBlade4.setRotationPoint(0.0F, 16.0F, 0.0F);
this.MediumBlade4.setTextureSize(128, 128);
this.MediumBlade4.mirror = true;
this.setRotation(this.MediumBlade4, 0.0F, 0.5235988F, 0.1745329F);
this.MediumBlade5 = new ModelRenderer(this, 43, 0);
this.MediumBlade5.addBox(-2.0F, 0.0F, -19.0F, 4, 1, 38);
this.MediumBlade5.setRotationPoint(0.0F, 16.0F, 0.0F);
this.MediumBlade5.setTextureSize(128, 128);
this.MediumBlade5.mirror = true;
this.setRotation(this.MediumBlade5, 0.0F, 1.047198F, 0.1745329F);
this.MediumBlade6 = new ModelRenderer(this, 43, 0);
this.MediumBlade6.addBox(-2.0F, 0.0F, -19.0F, 4, 1, 38);
this.MediumBlade6.setRotationPoint(0.0F, 16.0F, 0.0F);
this.MediumBlade6.setTextureSize(128, 128);
this.MediumBlade6.mirror = true;
this.setRotation(this.MediumBlade6, 0.0F, 1.570796F, 0.1745329F);
this.Support1 = new ModelRenderer(this, 0, 0);
this.Support1.addBox(-1.0F, 0.0F, -23.0F, 2, 1, 46);
this.Support1.setRotationPoint(0.0F, 10.0F, 0.0F);
this.Support1.setTextureSize(128, 128);
this.Support1.mirror = true;
this.setRotation(this.Support1, 0.0F, 0.5235988F, 0.0F);
this.support2 = new ModelRenderer(this, 0, 0);
this.support2.addBox(-1.0F, 0.0F, -23.0F, 2, 1, 46);
this.support2.setRotationPoint(0.0F, 10.0F, 0.0F);
this.support2.setTextureSize(128, 128);
this.support2.mirror = true;
this.setRotation(this.support2, 0.0F, 2.617994F, 0.0F);
this.support3 = new ModelRenderer(this, 0, 0);
this.support3.addBox(-1.0F, 0.0F, -23.0F, 2, 1, 46);
this.support3.setRotationPoint(0.0F, 10.0F, 0.0F);
this.support3.setTextureSize(128, 128);
this.support3.mirror = true;
this.setRotation(this.support3, 0.0F, 1.570796F, 0.0F);
this.cornerbottom1 = new ModelRenderer(this, 10, 0);
this.cornerbottom1.addBox(17.0F, 0.0F, 17.0F, 3, 4, 3);
this.cornerbottom1.setRotationPoint(0.0F, 20.0F, 0.0F);
this.cornerbottom1.setTextureSize(128, 128);
this.cornerbottom1.mirror = true;
this.setRotation(this.cornerbottom1, 0.0F, 2.879793F, 0.0F);
this.corner1 = new ModelRenderer(this, 0, 0);
this.corner1.addBox(16.0F, 0.0F, 16.0F, 2, 14, 2);
this.corner1.setRotationPoint(0.0F, 13.0F, 0.0F);
this.corner1.setTextureSize(128, 128);
this.corner1.mirror = true;
this.setRotation(this.corner1, 0.122173F, 2.879793F, -0.1396263F);
this.corner2 = new ModelRenderer(this, 0, 0);
this.corner2.addBox(16.0F, 0.0F, 16.0F, 2, 14, 2);
this.corner2.setRotationPoint(0.0F, 13.0F, 0.0F);
this.corner2.setTextureSize(128, 128);
this.corner2.mirror = true;
this.setRotation(this.corner2, 0.122173F, -2.356194F, -0.1396263F);
this.cornerbottom2 = new ModelRenderer(this, 10, 0);
this.cornerbottom2.addBox(17.0F, 0.0F, 17.0F, 3, 4, 3);
this.cornerbottom2.setRotationPoint(0.0F, 20.0F, 0.0F);
this.cornerbottom2.setTextureSize(128, 128);
this.cornerbottom2.mirror = true;
this.setRotation(this.cornerbottom2, 0.0F, -2.356194F, 0.0F);
this.corner6 = new ModelRenderer(this, 0, 0);
this.corner6.addBox(16.0F, 0.0F, 16.0F, 2, 14, 2);
this.corner6.setRotationPoint(0.0F, 13.0F, 0.0F);
this.corner6.setTextureSize(128, 128);
this.corner6.mirror = true;
this.setRotation(this.corner6, 0.122173F, 1.832596F, -0.1396263F);
this.cornerbottom6 = new ModelRenderer(this, 10, 0);
this.cornerbottom6.addBox(17.0F, 0.0F, 17.0F, 3, 4, 3);
this.cornerbottom6.setRotationPoint(0.0F, 20.0F, 0.0F);
this.cornerbottom6.setTextureSize(128, 128);
this.cornerbottom6.mirror = true;
this.setRotation(this.cornerbottom6, 0.0F, 1.832596F, 0.0F);
this.corner5 = new ModelRenderer(this, 0, 0);
this.corner5.addBox(16.0F, 0.0F, 16.0F, 2, 14, 2);
this.corner5.setRotationPoint(0.0F, 13.0F, 0.0F);
this.corner5.setTextureSize(128, 128);
this.corner5.mirror = true;
this.setRotation(this.corner5, 0.122173F, 0.7853982F, -0.1396263F);
this.cornerbottom5 = new ModelRenderer(this, 10, 0);
this.cornerbottom5.addBox(17.0F, 0.0F, 17.0F, 3, 4, 3);
this.cornerbottom5.setRotationPoint(0.0F, 20.0F, 0.0F);
this.cornerbottom5.setTextureSize(128, 128);
this.cornerbottom5.mirror = true;
this.setRotation(this.cornerbottom5, 0.0F, 0.7853982F, 0.0F);
this.corner4 = new ModelRenderer(this, 0, 0);
this.corner4.addBox(16.0F, 0.0F, 16.0F, 2, 14, 2);
this.corner4.setRotationPoint(0.0F, 13.0F, 0.0F);
this.corner4.setTextureSize(128, 128);
this.corner4.mirror = true;
this.setRotation(this.corner4, 0.122173F, -0.2617994F, -0.1396263F);
this.cornerbottom4 = new ModelRenderer(this, 10, 0);
this.cornerbottom4.addBox(17.0F, 0.0F, 17.0F, 3, 4, 3);
this.cornerbottom4.setRotationPoint(0.0F, 20.0F, 0.0F);
this.cornerbottom4.setTextureSize(128, 128);
this.cornerbottom4.mirror = true;
this.setRotation(this.cornerbottom4, 0.0F, -0.2617994F, 0.0F);
this.corner3 = new ModelRenderer(this, 0, 0);
this.corner3.addBox(16.0F, 0.0F, 16.0F, 2, 14, 2);
this.corner3.setRotationPoint(0.0F, 13.0F, 0.0F);
this.corner3.setTextureSize(128, 128);
this.corner3.mirror = true;
this.setRotation(this.corner3, 0.122173F, -1.308997F, -0.1396263F);
this.cornerbottom3 = new ModelRenderer(this, 10, 0);
this.cornerbottom3.addBox(17.0F, 0.0F, 17.0F, 3, 4, 3);
this.cornerbottom3.setRotationPoint(0.0F, 20.0F, 0.0F);
this.cornerbottom3.setTextureSize(128, 128);
this.cornerbottom3.mirror = true;
this.setRotation(this.cornerbottom3, 0.0F, -1.308997F, 0.0F);
this.Topelectricityoutput = new ModelRenderer(this, 0, 18);
this.Topelectricityoutput.addBox(-3.0F, 0.0F, -3.0F, 6, 2, 6);
this.Topelectricityoutput.setRotationPoint(0.0F, 8.0F, 0.0F);
this.Topelectricityoutput.setTextureSize(128, 128);
this.Topelectricityoutput.mirror = true;
this.setRotation(this.Topelectricityoutput, 0.0F, 0.0F, 0.0F);
}
public void render(float rotation, float f5) {
this.Centeraxle.render(f5);
this.wall1.render(f5);
this.wall2.render(f5);
this.wall6.render(f5);
this.wall5.render(f5);
this.wall3.render(f5);
this.wall4.render(f5);
this.wallunder1.render(f5);
this.wallunder3.render(f5);
this.wallunder2.render(f5);
this.wallunder6.render(f5);
this.wallunder5.render(f5);
this.wallunder4.render(f5);
GL11.glPushMatrix();
GL11.glRotatef(rotation, 0.0F, 1.0F, 0.0F);
this.Blade1.render(f5);
this.Blade2.render(f5);
this.Blade3.render(f5);
this.Blade4.render(f5);
this.Blade5.render(f5);
this.Blade6.render(f5);
GL11.glPopMatrix();
GL11.glPushMatrix();
GL11.glRotatef(-rotation, 0.0F, 1.0F, 0.0F);
this.MediumBlade1.render(f5);
this.MediumBlade2.render(f5);
this.MediumBlade3.render(f5);
this.MediumBlade4.render(f5);
this.MediumBlade5.render(f5);
this.MediumBlade6.render(f5);
GL11.glPopMatrix();
GL11.glPushMatrix();
GL11.glRotatef(rotation, 0.0F, 1.0F, 0.0F);
this.LargeBlade1.render(f5);
this.LargeBlade2.render(f5);
this.LargeBlade3.render(f5);
this.LargeBlade4.render(f5);
this.LargeBlade5.render(f5);
this.LargeBlade6.render(f5);
GL11.glPopMatrix();
this.Support1.render(f5);
this.support2.render(f5);
this.support3.render(f5);
this.cornerbottom1.render(f5);
this.corner1.render(f5);
this.corner2.render(f5);
this.cornerbottom2.render(f5);
this.corner6.render(f5);
this.cornerbottom6.render(f5);
this.corner5.render(f5);
this.cornerbottom5.render(f5);
this.corner4.render(f5);
this.cornerbottom4.render(f5);
this.corner3.render(f5);
this.cornerbottom3.render(f5);
this.Topelectricityoutput.render(f5);
}
private void setRotation(ModelRenderer model, float x, float y, float z) {
model.rotateAngleX = x;
model.rotateAngleY = y;
model.rotateAngleZ = z;
}
}