I have an item that I want to be able to enchant, however this item is a new item and does not extend any of the current enchantable items. To create enchantments for it I am under the impression that I need to create a new EnumEnchantmentType, is that correct? However I am having trouble creating it.
public static final EnumEnchantmentType LIGHTER = EnumHelper.addEnchantmentType("LIGHTER", ItemLighter.class);
Looking at previous examples, there never was a second variable (where I have ItemLighter.class) in .addEnchantmentType, so I'm unsure what to put there. Getting the error "The method addEnchantmentType(String, Predicate<Item>) in the type EnumHelper is not applicable for the arguments (String, Class<ItemLighter>)"
No idea what Predicate<Item> means, anyone know? Any help is appreciated