gt: 		if (turret.hasStorageUpgrade) { Tank.render(f5); }
context: package com.domochevsky.quiverbow.ArmsAssistant;
  
  import net.minecraft.client.model.ModelBase;
  import net.minecraft.client.model.ModelRenderer;
  import net.minecraft.entity.Entity;
  import net.minecraft.util.MathHelper;
  
  public class Model_AA extends ModelBase
  {
  	//fields
  	ModelRenderer head;
  	ModelRenderer rail;
  	ModelRenderer body;
  	ModelRenderer leg1;
  	ModelRenderer leg2;
  	ModelRenderer leg3;
  	ModelRenderer leg4;
  	ModelRenderer legB1;
  	ModelRenderer legB2;
  	ModelRenderer legB3;
  	ModelRenderer legB4;
  	ModelRenderer legC1;
  	ModelRenderer legC2;
  	ModelRenderer legC3;
  	ModelRenderer legC4;
  	
  	ModelRenderer Tank;
  	
  	ModelRenderer Armor1;
  	ModelRenderer Armor2;
  	
  	ModelRenderer rail2;
  	ModelRenderer rail2b;
  	
  	ModelRenderer Seat1;
  	ModelRenderer Seat2;
  	ModelRenderer Seat3;
  	
  	ModelRenderer Plate1;
  	ModelRenderer Plate2;
  	ModelRenderer Plate3;
  	ModelRenderer Plate4;
  
  	ModelRenderer Antenna1;
  	ModelRenderer Antenna2;
  
  	
  	public Model_AA()
  	{
  		textureWidth = 64;
  		textureHeight = 64;
  		
  		head = new ModelRenderer(this, 0, 0);
  		head.addBox(-4F, -8F, -4F, 8, 8, 8);
  		head.setRotationPoint(-5F, 9F, 0F);
  		head.setTextureSize(64, 64);
  		head.mirror = true;
  		setRotation(head, 0F, 0F, 0F);
  		
  		rail = new ModelRenderer(this, 0, 18);
  		rail.addBox(0F, 0F, 0F, 4, 4, 10);
  		rail.setRotationPoint(1F, 5F, -5F);
  		rail.setTextureSize(64, 64);
  		rail.mirror = true;
  		setRotation(rail, 0F, 0F, 0F);
  		
  		body = new ModelRenderer(this, 33, 0);
  		body.addBox(0F, 0F, 0F, 6, 4, 6);
  		body.setRotationPoint(-3F, 9F, -3F);
  		body.setTextureSize(64, 64);
  		body.mirror = true;
  		setRotation(body, 0F, 0F, 0F);
  		
  		leg1 = new ModelRenderer(this, 40, 11);
  		leg1.addBox(0F, 0F, 0F, 2, 4, 2);
  		leg1.setRotationPoint(2F, 12F, -4F);
  		leg1.setTextureSize(64, 64);
  		leg1.mirror = true;
  		setRotation(leg1, -0.1745329F, -0.7853982F, 0F);
  		
  		leg2 = new ModelRenderer(this, 40, 11);
  		leg2.addBox(0F, 0F, 0F, 2, 4, 2);
  		leg2.setRotationPoint(4F, 12F, 2F);
  		leg2.setTextureSize(64, 64);
  		leg2.mirror = true;
  		setRotation(leg2, -0.1745329F, -2.356194F, 0F);
  		
  		leg3 = new ModelRenderer(this, 40, 11);
  		leg3.addBox(0F, 0F, 0F, 2, 4, 2);
  		leg3.setRotationPoint(-4F, 12F, -2F);
  		leg3.setTextureSize(64, 64);
  		leg3.mirror = true;
  		setRotation(leg3, -0.1745329F, 0.7853982F, 0F);
  		
  		leg4 = new ModelRenderer(this, 40, 11);
  		leg4.addBox(0F, 0F, 0F, 2, 4, 2);
  		leg4.setRotationPoint(-2F, 12F, 4F);
  		leg4.setTextureSize(64, 64);
  		leg4.mirror = true;
  		setRotation(leg4, -0.1745329F, 2.356194F, 0F);
  		
  		legB1 = new ModelRenderer(this, 33, 11);
  		legB1.addBox(0F, 0F, 0F, 1, 4, 2);
  		legB1.setRotationPoint(-3F, 14F, -2F);
  		legB1.setTextureSize(64, 64);
  		legB1.mirror = true;
  		setRotation(legB1, -1.624499F, 0.7853982F, 0F);
  		
  		legB2 = new ModelRenderer(this, 33, 11);
  		legB2.addBox(0F, 0F, 0F, 1, 4, 2);
  		legB2.setRotationPoint(2F, 14F, -3F);
  		legB2.setTextureSize(64, 64);
  		legB2.mirror = true;
  		setRotation(legB2, -1.624499F, -0.7853982F, 0F);
  		
  		legB3 = new ModelRenderer(this, 33, 11);
  		legB3.addBox(0F, 0F, 0F, 1, 4, 2);
  		legB3.setRotationPoint(-2F, 14F, 3F);
  		legB3.setTextureSize(64, 64);
  		legB3.mirror = true;
  		setRotation(legB3, -1.623156F, 2.356194F, 0F);
  		
  		legB4 = new ModelRenderer(this, 33, 11);
  		legB4.addBox(0F, 0F, 0F, 1, 4, 2);
  		legB4.setRotationPoint(3F, 14F, 2F);
  		legB4.setTextureSize(64, 64);
  		legB4.mirror = true;
  		setRotation(legB4, -1.624499F, -2.356194F, 0F);
  		
  		legC1 = new ModelRenderer(this, 0, 17);
  		legC1.addBox(0F, 0F, 0F, 1, 9, 1);
  		legC1.setRotationPoint(-6F, 15F, -5F);
  		legC1.setTextureSize(64, 64);
  		legC1.mirror = true;
  		setRotation(legC1, -0.1745329F, 0.7853982F, 0F);
  		
  		legC2 = new ModelRenderer(this, 0, 17);
  		legC2.addBox(0F, 0F, 0F, 1, 9, 1);
  		legC2.setRotationPoint(6F, 15F, 5F);
  		legC2.setTextureSize(64, 64);
  		legC2.mirror = true;
  		setRotation(legC2, -0.1745329F, -2.356194F, 0F);
  		
  		legC3 = new ModelRenderer(this, 0, 17);
  		legC3.addBox(0F, 0F, 0F, 1, 9, 1);
  		legC3.setRotationPoint(5F, 15F, -6F);
  		legC3.setTextureSize(64, 64);
  		legC3.mirror = true;
  		setRotation(legC3, -0.1745329F, -0.7853982F, 0F);
  		
  		legC4 = new ModelRenderer(this, 0, 17);
  		legC4.addBox(0F, 0F, 0F, 1, 9, 1);
  		legC4.setRotationPoint(-5F, 15F, 6F);
  		legC4.setTextureSize(64, 64);
  		legC4.mirror = true;
  		setRotation(legC4, -0.1745329F, 2.356194F, 0F);
  		
  		Tank = new ModelRenderer(this, 29, 18);
  		Tank.addBox(0F, 0F, 0F, 10, 10, 4);
  		Tank.setRotationPoint(-4F, -1F, 5F);
  		Tank.setTextureSize(64, 64);
  		Tank.mirror = true;
  		setRotation(Tank, 0F, 0F, 0F);
  		
  		Armor1 = new ModelRenderer(this, 0, 33);
  		Armor1.addBox(0F, 0F, 0F, 12, 15, 1);
  		Armor1.setRotationPoint(-11F, 5F, -9F);
  		Armor1.setTextureSize(64, 64);
  		Armor1.mirror = true;
  		setRotation(Armor1, 0F, 0F, 0F);
  		
  		Armor2 = new ModelRenderer(this, 27, 33);
  		Armor2.addBox(0F, 0F, 0F, 3, 2, 11);
  		Armor2.setRotationPoint(-6F, 9F, -8F);
  		Armor2.setTextureSize(64, 64);
  		Armor2.mirror = true;
  		setRotation(Armor2, 0F, 0F, 0F);
  		
  		rail2 = new ModelRenderer(this, 0, 18);
  		rail2.addBox(0F, 0F, 0F, 4, 4, 10);
  		rail2.setRotationPoint(6F, 9F, -3F);
  		rail2.setTextureSize(64, 64);
  		rail2.mirror = true;
  		setRotation(rail2, 0F, 0F, 0F);
  		
  		rail2b = new ModelRenderer(this, 45, 33);
  		rail2b.addBox(0F, 0F, 0F, 3, 2, 4);
  		rail2b.setRotationPoint(3F, 9F, -2F);
  		rail2b.setTextureSize(64, 64);
  		rail2b.mirror = true;
  		setRotation(rail2b, 0F, 0F, 0F);
  
  		Seat1 = new ModelRenderer(this, 0, 52);
  		Seat1.addBox(0F, 0F, 0F, 8, 2, 10);
  		Seat1.setRotationPoint(-3F, -2F, -6F);
  		Seat1.setTextureSize(64, 64);
  		Seat1.mirror = true;
  		setRotation(Seat1, 0F, 0F, 0F);
  		
  		Seat2 = new ModelRenderer(this, 27, 54);
  		Seat2.addBox(0F, 0F, 0F, 8, 3, 2);
  		Seat2.setRotationPoint(-3F, -5F, 2F);
  		Seat2.setTextureSize(64, 64);
  		Seat2.mirror = true;
  		setRotation(Seat2, 0F, 0F, 0F);
  		
  		Seat3 = new ModelRenderer(this, 48, 47);
  		Seat3.addBox(0F, 0F, 0F, 2, 9, 4);
  		Seat3.setRotationPoint(-1F, 0F, -2.466667F);
  		Seat3.setTextureSize(64, 64);
  		Seat3.mirror = true;
  		setRotation(Seat3, 0F, 0F, 0F);
  		
  		//
  		
  		Plate1 = new ModelRenderer(this, 0, 38);
  		Plate1.addBox(0F, 0F, 0F, 12, 10, 1);
  		Plate1.setRotationPoint(-7F, 10F, 6F);
  		Plate1.setTextureSize(64, 64);
  		Plate1.mirror = true;
  		setRotation(Plate1, -0.1858931F, 1.570796F, 0F);
  		
  		Plate2 = new ModelRenderer(this, 0, 36);
  		Plate2.addBox(0F, 0F, 0F, 12, 11, 1);
  		Plate2.setRotationPoint(6F, 9F, 7F);
  		Plate2.setTextureSize(64, 64);
  		Plate2.mirror = true;
  		setRotation(Plate2, -0.1858931F, 3.141593F, 0F);
  		
  		Plate3 = new ModelRenderer(this, 0, 36);
  		Plate3.addBox(0F, 0F, 0F, 12, 12, 1);
  		Plate3.setRotationPoint(-6F, 8F, -6F);
  		Plate3.setTextureSize(64, 64);
  		Plate3.mirror = true;
  		setRotation(Plate3, -0.1858931F, 0F, 0F);
  		
  		Plate4 = new ModelRenderer(this, 0, 38);
  		Plate4.addBox(0F, 0F, 0F, 12, 9, 1);
  		Plate4.setRotationPoint(7F, 11F, -6F);
  		Plate4.setTextureSize(64, 64);
  		Plate4.mirror = true;
  		setRotation(Plate4, -0.1858931F, -1.570796F, 0F);
  		
  		//
  		
  		Antenna1 = new ModelRenderer(this, 58, 0);
  		Antenna1.addBox(0F, 0F, 0F, 1, 15, 1);
  		Antenna1.setRotationPoint(-6F, -5F, 5F);
  		Antenna1.setTextureSize(64, 64);
  		Antenna1.mirror = true;
  		setRotation(Antenna1, 0F, 0F, 0F);
  		
  		Antenna2 = new ModelRenderer(this, 19, 18);
  		Antenna2.addBox(0F, 0F, 0F, 4, 1, 2);
  		Antenna2.setRotationPoint(-6F, 9F, 3F);
  		Antenna2.setTextureSize(64, 64);
  		Antenna2.mirror = true;
  		setRotation(Antenna2, 0F, 0F, 0F);
  	}
  
  	
  	public void render(Entity entity, float x, float y, float z, float yaw, float pitch, float f5)
  	{
  		super.render(entity, x, y, z, yaw, pitch, f5);
  		
  		this.setRotationAngles(x, y, z, yaw, pitch, f5, entity);
  		
  		head.render(f5);
  		rail.render(f5);
  		body.render(f5);
  		leg1.render(f5);
  		leg2.render(f5);
  		leg3.render(f5);
  		leg4.render(f5);
  		legB1.render(f5);
  		legB2.render(f5);
  		legB3.render(f5);
  		legB4.render(f5);
  		legC1.render(f5);
  		legC2.render(f5);
  		legC3.render(f5);
  		legC4.render(f5);
  		
  		Entity_AA turret = (Entity_AA) entity;
  		
  