Package de.marcely.bedwars.tools.gui
Class ClickListener.Proxy
java.lang.Object
de.marcely.bedwars.tools.gui.ClickListener.Proxy
- All Implemented Interfaces:
ClickListener
- Enclosing interface:
ClickListener
Wraps an existing ClickListener instance, where you may optionally override its listener methods.
-
Nested Class Summary
Nested classes/interfaces inherited from interface de.marcely.bedwars.tools.gui.ClickListener
ClickListener.Proxy, ClickListener.Silent
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Gets called whenever a player clicked on an item in the GUIvoid
onNumClick
(Player player, int number) Gets called when a player clicks on a number on his keyboard while hovering over item.
-
Constructor Details
-
Proxy
-
-
Method Details
-
onClick
Description copied from interface:ClickListener
Gets called whenever a player clicked on an item in the GUI- Specified by:
onClick
in interfaceClickListener
- Parameters:
player
- The player who clickedleftClick
- If it was a left or right clickshiftClick
- If he pressed shift while clicking on it
-
onNumClick
Description copied from interface:ClickListener
Gets called when a player clicks on a number on his keyboard while hovering over item.- Specified by:
onNumClick
in interfaceClickListener
- Parameters:
player
- The player who clickednumber
- The number clicked on the keyboard. Ranges from 1 to 9
-