Interface InventoryCondition

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
  • Method Details

    • accept

      void accept(Player player, int slot, ClickType clickType, InventoryConditionResult inventoryConditionResult)
      Called when a Player clicks in the inventory where this InventoryCondition has been added to.
      Parameters:
      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