@Override
public List<ItemStack> ranch(World world, EntityLiving entity, IInventory rancher)
{
List<ItemStack> drops = new LinkedList<ItemStack>();
EntityChicken chicken = ((EntityChicken)entity);
if (chicken.timeUntilNextEgg < 300)
{
chicken.playSound("mob.chicken.plop", 1.0F, (chicken.rand.nextFloat() - chicken.rand.nextFloat()) * 0.2F + 1.0F);
chicken.attackEntityFrom(DamageSource.generic, 0);
chicken.setRevengeTarget(chicken); // panic
chicken.timeUntilNextEgg = chicken.rand.nextInt(6000) + 6200;
if (rand.nextInt(4) != 0)
{
drops.add(new ItemStack(Item.egg));
}