2014-11-29 19:53:40 -08:00
|
|
|
/*******************************************************************************
|
|
|
|
|
* Copyright (c) 2011-2014 SirSengir.
|
|
|
|
|
* All rights reserved. This program and the accompanying materials
|
|
|
|
|
* are made available under the terms of the GNU Lesser Public License v3
|
|
|
|
|
* which accompanies this distribution, and is available at
|
|
|
|
|
* http://www.gnu.org/licenses/lgpl-3.0.txt
|
|
|
|
|
*
|
|
|
|
|
* Various Contributors including, but not limited to:
|
|
|
|
|
* SirSengir (original work), CovertJaguar, Player, Binnie, MysteriousAges
|
|
|
|
|
******************************************************************************/
|
|
|
|
|
package forestry.plugins;
|
|
|
|
|
|
2014-12-15 08:15:21 -08:00
|
|
|
import buildcraft.api.recipes.BuildcraftRecipeRegistry;
|
2014-11-29 19:53:40 -08:00
|
|
|
import cpw.mods.fml.common.Optional;
|
|
|
|
|
import forestry.core.config.Defaults;
|
2014-12-13 18:58:49 -08:00
|
|
|
import forestry.core.fluids.Fluids;
|
2014-11-29 19:53:40 -08:00
|
|
|
import forestry.core.proxy.Proxies;
|
2014-12-13 01:42:52 -08:00
|
|
|
|
2014-11-29 19:53:40 -08:00
|
|
|
@Plugin(pluginID = "BC6|Recipes", name = "BuildCraft 6 Recipes", author = "SirSengir", url = Defaults.URL, unlocalizedDescription = "for.plugin.buildcraft6.description")
|
|
|
|
|
public class PluginBuildCraftRecipes extends ForestryPlugin {
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public boolean isAvailable() {
|
2015-01-15 22:51:29 -08:00
|
|
|
return Proxies.common.isAPILoaded("buildcraft.api.recipes", "[2.0, 3.0)");
|
2014-11-29 19:53:40 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public String getFailMessage() {
|
|
|
|
|
return "Compatible BuildCraftAPI|recipes version not found";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Optional.Method(modid = "BuildCraftAPI|recipes")
|
|
|
|
|
@Override
|
|
|
|
|
protected void registerRecipes() {
|
|
|
|
|
// Add recipe for ethanol
|
2014-12-24 00:38:42 -08:00
|
|
|
BuildcraftRecipeRegistry.refinery.addRecipe("forestry:BiomassToEthanol", Fluids.BIOMASS.getFluid(4), Fluids.ETHANOL.getFluid(1), 100, 1);
|
2014-11-29 19:53:40 -08:00
|
|
|
}
|
|
|
|
|
}
|