Package de.marcely.bedwars.api.event
Class UpgradeShopGUIPostProcessEvent
java.lang.Object
org.bukkit.event.Event
de.marcely.bedwars.api.event.UpgradeShopGUIPostProcessEvent
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
Event.Result
-
Constructor Summary
ConstructorDescriptionUpgradeShopGUIPostProcessEvent
(Player player, UpgradeShopLayout layout, @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 upgrade shop GUIReturns the player that opened the upgrade shopvoid
Set the GUI that shall be shown to the player.Methods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
Constructor Details
-
UpgradeShopGUIPostProcessEvent
public UpgradeShopGUIPostProcessEvent(Player player, UpgradeShopLayout layout, @Nullable @Nullable GUI gui)
-
-
Method Details
-
getPlayer
Returns the player that opened the upgrade shop- Returns:
- The player involved in this
-
getLayout
Returns the layout that was used for the upgrade shop GUI- Returns:
- The used layout
-
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
-