Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

  • 2 months later...
  • 1 month later...

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

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

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.