Skip to content

Add InventoryContents#remove method(s) #38

Open
@MinusKube

Description

@MinusKube

Add some methods to remove items from the inventory, with different methods for:

  • Removing the first stack of the found item (#removeFirst(item))
  • Removing a certain amount of the found item (#removeAmount(item, amount))
  • Removing all the stacks of the found item (#removeAll(item))

These methods would all ask an ItemStack and would ignore the amount property of the given ItemStack to avoid confusions.

We can also make overload of these methods with ClickableItems instead of ItemStacks, but it's maybe not worth it.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions