SpongeAPI
SpongeAPI copied to clipboard
Make ItemStackComparators cataloged type
Make ItemStackComparators cataloged type, so devs don't need to implement their own workaround for CommpandSpec and config serialization.
When would you define/select an itemstack comparator via command/config?
I'm doing plugin, it's logic depends on ItemStack comparison results, i want to give admin more control over how comparison is done. Benefits:
- Admin controls how ItemStacks are compared
- Admin can add his own ItemStack comparators by writing a plugin
Sounds like an exotic usecase to me. But it probably wont hurt either.