Package com.marcusslover.plus.lib.item
Interface Canvas.ButtonClick
- All Known Subinterfaces:
Canvas.GenericClick,Canvas.SelfInventoryClick
- Enclosing class:
Canvas
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
A button click. This is called when a player clicks on the button.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionvoidonClick(@NotNull Canvas.ButtonClick.ButtonClickContext ctx) Called when a target clicks on the button.
-
Method Details
-
onClick
Called when a target clicks on the button.- Parameters:
ctx- the context of the click
-