Package com.flansmod.client.model.mw

Source Code of com.flansmod.client.model.mw.ModelMWParachute

package com.flansmod.client.model.mw;

import net.minecraft.client.model.ModelBase;
import net.minecraft.entity.Entity;

import com.flansmod.client.tmt.ModelRendererTurbo;

public class ModelMWParachute extends ModelBase
{
  public ModelRendererTurbo backpackModel;
  public ModelRendererTurbo[] parachuteModel = new ModelRendererTurbo[6];

  public ModelMWParachute()
  {
    backpackModel = new ModelRendererTurbo(this, 0, 0, 128, 128);
    backpackModel.addBox(-4F, 26F, -6F, 8, 12, 2);
   
    //Outside
    parachuteModel[0] = new ModelRendererTurbo(this, 0, 16, 128, 128);
    parachuteModel[0].addTrapezoid(-12, 38, -12, 24, 24, 24, 0F, -8F, ModelRendererTurbo.MR_TOP);
    parachuteModel[1] = new ModelRendererTurbo(this, 72, 0, 128, 128);
    parachuteModel[1].addTrapezoid(-8, 62, -8, 16, 8, 16, 0F, 4F, ModelRendererTurbo.MR_TOP);
    parachuteModel[2] = new ModelRendererTurbo(this, 0, 64, 128, 128);
    parachuteModel[2].addTrapezoid(-8, 70, -8, 16, 4, 16, 0F, -4F, ModelRendererTurbo.MR_BOTTOM);
   
    //Inside
    parachuteModel[3] = new ModelRendererTurbo(this, 0, 16, 128, 128);
    parachuteModel[3].flip = true;
    parachuteModel[3].addTrapezoid(-12, 38, -12, 24, 24, 24, 0F, -8F, ModelRendererTurbo.MR_TOP);
    parachuteModel[4] = new ModelRendererTurbo(this, 72, 0, 128, 128);
    parachuteModel[4].flip = true;
    parachuteModel[4].addTrapezoid(-8, 62, -8, 16, 8, 16, 0F, 4F, ModelRendererTurbo.MR_TOP);
    parachuteModel[5] = new ModelRendererTurbo(this, 0, 64, 128, 128);
    parachuteModel[5].flip = true;
    parachuteModel[5].addTrapezoid(-8, 70, -8, 16, 4, 16, 0F, -4F, ModelRendererTurbo.MR_BOTTOM);
  }

  @Override
  public void render(Entity entity, float f, float f1, float f2, float f3, float f4, float f5)
  {
    backpackModel.render(f5);
   
    for(ModelRendererTurbo part : parachuteModel)
      part.render(f5);
  }
}
TOP

Related Classes of com.flansmod.client.model.mw.ModelMWParachute

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.