package twilightforest.client.renderer.entity;

import net.minecraft.client.model.ModelBase;
import net.minecraft.entity.Entity;
import net.minecraft.util.ResourceLocation;
import twilightforest.entity.passive.EntityTFTinyBird;

public class RenderTFTinyBird
  extends RenderTFBird
{
  final ResourceLocation textureLocSparrow;
  final ResourceLocation textureLocFinch;
  final ResourceLocation textureLocCardinal;
  final ResourceLocation textureLocBluebird;
  
  public RenderTFTinyBird(ModelBase par1ModelBase, float par2)
  {
    super(par1ModelBase, par2, "tinybirdbrown.png");
    
    textureLocSparrow = new ResourceLocation("twilightforest:textures/model/tinybirdbrown.png");
    textureLocFinch = new ResourceLocation("twilightforest:textures/model/tinybirdgold.png");
    textureLocCardinal = new ResourceLocation("twilightforest:textures/model/tinybirdred.png");
    textureLocBluebird = new ResourceLocation("twilightforest:textures/model/tinybirdblue.png");
  }
  



  protected ResourceLocation func_110775_a(Entity par1Entity)
  {
    if ((par1Entity instanceof EntityTFTinyBird))
    {
      switch (((EntityTFTinyBird)par1Entity).getBirdType())
      {
      case 0: 
      default: 
        return textureLocSparrow;
      case 1: 
        return textureLocBluebird;
      case 2: 
        return textureLocCardinal;
      }
      return textureLocFinch;
    }
    


    return textureLocSparrow;
  }
}
