package com.infinityraider.agricraft.content.core;

import com.infinityraider.agricraft.reference.Names;
import com.infinityraider.infinitylib.item.ItemBase;
import net.minecraft.item.ItemGroup;
import net.minecraft.item.ItemStack;
import net.minecraft.item.Items;
import net.minecraft.tileentity.AbstractFurnaceTileEntity;

public class ItemAgriNugget extends ItemBase {
    public ItemAgriNugget(String name) {
        super(Names.Items.NUGGET + "_" + name, new Properties().group(ItemGroup.MATERIALS));
    }

    public static class Burnable extends ItemAgriNugget {
        public Burnable(String name) {
            super(name);
        }

        @Override
        @SuppressWarnings("deprecation")
        public int getBurnTime(ItemStack itemStack) {
            return AbstractFurnaceTileEntity.getBurnTimes().get(Items.COAL)/9;
        }

    }
}

@@ -282,45 +282,31 @@
 raft
-.tileentity.AbstractFurnaceTileEntity
+forge.common.ForgeHooks
 ;%0A%0Ap
@@ -550,16 +550,97 @@
 ugget %7B%0A
+        private static final ItemStack REFERENCE = new ItemStack(Items.COAL, 1);%0A
         
@@ -728,49 +728,8 @@
 ide%0A
-        @SuppressWarnings(%22deprecation%22)%0A
     
@@ -801,65 +801,44 @@
 urn 
-AbstractFurnaceTileEntity.getBurnTimes().get(Items.COAL)/
+ForgeHooks.getBurnTime(REFERENCE) / 
 9;%0A 
@@ -842,21 +842,20 @@
 ;%0A        %7D%0A
-%0A
     %7D%0A%7D%0A

Make coal nugget burn time pass through the Forge hook