001/* 002 * Forge Mod Loader 003 * Copyright (c) 2012-2013 cpw. 004 * All rights reserved. This program and the accompanying materials 005 * are made available under the terms of the GNU Lesser Public License v2.1 006 * which accompanies this distribution, and is available at 007 * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 008 * 009 * Contributors: 010 * cpw - implementation 011 */ 012 013package cpw.mods.fml.common.modloader; 014 015import net.minecraft.item.ItemStack; 016import cpw.mods.fml.common.IFuelHandler; 017 018public class ModLoaderFuelHelper implements IFuelHandler 019{ 020 021 private BaseModProxy mod; 022 023 public ModLoaderFuelHelper(BaseModProxy mod) 024 { 025 this.mod = mod; 026 } 027 028 @Override 029 public int getBurnTime(ItemStack fuel) 030 { 031 return mod.addFuel(fuel.itemID, fuel.itemID); 032 } 033 034}