package totemic_commons.pokefenn.misc;

import java.util.List;

import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.init.Items;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly;
import totemic_commons.pokefenn.ModBlocks;
import totemic_commons.pokefenn.lib.Strings;

public class CreativeTabTotemic extends CreativeTabs
{
    public CreativeTabTotemic(int id, String name)
    {
        super(id, name);
    }

    @SideOnly(Side.CLIENT)
    @Override
    public Item getTabIconItem()
    {
        return Item.getItemFromBlock(ModBlocks.tipi);
    }

    @SideOnly(Side.CLIENT)
    @Override
    public void displayAllReleventItems(List<ItemStack> list)
    {
        super.displayAllReleventItems(list);

        ItemStack stack = new ItemStack(Items.spawn_egg);
        NBTTagCompound eggTag = new NBTTagCompound();
        eggTag.setString("entity_name", "totemic." + Strings.BUFFALO_NAME);
        stack.setTagCompound(eggTag);
        list.add(stack);
    }
}

@@ -874,16 +874,204 @@
 list);%0A%0A
+        list.add(getEgg(%22totemic.%22 + Strings.BUFFALO_NAME));%0A        list.add(getEgg(%22totemic.%22 + Strings.BAYKOK_NAME));%0A    %7D%0A%0A    public static ItemStack getEgg(String entityName)%0A    %7B%0A
         
@@ -1218,41 +1218,18 @@
 e%22, 
-%22totemic.%22 + Strings.BUFFALO_NAME
+entityName
 );%0A 
@@ -1277,23 +1277,20 @@
     
-list.add(
+return 
 stack
-)
 ;%0A  

Add Baykok spawn egg to creative tab