mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-20 20:12:19 +00:00
Update for BuildCraft 6.2.1. Fix #348
This commit is contained in:
1 parent
be82dd318b
commit
7f5108f26c
14 files changed
+289
-242
No files matched your search
@@ -7,10 +7,8 @@
|
||||
******************************************************************************/
|
||||
package forestry.plugins;
|
||||
|
||||
import net.minecraft.item.Item;
|
||||
import cpw.mods.fml.common.FMLCommonHandler;
|
||||
import cpw.mods.fml.common.network.IGuiHandler;
|
||||
import forestry.core.config.Configuration;
|
||||
import forestry.core.config.Defaults;
|
||||
import forestry.core.config.ForestryItem;
|
||||
import forestry.core.interfaces.IPacketHandler;
|
||||
@@ -18,18 +16,14 @@ import forestry.core.proxy.Proxies;
|
||||
import forestry.pipes.GuiHandlerPipes;
|
||||
import forestry.pipes.network.PacketHandlerPipes;
|
||||
import forestry.pipes.proxy.ProxyPipes;
|
||||
import net.minecraft.item.Item;
|
||||
|
||||
import java.util.EnumSet;
|
||||
|
||||
@Plugin(pluginID = "Pipes", name = "Pipes", author = "SirSengir", url = Defaults.URL, unlocalizedDescription = "for.plugin.pipes.description")
|
||||
public class PluginPropolisPipe extends ForestryPlugin {
|
||||
|
||||
public static ProxyPipes proxy;
|
||||
|
||||
static String CONFIG_CATEGORY = "pipes";
|
||||
public static Configuration config;
|
||||
public static int propolisPipeItemId;
|
||||
|
||||
public static String textureBees = Defaults.TEXTURE_PATH_GUI + "/analyzer_icons.png";
|
||||
/**
|
||||
* Pipe used to sort bees from Forestry.
|
||||
*/
|
||||
@@ -37,43 +31,28 @@ public class PluginPropolisPipe extends ForestryPlugin {
|
||||
|
||||
@Override
|
||||
public boolean isAvailable() {
|
||||
return Proxies.common.isModLoaded("BuildCraft|Transport", PluginBuildCraft.validVersionRange);
|
||||
return Proxies.common.isModLoaded("BuildCraft|Transport");
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getFailMessage() {
|
||||
return "Buildcraft|Transport not found";
|
||||
return "BuildCraft|Transport not found";
|
||||
}
|
||||
|
||||
@Override
|
||||
public EnumSet<PluginManager.Module> getDependancies() {
|
||||
EnumSet<PluginManager.Module> deps = super.getDependancies();
|
||||
deps.add(PluginManager.Module.BUILDCRAFT);
|
||||
deps.add(PluginManager.Module.APICULTURE);
|
||||
return deps;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void preInit() {
|
||||
|
||||
/*config = new Configuration();
|
||||
|
||||
propolisPipeItemId = Integer.parseInt(PluginPropolisPipe.config.get("propolisPipe", CONFIG_CATEGORY, 14000).Value);
|
||||
|
||||
config.save();*/
|
||||
}
|
||||
|
||||
@Override
|
||||
public void doInit() {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void postInit() {
|
||||
String proxyClass = "forestry.pipes.proxy.ProxyPipes";
|
||||
if (FMLCommonHandler.instance().getSide().isClient())
|
||||
proxyClass = "forestry.pipes.proxy.ClientProxyPipes";
|
||||
|
||||
proxy = (ProxyPipes) Proxies.common.instantiateIfModLoaded("BuildCraft|Transport", PluginBuildCraft.validVersionRange, proxyClass);
|
||||
proxy = (ProxyPipes) Proxies.common.instantiateIfModLoaded("BuildCraft|Transport", proxyClass);
|
||||
|
||||
if (proxy == null)
|
||||
return;
|
||||
@@ -92,20 +71,4 @@ public class PluginPropolisPipe extends ForestryPlugin {
|
||||
return new PacketHandlerPipes();
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void registerItems() {
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void registerBackpackItems() {
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void registerCrates() {
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void registerRecipes() {
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user