Mekanism-tilera-Edition/common/mekanism/client/model/ModelAtomicDisassembler.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

165 lines
4.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 ModelAtomicDisassembler extends ModelBase
{
ModelRenderer Shape1;
ModelRenderer Shape2;
ModelRenderer Shape5;
ModelRenderer Shape6;
ModelRenderer Shape7;
ModelRenderer Shape9;
ModelRenderer Shape16;
ModelRenderer Shape10;
ModelRenderer Shape3;
ModelRenderer Shape11;
ModelRenderer Shape4;
ModelRenderer Shape12;
ModelRenderer Shape13;
ModelRenderer Shape14;
ModelRenderer Shape15;
ModelRenderer Shape8;
public ModelAtomicDisassembler()
{
textureWidth = 64;
textureHeight = 32;
Shape1 = new ModelRenderer(this, 0, 10);
Shape1.addBox(0F, -1F, -3F, 1, 16, 1);
Shape1.setRotationPoint(0F, 0F, 0F);
Shape1.setTextureSize(64, 32);
Shape1.mirror = true;
setRotation(Shape1, 0F, 0F, 0F);
Shape2 = new ModelRenderer(this, 34, 9);
Shape2.addBox(-0.5F, -3.5F, -3.5F, 2, 5, 2);
Shape2.setRotationPoint(0F, 0F, 0F);
Shape2.setTextureSize(64, 32);
Shape2.mirror = true;
setRotation(Shape2, 0F, 0F, 0F);
Shape5 = new ModelRenderer(this, 42, 0);
Shape5.addBox(0F, -4F, -4F, 1, 2, 10);
Shape5.setRotationPoint(0F, 0F, 0F);
Shape5.setTextureSize(64, 32);
Shape5.mirror = true;
setRotation(Shape5, 0F, 0F, 0F);
Shape6 = new ModelRenderer(this, 24, 0);
Shape6.addBox(-5F, -5.7F, -5.5F, 3, 3, 6);
Shape6.setRotationPoint(0F, 0F, 0F);
Shape6.setTextureSize(64, 32);
Shape6.mirror = true;
setRotation(Shape6, 0F, 0F, 0.7853982F);
Shape7 = new ModelRenderer(this, 0, 0);
Shape7.addBox(-0.5F, -6F, -7F, 2, 2, 8);
Shape7.setRotationPoint(0F, 0F, 0F);
Shape7.setTextureSize(64, 32);
Shape7.mirror = true;
setRotation(Shape7, 0F, 0F, 0F);
Shape9 = new ModelRenderer(this, 60, 0);
Shape9.addBox(0F, -0.5333334F, -9.6F, 1, 3, 1);
Shape9.setRotationPoint(0F, 0F, 0F);
Shape9.setTextureSize(64, 32);
Shape9.mirror = true;
setRotation(Shape9, -0.7853982F, 0F, 0F);
Shape16 = new ModelRenderer(this, 58, 0);
Shape16.addBox(0F, -9.58F, -4F, 1, 5, 2);
Shape16.setRotationPoint(0F, 0F, 0F);
Shape16.setTextureSize(64, 32);
Shape16.mirror = true;
setRotation(Shape16, 0.7853982F, 0F, 0F);
Shape10 = new ModelRenderer(this, 12, 0);
Shape10.addBox(-0.5F, -8.2F, -2.5F, 2, 1, 1);
Shape10.setRotationPoint(0F, 0F, 0F);
Shape10.setTextureSize(64, 32);
Shape10.mirror = true;
setRotation(Shape10, 0.7853982F, 0F, 0F);
Shape3 = new ModelRenderer(this, 56, 0);
Shape3.addBox(0F, -2.44F, -6.07F, 1, 2, 3);
Shape3.setRotationPoint(0F, 0F, 0F);
Shape3.setTextureSize(64, 32);
Shape3.mirror = true;
setRotation(Shape3, 0F, 0F, 0F);
Shape11 = new ModelRenderer(this, 42, 14);
Shape11.addBox(-0.5F, -0.5F, 3.5F, 2, 1, 1);
Shape11.setRotationPoint(0F, -4F, 0F);
Shape11.setTextureSize(64, 32);
Shape11.mirror = true;
setRotation(Shape11, 0F, 0F, 0F);
Shape4 = new ModelRenderer(this, 30, 16);
Shape4.addBox(-0.5F, -3.5F, -1.5F, 2, 1, 4);
Shape4.setRotationPoint(0F, 0F, 0F);
Shape4.setTextureSize(64, 32);
Shape4.mirror = true;
setRotation(Shape4, 0F, 0F, 0F);
Shape12 = new ModelRenderer(this, 42, 12);
Shape12.addBox(-0.5F, -4.5F, 1.5F, 2, 1, 1);
Shape12.setRotationPoint(0F, 0F, 0F);
Shape12.setTextureSize(64, 32);
Shape12.mirror = true;
setRotation(Shape12, 0F, 0F, 0F);
Shape13 = new ModelRenderer(this, 4, 10);
Shape13.addBox(0F, -5.3F, 0F, 1, 1, 7);
Shape13.setRotationPoint(0F, 0F, 0F);
Shape13.setTextureSize(64, 32);
Shape13.mirror = true;
setRotation(Shape13, 0F, 0F, 0F);
Shape14 = new ModelRenderer(this, 60, 0);
Shape14.addBox(0F, -4F, 6F, 1, 1, 1);
Shape14.setRotationPoint(0F, 0F, 0F);
Shape14.setTextureSize(64, 32);
Shape14.mirror = true;
setRotation(Shape14, 0F, 0F, 0F);
Shape15 = new ModelRenderer(this, 26, 9);
Shape15.addBox(-0.5F, 15F, -3.5F, 2, 4, 2);
Shape15.setRotationPoint(0F, 0F, 0F);
Shape15.setTextureSize(64, 32);
Shape15.mirror = true;
setRotation(Shape15, 0F, 0F, 0F);
Shape8 = new ModelRenderer(this, 37, 0);
Shape8.addBox(0F, -2F, -2F, 1, 4, 1);
Shape8.setRotationPoint(0F, 0F, 0F);
Shape8.setTextureSize(64, 32);
Shape8.mirror = true;
setRotation(Shape8, 0F, 0F, 0F);
}
public void render(float size)
{
GL11.glPushMatrix();
MekanismRenderer.glowOn();
Shape3.render(size);
Shape5.render(size);
Shape9.render(size);
Shape16.render(size);
Shape14.render(size);
MekanismRenderer.glowOff();
GL11.glPopMatrix();
Shape1.render(size);
Shape2.render(size);
Shape6.render(size);
Shape7.render(size);
Shape13.render(size);
Shape10.render(size);
Shape11.render(size);
Shape4.render(size);
Shape12.render(size);
Shape15.render(size);
Shape8.render(size);
}
private void setRotation(ModelRenderer model, float x, float y, float z)
{
model.rotateAngleX = x;
model.rotateAngleY = y;
model.rotateAngleZ = z;
}
}