mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-14 01:04:12 +00:00
BuildcraftAPI|recipes got a breaking update in 7.0, but it only breaks integration tables
41 lines
1.5 KiB
Java
41 lines
1.5 KiB
Java
/*******************************************************************************
|
|
* 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;
|
|
|
|
import cpw.mods.fml.common.Optional;
|
|
|
|
import forestry.core.config.Defaults;
|
|
import forestry.core.fluids.Fluids;
|
|
import forestry.core.proxy.Proxies;
|
|
|
|
import buildcraft.api.recipes.BuildcraftRecipeRegistry;
|
|
|
|
@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() {
|
|
return Proxies.common.isAPILoaded("buildcraft.api.recipes", "[2.0, 4.0)");
|
|
}
|
|
|
|
@Override
|
|
public String getFailMessage() {
|
|
return "Compatible BuildCraftAPI|recipes version not found";
|
|
}
|
|
|
|
@Optional.Method(modid = "BuildCraftAPI|recipes")
|
|
@Override
|
|
protected void registerRecipes() {
|
|
// Add recipe for ethanol
|
|
BuildcraftRecipeRegistry.refinery.addRecipe("forestry:BiomassToEthanol", Fluids.BIOMASS.getFluid(4), Fluids.ETHANOL.getFluid(1), 100, 1);
|
|
}
|
|
}
|