Class ShopGUIPostProcessEvent

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

public class ShopGUIPostProcessEvent extends Event
Gets called during the post processing of a shop GUI
  • Constructor Details

    • ShopGUIPostProcessEvent

      public ShopGUIPostProcessEvent(Player player, ShopLayout design, ShopPage page, @Nullable @Nullable GUI gui)
  • Method Details

    • getPlayer

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

      public ShopLayout getLayout()
      Returns the layout that was used for the shop GUI
      Returns:
      The used layout
    • getPage

      @Nullable public @Nullable ShopPage getPage()
      Returns the page that was used to build the shop GUI
      Returns:
      The page opened
    • 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()