Class GUIListener<Plugin extends org.bukkit.plugin.java.JavaPlugin>

java.lang.Object
at.hugob.plugin.library.gui.GUIListener<Plugin>
Type Parameters:
Plugin - The plugin this GUI Listener is responsible for
All Implemented Interfaces:
org.bukkit.event.Listener

public abstract class GUIListener<Plugin extends org.bukkit.plugin.java.JavaPlugin> extends Object implements org.bukkit.event.Listener
Has All the basic Bukkit Listeners needed for a GUI to function
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    Sets up everything needed for the GUIListener
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onInventoryClick(org.bukkit.event.inventory.InventoryClickEvent event)
    Listens to the InventoryClickEvent and delegates it to the correct GUIHandler
    void
    onInventoryClose(org.bukkit.event.inventory.InventoryCloseEvent event)
    Listens to the InventoryCloseEvent and delegates it to the correct GUIHandler
    void
    onInventoryDrag(org.bukkit.event.inventory.InventoryDragEvent event)
    Listens to the InventoryDragEvent and delegates it to the correct GUIHandler

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • GUIListener

      protected GUIListener()
      Sets up everything needed for the GUIListener
  • Method Details

    • onInventoryClick

      public void onInventoryClick(org.bukkit.event.inventory.InventoryClickEvent event)
      Listens to the InventoryClickEvent and delegates it to the correct GUIHandler
      Parameters:
      event - the InventoryClickEvent
    • onInventoryDrag

      public void onInventoryDrag(org.bukkit.event.inventory.InventoryDragEvent event)
      Listens to the InventoryDragEvent and delegates it to the correct GUIHandler
      Parameters:
      event - the InventoryDragEvent
    • onInventoryClose

      public void onInventoryClose(org.bukkit.event.inventory.InventoryCloseEvent event)
      Listens to the InventoryCloseEvent and delegates it to the correct GUIHandler
      Parameters:
      event - the InventoryCloseEvent