- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface InventoryCondition
Can be added to any
AbstractInventory.addInventoryCondition(InventoryCondition)in order to listen to any issued clicks.
(Player player, int slot, ClickType clickType, InventoryConditionResult inventoryConditionResult)
player- the player who clicked in the inventory
slot- the slot clicked, can be -999 if the click is out of the inventory
clickType- the click type
inventoryConditionResult- the result of this callback