Package de.marcely.bedwars.api.event
Class ShopGUIPostProcessEvent
java.lang.Object
org.bukkit.event.Event
de.marcely.bedwars.api.event.ShopGUIPostProcessEvent
Gets called during the post processing of a shop GUI
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
Event.Result
-
Constructor Summary
ConstructorDescriptionShopGUIPostProcessEvent
(Player player, ShopLayout design, ShopPage page, @Nullable GUI gui) -
Method Summary
Modifier and TypeMethodDescription@Nullable GUI
getGUI()
Returns the GUI that'll be shown to the player.static HandlerList
Returns the layout that was used for the shop GUI@Nullable ShopPage
getPage()
Returns the page that was used to build the shop GUIReturns the player that opened the shopvoid
Set the GUI that shall be shown to the player.Methods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
Constructor Details
-
ShopGUIPostProcessEvent
public ShopGUIPostProcessEvent(Player player, ShopLayout design, ShopPage page, @Nullable @Nullable GUI gui)
-
-
Method Details
-
getPlayer
Returns the player that opened the shop- Returns:
- The player involved in this
-
getLayout
Returns the layout that was used for the shop GUI- Returns:
- The used layout
-
getPage
Returns the page that was used to build the shop GUI- Returns:
- The page opened
-
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
Set the GUI that shall be shown to the player.Won't open any gui when passing
null
- Parameters:
gui
- The new gui
-
getHandlers
- Specified by:
getHandlers
in classEvent
-
getHandlerList
-