package com.foserosx.realcraft.blocks.machines.blastfurnace;
import net.minecraft.client.model.ModelBase;
import net.minecraft.client.model.ModelRenderer;
import net.minecraft.entity.Entity;
public class ModelBlastFurnace extends ModelBase {
//fields
ModelRenderer foundationlayer1;
ModelRenderer foundationlayer2;
ModelRenderer metaloutput;
ModelRenderer otheroutput;
ModelRenderer shaft1;
ModelRenderer shaft2;
ModelRenderer shaft3;
ModelRenderer input;
ModelRenderer shaft4;
ModelRenderer gasoutput;
public ModelBlastFurnace() {
textureWidth = 128;
textureHeight = 128;
foundationlayer1 = new ModelRenderer(this, 0, 0);
foundationlayer1.addBox(0F, -1.999512E-13F, 0F, 14, 2, 14);
foundationlayer1.setRotationPoint(-7F, 22F, -7F);
foundationlayer1.setTextureSize(128, 128);
foundationlayer1.mirror = true;
setRotation(foundationlayer1, 0F, 0F, 0F);
foundationlayer2 = new ModelRenderer(this, 56, 0);
foundationlayer2.addBox(0F, 0F, 0F, 10, 6, 10);
foundationlayer2.setRotationPoint(-5F, 16F, -5F);
foundationlayer2.setTextureSize(128, 128);
foundationlayer2.mirror = true;
setRotation(foundationlayer2, 0F, 0F, 0F);
metaloutput = new ModelRenderer(this, 0, 16);
metaloutput.addBox(0F, 0F, 0F, 6, 6, 3);
metaloutput.setRotationPoint(-3F, 13F, 5F);
metaloutput.setTextureSize(128, 128);
metaloutput.mirror = true;
setRotation(metaloutput, 0F, 0F, 0F);
otheroutput = new ModelRenderer(this, 0, 16);
otheroutput.addBox(0F, 0F, 0F, 6, 6, 3);
otheroutput.setRotationPoint(-3F, 13F, -8F);
otheroutput.setTextureSize(128, 128);
otheroutput.mirror = true;
setRotation(otheroutput, 0F, 0F, 0F);
shaft1 = new ModelRenderer(this, 18, 16);
shaft1.addBox(0F, 0F, 0F, 14, 9, 14);
shaft1.setRotationPoint(-7F, 7F, -7F);
shaft1.setTextureSize(128, 128);
shaft1.mirror = true;
setRotation(shaft1, 0F, 0F, 0F);
shaft2 = new ModelRenderer(this, 18, 39);
shaft2.addBox(0F, 0F, 0F, 12, 4, 12);
shaft2.setRotationPoint(-6F, 3F, -6F);
shaft2.setTextureSize(128, 128);
shaft2.mirror = true;
setRotation(shaft2, 0F, 0F, 0F);
shaft3 = new ModelRenderer(this, 18, 55);
shaft3.addBox(0F, 0F, 0F, 10, 4, 10);
shaft3.setRotationPoint(-5F, -1F, -5F);
shaft3.setTextureSize(128, 128);
shaft3.mirror = true;
setRotation(shaft3, 0F, 0F, 0F);
input = new ModelRenderer(this, 96, 0);
input.addBox(0F, 0F, 0F, 6, 3, 6);
input.setRotationPoint(-3F, -8F, -3F);
input.setTextureSize(128, 128);
input.mirror = true;
setRotation(input, 0F, 0F, 0F);
shaft4 = new ModelRenderer(this, 18, 69);
shaft4.addBox(-4F, 0F, 0F, 8, 4, 8);
shaft4.setRotationPoint(0F, -5F, -4F);
shaft4.setTextureSize(128, 128);
shaft4.mirror = true;
setRotation(shaft4, 0F, 0F, 0F);
gasoutput = new ModelRenderer(this, 0, 25);
gasoutput.addBox(0F, 0F, 0F, 4, 4, 4);
gasoutput.setRotationPoint(-2F, -2F, 4F);
gasoutput.setTextureSize(128, 128);
gasoutput.mirror = true;
setRotation(gasoutput, 0F, 0F, 0F);
}
public void render(Entity entity, float f, float f1, float f2, float f3, float f4, float f5) {
super.render(entity, f, f1, f2, f3, f4, f5);
setRotationAngles(f, f1, f2, f3, f4, f5);
foundationlayer1.render(f5);
foundationlayer2.render(f5);
metaloutput.render(f5);
otheroutput.render(f5);
shaft1.render(f5);
shaft2.render(f5);
shaft3.render(f5);
input.render(f5);
shaft4.render(f5);
gasoutput.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) {
super.setRotationAngles(f, f1, f2, f3, f4, f5);
}
}