SpongeAPI icon indicating copy to clipboard operation
SpongeAPI copied to clipboard

Make ItemStackComparators cataloged type

Open XakepSDK opened this issue 5 years ago • 3 comments

Make ItemStackComparators cataloged type, so devs don't need to implement their own workaround for CommpandSpec and config serialization.

XakepSDK avatar Nov 06 '19 10:11 XakepSDK

When would you define/select an itemstack comparator via command/config?

ST-DDT avatar Nov 06 '19 10:11 ST-DDT

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:

  1. Admin controls how ItemStacks are compared
  2. Admin can add his own ItemStack comparators by writing a plugin

XakepSDK avatar Nov 06 '19 10:11 XakepSDK

Sounds like an exotic usecase to me. But it probably wont hurt either.

ST-DDT avatar Nov 06 '19 10:11 ST-DDT