Class GuiController

java.lang.Object
dev.piglin.piglinworldapi.gui.GuiController
All Implemented Interfaces:
org.bukkit.event.Listener

public class GuiController extends Object implements org.bukkit.event.Listener
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated.
    Should be refactored to be private or package-private
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Closes all the registered guis
    void
    onInventoryClick​(org.bukkit.event.inventory.InventoryClickEvent event)
     
    void
    onInventoryClose​(org.bukkit.event.inventory.InventoryCloseEvent event)
     
    void
    onInventoryDrag​(org.bukkit.event.inventory.InventoryDragEvent event)
     
    void
    open​(CustomGui gui, org.bukkit.entity.Player player)
    Opens the gui to the player and registers listeners for it

    Methods inherited from class java.lang.Object

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

    • GuiController

      @Deprecated public GuiController()
      Deprecated.
      Should be refactored to be private or package-private
  • Method Details

    • open

      public void open(CustomGui gui, org.bukkit.entity.Player player)
      Opens the gui to the player and registers listeners for it
      Parameters:
      gui - The gui
      player - The player
    • closeAll

      public void closeAll()
      Closes all the registered guis
    • onInventoryClick

      public void onInventoryClick(org.bukkit.event.inventory.InventoryClickEvent event)
    • onInventoryClose

      public void onInventoryClose(org.bukkit.event.inventory.InventoryCloseEvent event)
    • onInventoryDrag

      public void onInventoryDrag(org.bukkit.event.inventory.InventoryDragEvent event)