Interface Button
- All Known Implementing Classes:
AnimatedButton,InputButton,ListButton,MultiButton,OutputButton,PredicateButton,SimpleButton
public interface Button
The button
-
Method Summary
Modifier and TypeMethodDescriptiondefault Consumer<ActionItem> Get a consumer that applies actions to the action itembooleanapply(@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
-