October 13, 201410 yr Hmm... Who could have predicted that using the same package and class name as another file could cause issues? Something in NEI is trying to call a method from your class that isn't there. If I helped please press the Thank You button. Check out my mods at http://www.curse.com/users/The_Fireplace/projects
November 15, 201410 yr Here's an example of the class you need to include in your mod to hide items from NEI: package the_fireplace.unlogic.compat.nei; import net.minecraft.item.ItemStack; import net.minecraftforge.oredict.OreDictionary; import the_fireplace.unlogic.unbase; import the_fireplace.unlogic.config.UnLogicConfigValues; import codechicken.nei.api.API; import codechicken.nei.api.IConfigureNEI; import codechicken.nei.api.ItemInfo; import cpw.mods.fml.common.Mod; import cpw.mods.fml.common.Optional; @Optional.Interface(iface = "codechicken.nei.api.API", modid = "NotEnoughItems") public class NEIUnLogicConfig implements IConfigureNEI { @Optional.Method(modid="NotEnoughItems") @Override public String getName() { return unbase.class.getAnnotation(Mod.class).name(); } @Optional.Method(modid="NotEnoughItems") @Override public String getVersion() { return unbase.class.getAnnotation(Mod.class).version(); } @Optional.Method(modid="NotEnoughItems") @Override public void loadConfig() { API.hideItem(new ItemStack(unbase.BlazeCake)); API.hideItem(new ItemStack(unbase.ChocolateCake)); API.hideItem(new ItemStack(unbase.QCrop, 1, OreDictionary.WILDCARD_VALUE)); API.hideItem(new ItemStack(unbase.DepletionFurnaceOn)); } } It is important that the class name be NEI[insert mod name here]Config If I helped please press the Thank You button. Check out my mods at http://www.curse.com/users/The_Fireplace/projects
November 15, 201410 yr Just to clarify what The_Fireplace said (which is 100% correct) nei scans all mods loaded for a class named NEI[some name]Config and calls the "loadConfig()" method within it. For this to work you need to add nei to your workspace as a library. I am the author of Draconic Evolution
November 17, 201410 yr you shouldn't delete the main post because other people could have to same problem, at least put in what you did to fix it.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.