Class PlayerOpenUpgradeShopEvent
java.lang.Object
org.bukkit.event.Event
org.bukkit.event.player.PlayerEvent
de.marcely.bedwars.api.event.player.PlayerOpenUpgradeShopEvent
- All Implemented Interfaces:
- ArenaEvent,- Cancellable
Gets called when the player is opening the upgrade shop
- 
Nested Class SummaryNested classes/interfaces inherited from class org.bukkit.event.EventEvent.Result
- 
Field SummaryFields inherited from class org.bukkit.event.player.PlayerEventplayer
- 
Constructor SummaryConstructorsConstructorDescriptionPlayerOpenUpgradeShopEvent(Player player, @Nullable Arena arena, Team team, UpgradeShopLayout layout, UpgradeShopOpenCause cause, @Nullable Object layoutData) 
- 
Method SummaryModifier and TypeMethodDescription@Nullable ArenagetArena()Returns the arena in which the shop was opened.getCause()Returns the way how the player opened the upgrade shopstatic HandlerListReturns the layout that will be used for the GUI.@Nullable ObjectA layout may hold and pass around data during its session.getTeam()Returns the arena in which the shop was opened.voidsetLayout(UpgradeShopLayout layout) Set the layout of the shop GUI that shall be shown.voidsetLayoutData(@Nullable Object layoutData) A layout may hold and pass around data during its session.Methods inherited from class org.bukkit.event.player.PlayerEventgetPlayerMethods inherited from class org.bukkit.event.EventgetEventName, isAsynchronousMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.bukkit.event.CancellableisCancelled, setCancelled
- 
Constructor Details- 
PlayerOpenUpgradeShopEventpublic PlayerOpenUpgradeShopEvent(Player player, @Nullable @Nullable Arena arena, Team team, UpgradeShopLayout layout, UpgradeShopOpenCause cause, @Nullable @Nullable Object layoutData) 
 
- 
- 
Method Details- 
getArenaReturns the arena in which the shop was opened.It's equal to the arena in which the player is playing. - Specified by:
- getArenain interface- ArenaEvent
- Returns:
- The arena in which the upgrade shop was opened
 
- 
getTeamReturns the arena in which the shop was opened.The team that the player is trying to buy upgrades for - Returns:
- The team for which the upgrade shop was opened
 
- 
getLayoutReturns the layout that will be used for the GUI.- Returns:
- The layout that shall be shown
 
- 
setLayoutSet the layout of the shop GUI that shall be shown.- Parameters:
- layout- The layout that shall be shown to the player
 
- 
getLayoutDataA layout may hold and pass around data during its session.This might be useful when you're trying to manipulate the layout. - Returns:
- The layout specific data
 
- 
setLayoutDataA layout may hold and pass around data during its session.This might be useful when you're trying to manipulate the layout. Keep in mind that errors might occur with the layout when inserting unexpected data. - Parameters:
- layoutData- The new layout data
 
- 
getCauseReturns the way how the player opened the upgrade shop- Returns:
- The cause of the opening
 
- 
getHandlers- Specified by:
- getHandlersin class- Event
 
- 
getHandlerList
 
-