public override int GetColorFromDamage(int par1, int par2)
        {
            EntityEggInfo entityegginfo = (EntityEggInfo)EntityList.EntityEggs[par1];

            if (entityegginfo != null)
            {
                if (par2 == 0)
                {
                    return(entityegginfo.PrimaryColor);
                }
                else
                {
                    return(entityegginfo.SecondaryColor);
                }
            }
            else
            {
                return(0xffffff);
            }
        }
 /// <summary>
 /// Adds a entity mapping with egg info.
 /// </summary>
 private static void AddMapping(Type par0Class, string par1Str, int par2, int par3, int par4)
 {
     AddMapping(par0Class, par1Str, par2);
     EntityEggs[par2] = new EntityEggInfo(par2, par3, par4);
 }