package com.miningmark48.pearcelmod.item;
import com.miningmark48.pearcelmod.init.ModBlocks;
import com.miningmark48.pearcelmod.init.ModItems;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraftforge.fml.common.IFuelHandler;
public class ItemPearcelFuel extends Item implements IFuelHandler{
@Override
public int getBurnTime(ItemStack fuel) {
Item item = fuel.getItem();
if(item == ModItems.pearcel_charcoal){
return 2500;
}else if(fuel.isItemEqual(new ItemStack(ModBlocks.pearcel_charcoal_block))){
return 22500;
}else if(item == ModItems.pearcel_matter){
return 30000;
}else if(fuel.isItemEqual(new ItemStack(ModBlocks.pearcel_matter_block))){
return 270000;
}
else{
return 0;
}
}
}