@FunctionalInterface
public interface Rule
Modifier and Type | Method and Description |
---|---|
boolean |
check(org.bukkit.entity.Player player,
Menu menu,
Item clickedItem)
Check if the player meets the rule
|
boolean check(org.bukkit.entity.Player player, Menu menu, Item clickedItem)
player
- Player to checkmenu
- Menu in which this rule worksclickedItem
- An item which player might click and initiate this checking. Might be null