diff options
| author | miozune <miozune@gmail.com> | 2024-09-07 12:49:42 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-09-07 03:49:42 +0000 |
| commit | d57edae3a55131600090a3aee00c85c4b94621ad (patch) | |
| tree | f3eee9af20c8907b33504773fee24e3779512e68 /src/main/java/kubatech/nei | |
| parent | 82604eadb847335e4b4ddf2e90a28b325786837b (diff) | |
| download | GT5-Unofficial-d57edae3a55131600090a3aee00c85c4b94621ad.tar.gz GT5-Unofficial-d57edae3a55131600090a3aee00c85c4b94621ad.tar.bz2 GT5-Unofficial-d57edae3a55131600090a3aee00c85c4b94621ad.zip | |
Followup for the great renaming & cleanup IMC for NEI (#3083)
Co-authored-by: Martin Robertz <dream-master@gmx.net>
Co-authored-by: boubou19 <miisterunknown@gmail.com>
Diffstat (limited to 'src/main/java/kubatech/nei')
| -rw-r--r-- | src/main/java/kubatech/nei/IMCForNEI.java | 46 | ||||
| -rw-r--r-- | src/main/java/kubatech/nei/NEIConfig.java | 6 |
2 files changed, 6 insertions, 46 deletions
diff --git a/src/main/java/kubatech/nei/IMCForNEI.java b/src/main/java/kubatech/nei/IMCForNEI.java deleted file mode 100644 index fe1eb64ebb..0000000000 --- a/src/main/java/kubatech/nei/IMCForNEI.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * spotless:off - * KubaTech - Gregtech Addon - * Copyright (C) 2022 - 2024 kuba6000 - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this library. If not, see <https://www.gnu.org/licenses/>. - * spotless:on - */ - -package kubatech.nei; - -import static gregtech.api.enums.Mods.EnderIO; - -import net.minecraft.nbt.NBTTagCompound; - -import cpw.mods.fml.common.event.FMLInterModComms; - -public class IMCForNEI { - - public static void IMCSender() { - if (EnderIO.isModLoaded()) sendCatalyst("mobsinfo.mobhandler", "gregtech:gt.blockmachines:14201"); - } - - private static void sendCatalyst(String aName, String aStack, int aPriority) { - NBTTagCompound aNBT = new NBTTagCompound(); - aNBT.setString("handlerID", aName); - aNBT.setString("itemName", aStack); - aNBT.setInteger("priority", aPriority); - FMLInterModComms.sendMessage("NotEnoughItems", "registerCatalystInfo", aNBT); - } - - private static void sendCatalyst(String aName, String aStack) { - sendCatalyst(aName, aStack, 0); - } -} diff --git a/src/main/java/kubatech/nei/NEIConfig.java b/src/main/java/kubatech/nei/NEIConfig.java index 2d1927f5c2..dad4b9aa93 100644 --- a/src/main/java/kubatech/nei/NEIConfig.java +++ b/src/main/java/kubatech/nei/NEIConfig.java @@ -20,6 +20,8 @@ package kubatech.nei; +import static gregtech.api.enums.Mods.EnderIO; +import static gregtech.api.enums.Mods.MobsInfo; import static kubatech.api.enums.ItemList.LegendaryBlackTea; import static kubatech.api.enums.ItemList.LegendaryButterflyTea; import static kubatech.api.enums.ItemList.LegendaryEarlGrayTea; @@ -37,11 +39,15 @@ import static kubatech.api.enums.ItemList.LegendaryYellowTea; import codechicken.nei.api.API; import codechicken.nei.api.IConfigureNEI; import kubatech.Tags; +import kubatech.api.enums.ItemList; public class NEIConfig implements IConfigureNEI { @Override public void loadConfig() { + if (MobsInfo.isModLoaded() && EnderIO.isModLoaded()) { + API.addRecipeCatalyst(ItemList.ExtremeEntityCrusher.get(1), "mobsinfo.mobhandler"); + } API.hideItem(LegendaryBlackTea.get(1)); API.hideItem(LegendaryButterflyTea.get(1)); API.hideItem(LegendaryEarlGrayTea.get(1)); |
