Inventory item checks

What are the best ways to:

  • Check the total quantity of a certain ItemStack in an inventory.
  • Check if an inventory contains certain items.
  • Remove certain items from an inventory.

Not sure if it’s the best way to do it, but this is how I do it in my plugin PlayerShopsRPG:

1 Like

The Inventory API isn’t incredibly well implemented right now, so you’ll have to do silly stuff to do simple things.