Customization
Ignoring Menus
You can tell Inventory Essentials to ignore specific menus so that none of its features are active on them. This is useful for cases where there are conflicts or other issues between the two mods.
Place a JSON file in your game directory at config/inventoryessentials/ignores/example.json such as this:
{
"ignoredMenuTypes": [
"minecraft:smithing",
"modid:my_menu_type"
],
"ignoredMenuClasses": [
"com.example.mod.menu.MyContainerMenu"
],
"ignoredSlotClasses": [
"com.example.mod.menu.slot.FilterSlot"
],
"ignoredScreenClasses": [
"com.example.mod.client.screen.MyMenuScreen"
]
}
For Mod Developers
The same ignore definitions can be shipped directly by your mod, for cases where you know there are incompatibilities and you want Inventory Essentials to stay away.
Place the JSON file in the inventoryessentials/ignores/ directory at the root of your mod JAR (not inside data or assets!). The file should have the same structure as above and will be picked up automatically, causing Inventory Essentials to be inactive on the matching menus.
Extending Compatibility
Inventory Essentials can also load extension files that add support for specific modded slots or ignore only specific slots on a screen.
Place extension JSON files in your game directory at config/inventoryessentials/extensions/example.json.
{
"sorting": {
"sortableSlots": [
{
"menuType": "modid:my_menu_type",
"slotClass": "com.example.mod.menu.slot.StorageSlot"
}
]
},
"ignores": [
{
"menuType": "modid:my_menu_type",
"slotClass": "com.example.mod.menu.slot.FilterSlot"
}
]
}
sortableSlots tells Inventory Essentials that matching slots can be included when middle-click sorting. ignores tells Inventory Essentials to leave matching slots alone while keeping the rest of the screen active.
Each entry can match by menuType, menuClass, screenClass and slotClass. Only include the fields you need to identify the slot or screen.
For Mod Developers
Mods can ship the same extension files inside the inventoryessentials/extensions/ directory at the root of the mod JAR. Inventory Essentials already uses this for bundled AE2 and Mekanism sorting support.