I'm in the process of making an axe-only enchantment, which means I have to append to EnumEnchantmentType
When calling EnumHelper.addEnchantmentType, a second parameter is needed. I saw on github that Lex make a commit on 16/11/16 that made some changes to the EnumHelper, which I don't quite understand. Previously you only needed to provide a string, now you need to provide a Predicate<Item> which is then passed on to addEnum. How do I use this? And more importantly what is it's purpose?
(Here's a link showing the changes the commit made to the file: https://www.diffchecker.com/ICRVepsf)
Thanks