Interface Button
- All Known Implementing Classes:
AnimatedButton
,ListButton
,MultiButton
,PredicateButton
,SimpleButton
public interface Button
The button
-
Method Summary
Modifier and TypeMethodDescriptiondefault Consumer
<ActionItem> Get a consumer that applies actions to the action itemboolean
apply
(@NotNull UUID uuid, @NotNull ActionItem actionItem) Apply actions to the action item
-
Method Details
-
apply
Apply actions to the action item- Parameters:
uuid
- the uuid of the playeractionItem
- the action item- Returns:
- true if any action was applied. Can return false in a conditional case (e.g. predicate button)
-
apply
Get a consumer that applies actions to the action item- Parameters:
uuid
- the uuid of the player- Returns:
- the consumer
-