Class UpgradeGUI

java.lang.Object
valorless.havenbags.gui.UpgradeGUI
All Implemented Interfaces:
org.bukkit.event.Listener

public class UpgradeGUI extends Object implements org.bukkit.event.Listener
UpgradeGUI is a GUI for upgrading bags or applying skins to them. It allows players to upgrade their bags to larger sizes or apply skins using tokens. The GUI is opened by right-clicking a specific block (defined in the config).
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
    Static class to keep track of all open UpgradeGUIs.
    static enum 
    Enum to define the type of result for the upgrade GUI.
  • Constructor Summary

    Constructors
    Constructor
    Description
    UpgradeGUI(org.bukkit.entity.Player player)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Close(List<org.bukkit.inventory.ItemStack> items)
    Closes the UpgradeGUI and returns the items to the player's inventory.
    org.bukkit.inventory.Inventory
     
    void
    onInventoryClick(org.bukkit.event.inventory.InventoryClickEvent event)
     
    void
    onInventoryClickResult(org.bukkit.event.inventory.InventoryClickEvent event)
     
    void
    onInventoryClose(org.bukkit.event.inventory.InventoryCloseEvent event)
     
    void
    onInventoryDrag(org.bukkit.event.inventory.InventoryDragEvent event)
     
    void
    onInventoryShiftClick(org.bukkit.event.inventory.InventoryClickEvent event)
     

    Methods inherited from class java.lang.Object

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

    • UpgradeGUI

      public UpgradeGUI(org.bukkit.entity.Player player)
  • Method Details

    • GetInv

      public org.bukkit.inventory.Inventory GetInv()
    • onInventoryDrag

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

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

      public void onInventoryShiftClick(org.bukkit.event.inventory.InventoryClickEvent event)
    • onInventoryClickResult

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

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

      public void Close(List<org.bukkit.inventory.ItemStack> items)
      Closes the UpgradeGUI and returns the items to the player's inventory.
      Parameters:
      items - The items to return to the player.