Added a new method onlyHasInnateEnchantments() that returns if a stack only has the enchants (or lesser) that it has, by it InnateEnchantment definition, or other enchants have been added by other means.
The mixin in ItemStack allows the Enchanting Table (and other mods) to recognise see the stack as enchantable, even if it has its innate enchantments. Normally that method would always return false, if a stack already had enchantments.
Added a new method
onlyHasInnateEnchantments()
that returns if a stack only has the enchants (or lesser) that it has, by it InnateEnchantment definition, or other enchants have been added by other means.The mixin in
ItemStack
allows the Enchanting Table (and other mods) to recognise see the stack as enchantable, even if it has its innate enchantments. Normally that method would always return false, if a stack already had enchantments.