Class UpgradeShopGUIPostProcessEvent

java.lang.Object
org.bukkit.event.Event
de.marcely.bedwars.api.event.UpgradeShopGUIPostProcessEvent

public class UpgradeShopGUIPostProcessEvent extends Event
  • Constructor Details

    • UpgradeShopGUIPostProcessEvent

      public UpgradeShopGUIPostProcessEvent(Player player, UpgradeShopLayout layout, @Nullable @Nullable GUI gui)
  • Method Details

    • getPlayer

      public Player getPlayer()
      Returns the player that opened the upgrade shop
      Returns:
      The player involved in this
    • getLayout

      public UpgradeShopLayout getLayout()
      Returns the layout that was used for the upgrade shop GUI
      Returns:
      The used layout
    • getGUI

      @Nullable public @Nullable GUI getGUI()
      Returns the GUI that'll be shown to the player.

      Can be null whereby the GUI won't be shown

      Returns:
      The gui that will be displayed
    • setGUI

      public void setGUI(@Nullable @Nullable GUI gui)
      Set the GUI that shall be shown to the player.

      Won't open any gui when passing null

      Parameters:
      gui - The new gui
    • getHandlers

      public HandlerList getHandlers()
      Specified by:
      getHandlers in class Event
    • getHandlerList

      public static HandlerList getHandlerList()