public interface RewardableAction
| Modifier and Type | Method and Description |
|---|---|
boolean |
canPerform(org.bukkit.entity.Player player,
Action action,
int count)
Determine whether or not the given player can be rewarded or penalized by the given action and item count.
|
void |
performAction(org.bukkit.entity.Player player,
org.bukkit.inventory.ItemStack item,
Action action,
int count)
Performs a given action for a player.
|
void performAction(org.bukkit.entity.Player player,
org.bukkit.inventory.ItemStack item,
Action action,
int count)
player - - player to perform action.item - - item that caused this action.action - - the action (reward) itself.count - - number of times to perform it.boolean canPerform(org.bukkit.entity.Player player,
Action action,
int count)
player - - player to test against.action - - action to perform.count - - number of times to perform the action.