Files
ForestryMC/forestry_techne/Escritoire.java
T
2014-05-02 21:31:20 +02:00

124 lines
3.8 KiB
Java
Executable File

// Date: 26.05.2013 12:47:37
// Template version 1.1
// Java generated by Techne
// Keep in mind that you still need to fill in some blanks
// - ZeuX
package net.minecraft.src;
public class ModelEscritoire extends ModelBase
{
//fields
ModelRenderer desk;
ModelRenderer standRB;
ModelRenderer standRF;
ModelRenderer standLB;
ModelRenderer standLF;
ModelRenderer drawers;
ModelRenderer standLowLF;
ModelRenderer standLowRB;
ModelRenderer standLowRF;
ModelRenderer standLowLB;
public ModelEscritoire()
{
textureWidth = 64;
textureHeight = 32;
desk = new ModelRenderer(this, 0, 0);
desk.addBox(-8F, 3F, -7.8F, 16, 2, 15);
desk.setRotationPoint(0F, 0F, 0F);
desk.setTextureSize(64, 32);
desk.mirror = true;
setRotation(desk, 0.0872665F, 0F, 0F);
standRB = new ModelRenderer(this, 38, 18);
standRB.addBox(5F, 4F, 5F, 2, 6, 2);
standRB.setRotationPoint(0F, 0F, 0F);
standRB.setTextureSize(64, 32);
standRB.mirror = true;
setRotation(standRB, 0F, 0F, 0F);
standRF = new ModelRenderer(this, 38, 18);
standRF.addBox(5F, 4F, -7F, 2, 6, 2);
standRF.setRotationPoint(0F, 0F, 0F);
standRF.setTextureSize(64, 32);
standRF.mirror = true;
setRotation(standRF, 0F, 0F, 0F);
standLB = new ModelRenderer(this, 38, 18);
standLB.addBox(-7F, 4F, 5F, 2, 6, 2);
standLB.setRotationPoint(0F, 0F, 0F);
standLB.setTextureSize(64, 32);
standLB.mirror = true;
setRotation(standLB, 0F, 0F, 0F);
standLF = new ModelRenderer(this, 38, 18);
standLF.addBox(-7F, 4F, -7F, 2, 6, 2);
standLF.setRotationPoint(0F, 0F, 0F);
standLF.setTextureSize(64, 32);
standLF.mirror = true;
setRotation(standLF, 0F, 0F, 0F);
drawers = new ModelRenderer(this, 0, 18);
drawers.addBox(-7.5F, -2F, 4.5F, 15, 5, 3);
drawers.setRotationPoint(0F, 0F, 0F);
drawers.setTextureSize(64, 32);
drawers.mirror = true;
setRotation(drawers, 0F, 0F, 0F);
standLowLF = new ModelRenderer(this, 0, 26);
standLowLF.addBox(-6.5F, 10F, -6.5F, 1, 4, 1);
standLowLF.setRotationPoint(0F, 0F, 0F);
standLowLF.setTextureSize(64, 32);
standLowLF.mirror = true;
setRotation(standLowLF, 0F, 0F, 0F);
standLowRB = new ModelRenderer(this, 0, 26);
standLowRB.addBox(5.5F, 10F, 5.5F, 1, 4, 1);
standLowRB.setRotationPoint(0F, 0F, 0F);
standLowRB.setTextureSize(64, 32);
standLowRB.mirror = true;
setRotation(standLowRB, 0F, 0F, 0F);
standLowRF = new ModelRenderer(this, 0, 26);
standLowRF.addBox(5.5F, 10F, -6.5F, 1, 4, 1);
standLowRF.setRotationPoint(0F, 0F, 0F);
standLowRF.setTextureSize(64, 32);
standLowRF.mirror = true;
setRotation(standLowRF, 0F, 0F, 0F);
standLowLB = new ModelRenderer(this, 0, 26);
standLowLB.addBox(-6.5F, 10F, 5.5F, 1, 4, 1);
standLowLB.setRotationPoint(0F, 0F, 0F);
standLowLB.setTextureSize(64, 32);
standLowLB.mirror = true;
setRotation(standLowLB, 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);
desk.render(f5);
standRB.render(f5);
standRF.render(f5);
standLB.render(f5);
standLF.render(f5);
drawers.render(f5);
standLowLF.render(f5);
standLowRB.render(f5);
standLowRF.render(f5);
standLowLB.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);
}
}