// Path: src/main/java/brightspark/sparkshammers/SparksHammers.java
// @Mod(modid=Reference.MOD_ID, name=Reference.MOD_NAME, version=Reference.VERSION, dependencies=Reference.DEPENDENCIES)
// public class SparksHammers
// {
//     //Instance of this mod that is safe to reference
//     @Mod.Instance(Reference.MOD_ID)
//     public static SparksHammers instance;
// 
//     public static final CreativeTabs SH_TAB = new CreativeTabs(Reference.MOD_ID)
//     {
//         @Override
//         public ItemStack getTabIconItem()
//         {
//             return new ItemStack(SHItems.hammerDiamond);
//         }
// 
//         @Override
//         public String getTranslatedTabLabel()
//         {
//             return Reference.MOD_NAME;
//         }
//     };
// 
//     public static DamageSource fallingHammer = new DamageSource("fallingHammer");
//     private static Advancement killDragonAdvancement;
// 
//     public static ItemStack TORCH_STACK;
//     public static ItemBlock TORCH_ITEM;
// 
//     private static Set SPECIAL_NAMES = Sets.newHashSet("mjolnir", "giant", "mini", "netherstar", "powered");
// 
//     @Mod.EventHandler
//     public void init(FMLInitializationEvent event)
//     {
//         //Initialize GUIs, tile entities, recipies, event handlers here
// 
//         NetworkRegistry.INSTANCE.registerGuiHandler(this, new GuiHandler());
// 
//         //Register world generation for Mjolnir Shrine
//         if(SHConfig.MJOLNIR.shouldGenerateMjolnirShrines)
//             GameRegistry.registerWorldGenerator(new WorldGenMjolnirShrine(), 10);
//     }
// 
//     @Mod.EventHandler
//     public void postInit(FMLPostInitializationEvent event)
//     {
//         //Run stuff after mods have initialized here
// 
//         TORCH_STACK = new ItemStack(Blocks.TORCH);
//         TORCH_ITEM = (ItemBlock) TORCH_STACK.getItem();
// 
//         //Set the dependants for a tool to null if they have no recipe
//         int count = 0;
//         for(ItemAOE tool : SHItems.AOE_TOOLS)
//         {
//             if(shouldHideTool(tool))
//             {
//                 tool.nullDependants();
//                 count++;
//             }
//         }
//         if(count > 0)
//             LogHelper.info("Removed " + count + " tools from creative menu due to missing ingredients");
// 
//         //Null all the lists so it's not taking up extra memory
//         SHItems.voidLists();
//         SHBlocks.BLOCKS = null;
//         SHBlocks.ITEM_BLOCKS = null;
//     }
// 
//     public static boolean shouldHideTool(ItemAOE tool)
//     {
//         if(SPECIAL_NAMES.contains(tool.getMaterialName()))
//             return false;
//         ItemStack stack = tool.getDependantStack();
//         String ore = tool.getDependantOreDic();
//         return (stack == null || stack.isEmpty()) && (!OreDictionary.doesOreNameExist(ore) || OreDictionary.getOres(ore).isEmpty());
//     }
// 
//     public static boolean hasKillDragonAdvancement(EntityPlayerMP player)
//     {
//         if(killDragonAdvancement == null)
//             killDragonAdvancement = player.getServer().getAdvancementManager().getAdvancement(new ResourceLocation("minecraft", "end/kill_dragon"));
//         return killDragonAdvancement != null && player.getAdvancements().getProgress(killDragonAdvancement).isDone();
//     }
// }


import brightspark.sparkshammers.SparksHammers;
import net.minecraft.item.Item;
package brightspark.sparkshammers.item;


public class ItemResource extends Item
{
    public ItemResource(String name)
    {
        setUnlocalizedName(name);
        setMaxStackSize(64);
// Path: src/main/java/brightspark/sparkshammers/SparksHammers.java
// @Mod(modid=Reference.MOD_ID, name=Reference.MOD_NAME, version=Reference.VERSION, dependencies=Reference.DEPENDENCIES)
// public class SparksHammers
// {
//     //Instance of this mod that is safe to reference
//     @Mod.Instance(Reference.MOD_ID)
//     public static SparksHammers instance;
// 
//     public static final CreativeTabs SH_TAB = new CreativeTabs(Reference.MOD_ID)
//     {
//         @Override
//         public ItemStack getTabIconItem()
//         {
//             return new ItemStack(SHItems.hammerDiamond);
//         }
// 
//         @Override
//         public String getTranslatedTabLabel()
//         {
//             return Reference.MOD_NAME;
//         }
//     };
// 
//     public static DamageSource fallingHammer = new DamageSource("fallingHammer");
//     private static Advancement killDragonAdvancement;
// 
//     public static ItemStack TORCH_STACK;
//     public static ItemBlock TORCH_ITEM;
// 
//     private static Set SPECIAL_NAMES = Sets.newHashSet("mjolnir", "giant", "mini", "netherstar", "powered");
// 
//     @Mod.EventHandler
//     public void init(FMLInitializationEvent event)
//     {
//         //Initialize GUIs, tile entities, recipies, event handlers here
// 
//         NetworkRegistry.INSTANCE.registerGuiHandler(this, new GuiHandler());
// 
//         //Register world generation for Mjolnir Shrine
//         if(SHConfig.MJOLNIR.shouldGenerateMjolnirShrines)
//             GameRegistry.registerWorldGenerator(new WorldGenMjolnirShrine(), 10);
//     }
// 
//     @Mod.EventHandler
//     public void postInit(FMLPostInitializationEvent event)
//     {
//         //Run stuff after mods have initialized here
// 
//         TORCH_STACK = new ItemStack(Blocks.TORCH);
//         TORCH_ITEM = (ItemBlock) TORCH_STACK.getItem();
// 
//         //Set the dependants for a tool to null if they have no recipe
//         int count = 0;
//         for(ItemAOE tool : SHItems.AOE_TOOLS)
//         {
//             if(shouldHideTool(tool))
//             {
//                 tool.nullDependants();
//                 count++;
//             }
//         }
//         if(count > 0)
//             LogHelper.info("Removed " + count + " tools from creative menu due to missing ingredients");
// 
//         //Null all the lists so it's not taking up extra memory
//         SHItems.voidLists();
//         SHBlocks.BLOCKS = null;
//         SHBlocks.ITEM_BLOCKS = null;
//     }
// 
//     public static boolean shouldHideTool(ItemAOE tool)
//     {
//         if(SPECIAL_NAMES.contains(tool.getMaterialName()))
//             return false;
//         ItemStack stack = tool.getDependantStack();
//         String ore = tool.getDependantOreDic();
//         return (stack == null || stack.isEmpty()) && (!OreDictionary.doesOreNameExist(ore) || OreDictionary.getOres(ore).isEmpty());
//     }
// 
//     public static boolean hasKillDragonAdvancement(EntityPlayerMP player)
//     {
//         if(killDragonAdvancement == null)
//             killDragonAdvancement = player.getServer().getAdvancementManager().getAdvancement(new ResourceLocation("minecraft", "end/kill_dragon"));
//         return killDragonAdvancement != null && player.getAdvancements().getProgress(killDragonAdvancement).isDone();
//     }
// }


// Path: src/main/java/brightspark/sparkshammers/item/ItemResource.java
import brightspark.sparkshammers.SparksHammers;
import net.minecraft.item.Item;

package brightspark.sparkshammers.item;


public class ItemResource extends Item
{
    public ItemResource(String name)
    {
        setUnlocalizedName(name);
        setMaxStackSize(64);
        setCreativeTab(SparksHammers.SH_TAB);