Added plant oil and associated recipes - need to compile a list for future alchemy items

This commit is contained in:
WayofTime 2016-05-05 07:59:08 -04:00
parent 050d1185a7
commit 03fa7b2712
9 changed files with 50 additions and 11 deletions

View file

@ -0,0 +1,20 @@
package WayofTime.bloodmagic.fuel;
import WayofTime.bloodmagic.item.ItemComponent;
import WayofTime.bloodmagic.registry.ModItems;
import net.minecraft.item.ItemStack;
import net.minecraftforge.fml.common.IFuelHandler;
public class FuelHandler implements IFuelHandler
{
@Override
public int getBurnTime(ItemStack fuel)
{
if (fuel != null && fuel.getItem() == ModItems.itemComponent && fuel.getMetadata() == ItemComponent.getStack(ItemComponent.SAND_COAL).getMetadata())
{
return 1600;
}
return 0;
}
}