Filters API
  • Home
  • Tips
  • Using Filters API
    • Setting up
    • Registering filters
    • Adding items
  • Advanced
    • Registering uncategorized filter
    • Configuring reserved button
    • Disabling filters
  • Unsupported
    • Introduction
    • Sorting filters
    • Removing filters
Powered by GitBook
On this page

Was this helpful?

  1. Advanced

Registering uncategorized filter

Filters API is a complete library.

PreviousAdding itemsNextConfiguring reserved button

Last updated 10 months ago

Was this helpful?

Filters API allows you to add filters for other mods (even vanilla). If so, registering the uncategorized filter to avoid some items disappearing is very important.

You can register an uncategorized filter for the tab. All items in the tab which not belong to any filter will be categorized to it.

A tab can have a single uncategorized filter only. If there are no other filters or no items are uncategorized, this filter will not appear on the screen.

Call FilterBuilder.registerUncategorizedItemsFilter(ItemGroup) to register the uncategorized filter.

Filter FILTER = FilterBuilder.registerUncategorizedItemsFilter(CREATIVE_MODE_TAB);

See also

FilterBuilder
The javadoc (1.16~1.19.4)