Mekanism-tilera-Edition/common/mekanism/client/model/ModelArmoredJetpack.java
Victor Robertson e5a6eadc45 Fix indentation and remove trailing whitespace
This patch provides common/mekanism/*.java with standardized
indentation (tabs) and also removes trailing whitespace.
2014-03-07 19:20:35 -06:00

288 lines
9.9 KiB
Java

package mekanism.client.model;
import org.lwjgl.opengl.GL11;
import mekanism.client.render.MekanismRenderer;
import net.minecraft.client.model.ModelBase;
import net.minecraft.client.model.ModelRenderer;
import net.minecraft.entity.Entity;
public class ModelArmoredJetpack extends ModelBase
{
ModelRenderer Packtop;
ModelRenderer Packbottom;
ModelRenderer Thrusterleft;
ModelRenderer Thrusterright;
ModelRenderer Fueltuberight;
ModelRenderer Fueltubeleft;
ModelRenderer Packmid;
ModelRenderer Packcore;
ModelRenderer WingsupportL;
ModelRenderer WingsupportR;
ModelRenderer Packtoprear;
ModelRenderer ExtendosupportL;
ModelRenderer ExtendosupportR;
ModelRenderer WingbladeL;
ModelRenderer WingbladeR;
ModelRenderer Packdoodad2;
ModelRenderer Packdoodad3;
ModelRenderer Bottomthruster;
ModelRenderer light1;
ModelRenderer light2;
ModelRenderer light3;
ModelRenderer Chestplate;
ModelRenderer Leftguardtop;
ModelRenderer Rightguardtop;
ModelRenderer middleplate;
ModelRenderer Rightguardbot;
ModelRenderer Leftguardbot;
ModelRenderer Rightlight;
ModelRenderer Leftlight;
public ModelArmoredJetpack()
{
textureWidth = 128;
textureHeight = 64;
Packtop = new ModelRenderer(this, 92, 28);
Packtop.addBox(-4F, 0F, 4F, 8, 4, 1);
Packtop.setRotationPoint(0F, 0F, 0F);
Packtop.setTextureSize(128, 64);
Packtop.mirror = true;
setRotation(Packtop, 0.2094395F, 0F, 0F);
Packbottom = new ModelRenderer(this, 92, 42);
Packbottom.addBox(-4F, 4.1F, 1.5F, 8, 4, 4);
Packbottom.setRotationPoint(0F, 0F, 0F);
Packbottom.setTextureSize(128, 64);
Packbottom.mirror = true;
setRotation(Packbottom, -0.0872665F, 0F, 0F);
Thrusterleft = new ModelRenderer(this, 69, 30);
Thrusterleft.addBox(7.8F, 1.5F, -2.4F, 3, 3, 3);
Thrusterleft.setRotationPoint(0F, 0F, 0F);
Thrusterleft.setTextureSize(128, 64);
Thrusterleft.mirror = true;
setRotation(Thrusterleft, 0.7853982F, -0.715585F, 0.3490659F);
Thrusterright = new ModelRenderer(this, 69, 30);
Thrusterright.addBox(-10.8F, 1.5F, -2.4F, 3, 3, 3);
Thrusterright.setRotationPoint(0F, 0F, 0F);
Thrusterright.setTextureSize(128, 64);
Thrusterright.mirror = true;
setRotation(Thrusterright, 0.7853982F, 0.715585F, -0.3490659F);
Fueltuberight = new ModelRenderer(this, 92, 23);
Fueltuberight.addBox(-11.2F, 2F, -1.9F, 8, 2, 2);
Fueltuberight.setRotationPoint(0F, 0F, 0F);
Fueltuberight.setTextureSize(128, 64);
Fueltuberight.mirror = true;
setRotation(Fueltuberight, 0.7853982F, 0.715585F, -0.3490659F);
Fueltubeleft = new ModelRenderer(this, 92, 23);
Fueltubeleft.addBox(3.2F, 2F, -1.9F, 8, 2, 2);
Fueltubeleft.setRotationPoint(0F, 0F, 0F);
Fueltubeleft.setTextureSize(128, 64);
Fueltubeleft.mirror = true;
setRotation(Fueltubeleft, 0.7853982F, -0.715585F, 0.3490659F);
Packmid = new ModelRenderer(this, 92, 34);
Packmid.addBox(-4F, 3.3F, 1.5F, 8, 1, 4);
Packmid.setRotationPoint(0F, 0F, 0F);
Packmid.setTextureSize(128, 64);
Packmid.mirror = true;
setRotation(Packmid, 0F, 0F, 0F);
Packcore = new ModelRenderer(this, 69, 2);
Packcore.addBox(-3.5F, 3F, 2F, 7, 1, 3);
Packcore.setRotationPoint(0F, 0F, 0F);
Packcore.setTextureSize(128, 64);
Packcore.mirror = true;
setRotation(Packcore, 0F, 0F, 0F);
WingsupportL = new ModelRenderer(this, 71, 55);
WingsupportL.addBox(3F, -1F, 2.2F, 7, 2, 2);
WingsupportL.setRotationPoint(0F, 0F, 0F);
WingsupportL.setTextureSize(128, 64);
WingsupportL.mirror = true;
setRotation(WingsupportL, 0F, 0F, 0.2792527F);
WingsupportR = new ModelRenderer(this, 71, 55);
WingsupportR.addBox(-10F, -1F, 2.2F, 7, 2, 2);
WingsupportR.setRotationPoint(0F, 0F, 0F);
WingsupportR.setTextureSize(128, 64);
WingsupportR.mirror = true;
setRotation(WingsupportR, 0F, 0F, -0.2792527F);
Packtoprear = new ModelRenderer(this, 106, 28);
Packtoprear.addBox(-4F, 1F, 1F, 8, 3, 3);
Packtoprear.setRotationPoint(0F, 0F, 0F);
Packtoprear.setTextureSize(128, 64);
Packtoprear.mirror = true;
setRotation(Packtoprear, 0.2094395F, 0F, 0F);
ExtendosupportL = new ModelRenderer(this, 94, 16);
ExtendosupportL.addBox(8F, -0.2F, 2.5F, 9, 1, 1);
ExtendosupportL.setRotationPoint(0F, 0F, 0F);
ExtendosupportL.setTextureSize(128, 64);
ExtendosupportL.mirror = true;
setRotation(ExtendosupportL, 0F, 0F, 0.2792527F);
ExtendosupportR = new ModelRenderer(this, 94, 16);
ExtendosupportR.addBox(-17F, -0.2F, 2.5F, 9, 1, 1);
ExtendosupportR.setRotationPoint(0F, 0F, 0F);
ExtendosupportR.setTextureSize(128, 64);
ExtendosupportR.mirror = true;
setRotation(ExtendosupportR, 0F, 0F, -0.2792527F);
WingbladeL = new ModelRenderer(this, 62, 5);
WingbladeL.addBox(3.3F, 1.1F, 3F, 14, 2, 0);
WingbladeL.setRotationPoint(0F, 0F, 0F);
WingbladeL.setTextureSize(128, 64);
WingbladeL.mirror = true;
setRotation(WingbladeL, 0F, 0F, 0.2094395F);
WingbladeR = new ModelRenderer(this, 62, 5);
WingbladeR.addBox(-17.3F, 1.1F, 3F, 14, 2, 0);
WingbladeR.setRotationPoint(0F, 0F, 0F);
WingbladeR.setTextureSize(128, 64);
WingbladeR.mirror = true;
setRotation(WingbladeR, 0F, 0F, -0.2094395F);
Packdoodad2 = new ModelRenderer(this, 116, 0);
Packdoodad2.addBox(1F, 0.5F, 4.2F, 2, 1, 1);
Packdoodad2.setRotationPoint(0F, 0F, 0F);
Packdoodad2.setTextureSize(128, 64);
Packdoodad2.mirror = true;
setRotation(Packdoodad2, 0.2094395F, 0F, 0F);
Packdoodad3 = new ModelRenderer(this, 116, 0);
Packdoodad3.addBox(1F, 2F, 4.2F, 2, 1, 1);
Packdoodad3.setRotationPoint(0F, 0F, 0F);
Packdoodad3.setTextureSize(128, 64);
Packdoodad3.mirror = true;
setRotation(Packdoodad3, 0.2094395F, 0F, 0F);
Bottomthruster = new ModelRenderer(this, 68, 26);
Bottomthruster.addBox(-3F, 8F, 2.333333F, 6, 1, 2);
Bottomthruster.setRotationPoint(0F, 0F, 0F);
Bottomthruster.setTextureSize(128, 64);
Bottomthruster.mirror = true;
setRotation(Bottomthruster, 0F, 0F, 0F);
light1 = new ModelRenderer(this, 55, 2);
light1.addBox(2F, 6.55F, 4F, 1, 1, 1);
light1.setRotationPoint(0F, 0F, 0F);
light1.setTextureSize(128, 64);
light1.mirror = true;
setRotation(light1, 0F, 0F, 0F);
light2 = new ModelRenderer(this, 55, 2);
light2.addBox(0F, 6.55F, 4F, 1, 1, 1);
light2.setRotationPoint(0F, 0F, 0F);
light2.setTextureSize(128, 64);
light2.mirror = true;
setRotation(light2, 0F, 0F, 0F);
light3 = new ModelRenderer(this, 55, 2);
light3.addBox(-3F, 6.55F, 4F, 1, 1, 1);
light3.setRotationPoint(0F, 0F, 0F);
light3.setTextureSize(128, 64);
light3.mirror = true;
setRotation(light3, 0F, 0F, 0F);
Chestplate = new ModelRenderer(this, 104, 22);
Chestplate.addBox(-4F, 1.333333F, -3F, 8, 4, 3);
Chestplate.setRotationPoint(0F, 0F, 0F);
Chestplate.setTextureSize(128, 64);
Chestplate.mirror = true;
setRotation(Chestplate, -0.3665191F, 0F, 0F);
Leftguardtop = new ModelRenderer(this, 87, 31);
Leftguardtop.addBox(0.95F, 3F, -5F, 3, 4, 2);
Leftguardtop.setRotationPoint(0F, 0F, 0F);
Leftguardtop.setTextureSize(128, 64);
Leftguardtop.mirror = true;
setRotation(Leftguardtop, 0.2094395F, 0F, 0F);
Leftguardtop.mirror = false;
Rightguardtop = new ModelRenderer(this, 87, 31);
Rightguardtop.addBox(-3.95F, 3F, -5F, 3, 4, 2);
Rightguardtop.setRotationPoint(0F, 0F, 0F);
Rightguardtop.setTextureSize(128, 64);
Rightguardtop.mirror = true;
setRotation(Rightguardtop, 0.2094395F, 0F, 0F);
middleplate = new ModelRenderer(this, 93, 20);
middleplate.addBox(-1.5F, 3F, -6.2F, 3, 5, 3);
middleplate.setRotationPoint(0F, 0F, 0F);
middleplate.setTextureSize(128, 64);
middleplate.mirror = true;
setRotation(middleplate, 0.2094395F, 0F, 0F);
middleplate.mirror = false;
Rightguardbot = new ModelRenderer(this, 84, 30);
Rightguardbot.addBox(-3.5F, 5.5F, -6.5F, 2, 2, 2);
Rightguardbot.setRotationPoint(0F, 0F, 0F);
Rightguardbot.setTextureSize(128, 64);
Rightguardbot.mirror = true;
setRotation(Rightguardbot, 0.4712389F, 0F, 0F);
Rightguardbot.mirror = false;
Leftguardbot = new ModelRenderer(this, 84, 30);
Leftguardbot.addBox(1.5F, 5.5F, -6.5F, 2, 2, 2);
Leftguardbot.setRotationPoint(0F, 0F, 0F);
Leftguardbot.setTextureSize(128, 64);
Leftguardbot.mirror = true;
setRotation(Leftguardbot, 0.4712389F, 0F, 0F);
Rightlight = new ModelRenderer(this, 81, 0);
Rightlight.addBox(-3F, 4F, -4.5F, 1, 3, 1);
Rightlight.setRotationPoint(0F, 0F, 0F);
Rightlight.setTextureSize(128, 64);
Rightlight.mirror = true;
setRotation(Rightlight, 0F, 0F, 0F);
Leftlight = new ModelRenderer(this, 81, 0);
Leftlight.addBox(2F, 4F, -4.5F, 1, 3, 1);
Leftlight.setRotationPoint(0F, 0F, 0F);
Leftlight.setTextureSize(128, 64);
Leftlight.mirror = true;
setRotation(Leftlight, 0F, 0F, 0F);
}
public void render(float size)
{
Packtop.render(size);
Packbottom.render(size);
Thrusterleft.render(size);
Thrusterright.render(size);
Fueltuberight.render(size);
Fueltubeleft.render(size);
Packmid.render(size);
WingsupportL.render(size);
WingsupportR.render(size);
Packtoprear.render(size);
ExtendosupportL.render(size);
ExtendosupportR.render(size);
Packdoodad2.render(size);
Packdoodad3.render(size);
Bottomthruster.render(size);
GL11.glPushMatrix();
MekanismRenderer.blendOn();
MekanismRenderer.glowOn();
GL11.glEnable(GL11.GL_CULL_FACE);
GL11.glColor4f(1, 1, 1, 0.2F);
WingbladeL.render(size);
WingbladeR.render(size);
GL11.glColor4f(1, 1, 1, 1);
GL11.glDisable(GL11.GL_CULL_FACE);
MekanismRenderer.glowOff();
MekanismRenderer.blendOff();
GL11.glPopMatrix();
MekanismRenderer.glowOn();
light1.render(size);
light2.render(size);
light3.render(size);
Packcore.render(size);
GL11.glPushMatrix();
GL11.glTranslatef(0.0F, 0.0F, -0.0625F);
Rightlight.render(size);
Leftlight.render(size);
MekanismRenderer.glowOff();
Chestplate.render(size);
Leftguardtop.render(size);
Rightguardtop.render(size);
middleplate.render(size);
Rightguardbot.render(size);
Leftguardbot.render(size);
GL11.glPopMatrix();
}
private void setRotation(ModelRenderer model, float x, float y, float z)
{
model.rotateAngleX = x;
model.rotateAngleY = y;
model.rotateAngleZ = z;
}
}