Registering filters
Filters API is an easy-to-use library.
Call FilterBuilder.registerFilter(ItemGroup, Text, Supplier) to register a filter for the specific tab. The order of filters depends on the order of registering.
Filter FILTER = FilterBuilder.registerFilter(CREATIVE_MODE_TAB, new TranslatableText("filter.modid.filter_name"), () -> new ItemStack(Items.ITEM));See also
Last updated
Was this helpful?