Package com.flansmod.client.model.zombie

Source Code of com.flansmod.client.model.zombie.ModelFleshLump

package com.flansmod.client.model.zombie;

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

import com.flansmod.client.tmt.ModelRendererTurbo;
import com.flansmod.common.FlansMod;

public class ModelFleshLump extends ModelBase
{
  public ModelRendererTurbo[] fleshModel;

  public ModelFleshLump()
  {
    fleshModel = new ModelRendererTurbo[2];

    fleshModel[0] = new ModelRendererTurbo(this, 0, 0, 16, 16);
    fleshModel[0].addShapeBox(-2F, -2F, -3F, 5, 5, 4, 0F, /* 0 */ 0.5F, 0.5F, -0.5F, /* 1 */ 0F, 0.5F, 0F, /* 2 */ 0F, 0F, 0F, /* 3 */ -1F, 0.5F, 0F, /* 4 */ 0.5F, 0F, 0F, /* 5 */ 1F, 0F, 0F, /* 6 */ -0.5F, 0.5F, 1F, /* 7 */ 0.5F, 0.5F, 1F)
    fleshModel[1] = new ModelRendererTurbo(this, 8, 0, 16, 16);
    fleshModel[1].addShapeBox(-2F, -2F, 0F, 4, 5, 5, 0F, /* 0 */ 0F, -1F, 0.5F, /* 1 */ -0.5F, 0.5F, 0F, /* 2 */ 1F, 0F, 0F, /* 3 */ 0.5F, 0.5F, 0.5F, /* 4 */ -1F, 1F, 0F, /* 5 */ -1F, 0F, 0.5F, /* 6 */ 1F, 0F, 0F, /* 7 */ 0.5F, 0F, -1F)
  }

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

Related Classes of com.flansmod.client.model.zombie.ModelFleshLump

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.