Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changing a few things with IMC, NEI, removing buildcraft IMC
- Loading branch information
Alexander Behrhof
committed
Aug 2, 2014
1 parent
050c427
commit 580f8b0
Showing
5 changed files
with
32 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37 changes: 0 additions & 37 deletions
37
src/main/java/tconstruct/plugins/imc/TinkerBuildcraft.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package tconstruct.plugins.nei; | ||
|
||
import tconstruct.tools.gui.CraftingStationGui; | ||
import cpw.mods.fml.relauncher.Side; | ||
import cpw.mods.fml.common.FMLCommonHandler; | ||
import codechicken.nei.recipe.DefaultOverlayHandler; | ||
import codechicken.nei.api.API; | ||
|
||
public class NEICompat | ||
{ | ||
|
||
public static void registerNEICompat () | ||
{ | ||
if (FMLCommonHandler.instance().getEffectiveSide() == Side.CLIENT) | ||
{ | ||
API.registerGuiOverlay(CraftingStationGui.class, "crafting"); | ||
API.registerGuiOverlayHandler(CraftingStationGui.class, new DefaultOverlayHandler(), "crafting"); | ||
} | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,23 @@ | ||
package tconstruct.plugins.nei; | ||
|
||
import codechicken.nei.api.API; | ||
import codechicken.nei.recipe.DefaultOverlayHandler; | ||
import mantle.pulsar.pulse.Handler; | ||
import mantle.pulsar.pulse.Pulse; | ||
import tconstruct.TConstruct; | ||
import tconstruct.tools.gui.CraftingStationGui; | ||
import cpw.mods.fml.common.FMLCommonHandler; | ||
import cpw.mods.fml.common.event.FMLInitializationEvent; | ||
import cpw.mods.fml.common.registry.GameRegistry.ObjectHolder; | ||
import cpw.mods.fml.relauncher.Side; | ||
|
||
@ObjectHolder(TConstruct.modID) | ||
@Pulse(id = "Tinkers Not Enough Items Addon", description = "The NEI addon for Tinkers.", modsRequired = "NotEnoughItems", forced = true) | ||
public class TinkerNEI { | ||
|
||
@Pulse(id = "Tinkers NEI Compatibility", description = "Tinkers Construct compatibility for NEI", modsRequired = "NotEnoughItems") | ||
public class TinkerNEI | ||
{ | ||
|
||
@Handler | ||
public void init (FMLInitializationEvent event) | ||
{ | ||
if (FMLCommonHandler.instance().getEffectiveSide() == Side.CLIENT) | ||
{ | ||
API.registerGuiOverlay(CraftingStationGui.class, "crafting"); | ||
API.registerGuiOverlayHandler(CraftingStationGui.class, new DefaultOverlayHandler(), "crafting"); | ||
} | ||
TConstruct.logger.info("NotEnoughItems detected. Registering TConstruct NEI plugin."); | ||
NEICompat.registerNEICompat(); | ||
} | ||
|
||
} |