Class PlayerRenderCosmeticShopEvent
java.lang.Object
org.bukkit.event.Event
org.bukkit.event.player.PlayerEvent
de.marcely.bedwars.api.cosmetics.event.PlayerRenderCosmeticShopEvent
Gets called after a shop has been rendered and is about to be shown to the player.
There is also PlayerOpenCosmeticShopEvent which is called before the shop is rendered.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
Event.Result -
Field Summary
Fields inherited from class org.bukkit.event.player.PlayerEvent
player -
Constructor Summary
ConstructorsConstructorDescriptionPlayerRenderCosmeticShopEvent(Player player, CosmeticPlayer playerData, PlayerBalanceSnapshot balanceSnapshot, Shop shop, GUI gui) -
Method Summary
Modifier and TypeMethodDescriptionGets the balance snapshot of the player.getGui()Gets the rendered GUI of the shop.static HandlerListGets the loaded cosmetic player data of the player.getShop()Gets the shop the player is trying to open.Methods inherited from class org.bukkit.event.player.PlayerEvent
getPlayerMethods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
Constructor Details
-
PlayerRenderCosmeticShopEvent
public PlayerRenderCosmeticShopEvent(Player player, CosmeticPlayer playerData, PlayerBalanceSnapshot balanceSnapshot, Shop shop, GUI gui)
-
-
Method Details
-
getShop
Gets the shop the player is trying to open.- Returns:
- The shop the player is trying to open.
-
getPlayerData
Gets the loaded cosmetic player data of the player.- Returns:
- The loaded cosmetic player data of the player.
-
getBalanceSnapshot
Gets the balance snapshot of the player.- Returns:
- The balance snapshot of the player.
-
getGui
Gets the rendered GUI of the shop.- Returns:
- The rendered GUI of the shop.
-
getHandlers
- Specified by:
getHandlersin classEvent
-
getHandlerList
-