mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-14 01:04:12 +00:00
43 lines
1.6 KiB
Java
43 lines
1.6 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.config.ForestryItem;
|
||
|
|
import forestry.core.proxy.Proxies;
|
||
|
|
import net.minecraft.item.Item;
|
||
|
|
import net.minecraft.item.ItemStack;
|
||
|
|
|
||
|
|
@Plugin(pluginID = "BC6|Transport", name = "BuildCraft 6 Transport", author = "mezz", url = Defaults.URL, unlocalizedDescription = "for.plugin.buildcraft6.description")
|
||
|
|
public class PluginBuildCraftTransport extends ForestryPlugin {
|
||
|
|
|
||
|
|
@Override
|
||
|
|
public boolean isAvailable() {
|
||
|
|
return Proxies.common.isModLoaded("BuildCraft|Transport");
|
||
|
|
}
|
||
|
|
|
||
|
|
@Override
|
||
|
|
public String getFailMessage() {
|
||
|
|
return "BuildCraft|Transport not found";
|
||
|
|
}
|
||
|
|
|
||
|
|
@Optional.Method(modid = "BuildCraft|Transport")
|
||
|
|
@Override
|
||
|
|
protected void registerRecipes() {
|
||
|
|
try {
|
||
|
|
Item pipeWaterproof = (Item) Class.forName("buildcraft.BuildCraftTransport").getField("pipeWaterproof").get(null);
|
||
|
|
Proxies.common.addRecipe(new ItemStack(pipeWaterproof), "#", '#', ForestryItem.beeswax);
|
||
|
|
} catch (Exception ex) {
|
||
|
|
Proxies.log.fine("No BuildCraft pipe waterproof found.");
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|