Package de.marcely.bedwars.tools.gui
Interface ClickListener
- All Known Implementing Classes:
ClickListener.Proxy
,ClickListener.Silent
public interface ClickListener
Listens for clicks on items
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic class
Wraps an existing ClickListener instance, where you may optionally override its listener methods.static class
An implementation of ClickListener that does effectively nothing -
Method Summary
Modifier and TypeMethodDescriptionvoid
Gets called whenever a player clicked on an item in the GUIdefault void
onNumClick
(Player player, int number) Gets called when a player clicks on a number on his keyboard while hovering over item.
-
Method Details
-
onClick
Gets called whenever a player clicked on an item in the GUI- Parameters:
player
- The player who clickedleftClick
- If it was a left or right clickshiftClick
- If he pressed shift while clicking on it
-
onNumClick
Gets called when a player clicks on a number on his keyboard while hovering over item.- Parameters:
player
- The player who clickednumber
- The number clicked on the keyboard. Ranges from 1 to 9
-