diff --git a/src/main/scala/resonantinduction/compatibility/nei/NEIResonantInductionConfig.java b/src/main/scala/resonantinduction/compatibility/nei/NEIResonantInductionConfig.java deleted file mode 100644 index 7a54d5002..000000000 --- a/src/main/scala/resonantinduction/compatibility/nei/NEIResonantInductionConfig.java +++ /dev/null @@ -1,54 +0,0 @@ -package resonantinduction.compatibility.nei; - -import net.minecraft.block.Block; -import net.minecraft.item.ItemStack; -import resonant.engine.ResonantEngine; -import resonantinduction.core.CoreContent; -import resonantinduction.core.ResonantInduction; -import codechicken.nei.api.API; -import codechicken.nei.api.IConfigureNEI; - -public class NEIResonantInductionConfig implements IConfigureNEI -{ - - @Override - public void loadConfig() - { - API.registerRecipeHandler(new RIGrinderRecipeHandler()); - API.registerUsageHandler(new RIGrinderRecipeHandler()); - - API.registerRecipeHandler(new RICrusherRecipeHandler()); - API.registerUsageHandler(new RICrusherRecipeHandler()); - - API.registerRecipeHandler(new RIMixerRecipeHandler()); - API.registerUsageHandler(new RIMixerRecipeHandler()); - - API.registerRecipeHandler(new RISawmillRecipeHandler()); - API.registerUsageHandler(new RISawmillRecipeHandler()); - - API.registerRecipeHandler(new RISmelterRecipeHandler()); - API.registerUsageHandler(new RISmelterRecipeHandler()); - - for (Block block : ResonantEngine.resourceFactory.mixtureFactory.blockMixtureFluids.values()) - API.hideItem(new ItemStack(block)); - - for (Block block : ResonantEngine.resourceFactory.moltenFactory.blockMoltenFluids.values()) - API.hideItem(new ItemStack(block)); - - //API.hideItem(new ItemStack(CoreContent.blockDust())); - //API.hideItem(new ItemStack(CoreContent.blockRefinedDust())); - } - - @Override - public String getName() - { - return "Resonant Induction Plugin"; - } - - @Override - public String getVersion() - { - return "1.0"; - } - -} diff --git a/src/main/scala/resonantinduction/compatibility/nei/NEIResonantInductionConfig.scala b/src/main/scala/resonantinduction/compatibility/nei/NEIResonantInductionConfig.scala new file mode 100644 index 000000000..a25970909 --- /dev/null +++ b/src/main/scala/resonantinduction/compatibility/nei/NEIResonantInductionConfig.scala @@ -0,0 +1,36 @@ +package resonantinduction.compatibility.nei + +import codechicken.nei.api.{API, IConfigureNEI} +import net.minecraft.item.ItemStack +import resonant.engine.ResonantEngine + +class NEIResonantInductionConfig extends IConfigureNEI +{ + def loadConfig + { + API.registerRecipeHandler(new RIGrinderRecipeHandler) + API.registerUsageHandler(new RIGrinderRecipeHandler) + API.registerRecipeHandler(new RICrusherRecipeHandler) + API.registerUsageHandler(new RICrusherRecipeHandler) + API.registerRecipeHandler(new RIMixerRecipeHandler) + API.registerUsageHandler(new RIMixerRecipeHandler) + API.registerRecipeHandler(new RISawmillRecipeHandler) + API.registerUsageHandler(new RISawmillRecipeHandler) + API.registerRecipeHandler(new RISmelterRecipeHandler) + API.registerUsageHandler(new RISmelterRecipeHandler) + import scala.collection.JavaConversions._ + for (block <- ResonantEngine.resourceFactory.mixtureFactory.blockMixtureFluids.values) API.hideItem(new ItemStack(block)) + import scala.collection.JavaConversions._ + for (block <- ResonantEngine.resourceFactory.moltenFactory.blockMoltenFluids.values) API.hideItem(new ItemStack(block)) + } + + def getName: String = + { + return "Resonant Induction Plugin" + } + + def getVersion: String = + { + return "1.0" + } +} \ No newline at end of file diff --git a/src/main/scala/resonantinduction/compatibility/nei/RICrusherRecipeHandler.java b/src/main/scala/resonantinduction/compatibility/nei/RICrusherRecipeHandler.java deleted file mode 100644 index 1c73bd7d7..000000000 --- a/src/main/scala/resonantinduction/compatibility/nei/RICrusherRecipeHandler.java +++ /dev/null @@ -1,20 +0,0 @@ -package resonantinduction.compatibility.nei; - -import resonant.lib.utility.LanguageUtility; -import resonant.content.factory.resources.RecipeType; - -public class RICrusherRecipeHandler extends RITemplateRecipeHandler -{ - - @Override - public String getRecipeName() - { - return LanguageUtility.getLocal("resonantinduction.machine.crusher"); - } - - @Override - public RecipeType getMachine() - { - return RecipeType.CRUSHER; - } -} diff --git a/src/main/scala/resonantinduction/compatibility/nei/RICrusherRecipeHandler.scala b/src/main/scala/resonantinduction/compatibility/nei/RICrusherRecipeHandler.scala new file mode 100644 index 000000000..19a99c206 --- /dev/null +++ b/src/main/scala/resonantinduction/compatibility/nei/RICrusherRecipeHandler.scala @@ -0,0 +1,17 @@ +package resonantinduction.compatibility.nei + +import resonant.lib.utility.LanguageUtility +import resonant.content.factory.resources.RecipeType + +class RICrusherRecipeHandler extends RITemplateRecipeHandler +{ + def getRecipeName: String = + { + return LanguageUtility.getLocal("resonantinduction.machine.crusher") + } + + def getMachine: RecipeType = + { + return RecipeType.CRUSHER + } +} \ No newline at end of file diff --git a/src/main/scala/resonantinduction/compatibility/nei/RIGrinderRecipeHandler.java b/src/main/scala/resonantinduction/compatibility/nei/RIGrinderRecipeHandler.java deleted file mode 100644 index 8f456aee2..000000000 --- a/src/main/scala/resonantinduction/compatibility/nei/RIGrinderRecipeHandler.java +++ /dev/null @@ -1,20 +0,0 @@ -package resonantinduction.compatibility.nei; - -import resonant.lib.utility.LanguageUtility; -import resonant.content.factory.resources.RecipeType; - -public class RIGrinderRecipeHandler extends RITemplateRecipeHandler -{ - - @Override - public String getRecipeName() - { - return LanguageUtility.getLocal("resonantinduction.machine.grinder"); - } - - @Override - public RecipeType getMachine() - { - return RecipeType.GRINDER; - } -} diff --git a/src/main/scala/resonantinduction/compatibility/nei/RIGrinderRecipeHandler.scala b/src/main/scala/resonantinduction/compatibility/nei/RIGrinderRecipeHandler.scala new file mode 100644 index 000000000..a05d58ef1 --- /dev/null +++ b/src/main/scala/resonantinduction/compatibility/nei/RIGrinderRecipeHandler.scala @@ -0,0 +1,17 @@ +package resonantinduction.compatibility.nei + +import resonant.lib.utility.LanguageUtility +import resonant.content.factory.resources.RecipeType + +class RIGrinderRecipeHandler extends RITemplateRecipeHandler +{ + def getRecipeName: String = + { + return LanguageUtility.getLocal("resonantinduction.machine.grinder") + } + + def getMachine: RecipeType = + { + return RecipeType.GRINDER + } +} \ No newline at end of file diff --git a/src/main/scala/resonantinduction/compatibility/nei/RIMixerRecipeHandler.java b/src/main/scala/resonantinduction/compatibility/nei/RIMixerRecipeHandler.java deleted file mode 100644 index 68d56b8db..000000000 --- a/src/main/scala/resonantinduction/compatibility/nei/RIMixerRecipeHandler.java +++ /dev/null @@ -1,20 +0,0 @@ -package resonantinduction.compatibility.nei; - -import resonant.lib.utility.LanguageUtility; -import resonant.content.factory.resources.RecipeType; - -public class RIMixerRecipeHandler extends RITemplateRecipeHandler -{ - - @Override - public String getRecipeName() - { - return LanguageUtility.getLocal("resonantinduction.machine.mixer"); - } - - @Override - public RecipeType getMachine() - { - return RecipeType.MIXER; - } -} diff --git a/src/main/scala/resonantinduction/compatibility/nei/RIMixerRecipeHandler.scala b/src/main/scala/resonantinduction/compatibility/nei/RIMixerRecipeHandler.scala new file mode 100644 index 000000000..30a8ec6ed --- /dev/null +++ b/src/main/scala/resonantinduction/compatibility/nei/RIMixerRecipeHandler.scala @@ -0,0 +1,17 @@ +package resonantinduction.compatibility.nei + +import resonant.lib.utility.LanguageUtility +import resonant.content.factory.resources.RecipeType + +class RIMixerRecipeHandler extends RITemplateRecipeHandler +{ + def getRecipeName: String = + { + return LanguageUtility.getLocal("resonantinduction.machine.mixer") + } + + def getMachine: RecipeType = + { + return RecipeType.MIXER + } +} \ No newline at end of file diff --git a/src/main/scala/resonantinduction/compatibility/nei/RISawmillRecipeHandler.java b/src/main/scala/resonantinduction/compatibility/nei/RISawmillRecipeHandler.java deleted file mode 100644 index b1e2ca999..000000000 --- a/src/main/scala/resonantinduction/compatibility/nei/RISawmillRecipeHandler.java +++ /dev/null @@ -1,20 +0,0 @@ -package resonantinduction.compatibility.nei; - -import resonant.lib.utility.LanguageUtility; -import resonant.content.factory.resources.RecipeType; - -public class RISawmillRecipeHandler extends RITemplateRecipeHandler -{ - - @Override - public String getRecipeName() - { - return LanguageUtility.getLocal("resonantinduction.machine.sawmill"); - } - - @Override - public RecipeType getMachine() - { - return RecipeType.SAWMILL; - } -} diff --git a/src/main/scala/resonantinduction/compatibility/nei/RISawmillRecipeHandler.scala b/src/main/scala/resonantinduction/compatibility/nei/RISawmillRecipeHandler.scala new file mode 100644 index 000000000..88c0933d6 --- /dev/null +++ b/src/main/scala/resonantinduction/compatibility/nei/RISawmillRecipeHandler.scala @@ -0,0 +1,17 @@ +package resonantinduction.compatibility.nei + +import resonant.lib.utility.LanguageUtility +import resonant.content.factory.resources.RecipeType + +class RISawmillRecipeHandler extends RITemplateRecipeHandler +{ + def getRecipeName: String = + { + return LanguageUtility.getLocal("resonantinduction.machine.sawmill") + } + + def getMachine: RecipeType = + { + return RecipeType.SAWMILL + } +} \ No newline at end of file diff --git a/src/main/scala/resonantinduction/compatibility/nei/RISmelterRecipeHandler.java b/src/main/scala/resonantinduction/compatibility/nei/RISmelterRecipeHandler.java deleted file mode 100644 index 255103eef..000000000 --- a/src/main/scala/resonantinduction/compatibility/nei/RISmelterRecipeHandler.java +++ /dev/null @@ -1,20 +0,0 @@ -package resonantinduction.compatibility.nei; - -import resonant.lib.utility.LanguageUtility; -import resonant.content.factory.resources.RecipeType; - -public class RISmelterRecipeHandler extends RITemplateRecipeHandler -{ - - @Override - public String getRecipeName() - { - return LanguageUtility.getLocal("resonantinduction.machine.smelter"); - } - - @Override - public RecipeType getMachine() - { - return RecipeType.SMELTER; - } -} diff --git a/src/main/scala/resonantinduction/compatibility/nei/RISmelterRecipeHandler.scala b/src/main/scala/resonantinduction/compatibility/nei/RISmelterRecipeHandler.scala new file mode 100644 index 000000000..e9b69b848 --- /dev/null +++ b/src/main/scala/resonantinduction/compatibility/nei/RISmelterRecipeHandler.scala @@ -0,0 +1,17 @@ +package resonantinduction.compatibility.nei + +import resonant.lib.utility.LanguageUtility +import resonant.content.factory.resources.RecipeType + +class RISmelterRecipeHandler extends RITemplateRecipeHandler +{ + def getRecipeName: String = + { + return LanguageUtility.getLocal("resonantinduction.machine.smelter") + } + + def getMachine: RecipeType = + { + return RecipeType.SMELTER + } +} \ No newline at end of file