Adding items
Filters API is an easy-to-use library.
Last updated
Was this helpful?
Filters API is an easy-to-use library.
Last updated
Was this helpful?
The following codes are just examples. They will throw exceptions on the server. You should ensure that Filters API codes are executed only on the client.
The tab that has filters will display categorized items only, except that you have registered .
Call Filter.addItems(Item...)
after registering items to add them to the filter.
You should add items to filters after ITEMS.register()
is called.
Congratulations! Now you can find filters when opening the creative mode tab.