Class ClickListener.Proxy

java.lang.Object
de.marcely.bedwars.tools.gui.ClickListener.Proxy
All Implemented Interfaces:
ClickListener
Enclosing interface:
ClickListener

public static class ClickListener.Proxy extends Object implements ClickListener
Wraps an existing ClickListener instance, where you may optionally override its listener methods.
  • Constructor Details

  • Method Details

    • onClick

      public void onClick(Player player, boolean leftClick, boolean shiftClick)
      Description copied from interface: ClickListener
      Gets called whenever a player clicked on an item in the GUI
      Specified by:
      onClick in interface ClickListener
      Parameters:
      player - The player who clicked
      leftClick - If it was a left or right click
      shiftClick - If he pressed shift while clicking on it
    • onNumClick

      public void onNumClick(Player player, int number)
      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 interface ClickListener
      Parameters:
      player - The player who clicked
      number - The number clicked on the keyboard. Ranges from 1 to 9