Class PlayerRenderCosmeticShopEvent

java.lang.Object
org.bukkit.event.Event
org.bukkit.event.player.PlayerEvent
de.marcely.bedwars.api.cosmetics.event.PlayerRenderCosmeticShopEvent

public class PlayerRenderCosmeticShopEvent extends PlayerEvent
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.

  • Constructor Details

  • Method Details

    • getShop

      public Shop getShop()
      Gets the shop the player is trying to open.
      Returns:
      The shop the player is trying to open.
    • getPlayerData

      public CosmeticPlayer getPlayerData()
      Gets the loaded cosmetic player data of the player.
      Returns:
      The loaded cosmetic player data of the player.
    • getBalanceSnapshot

      public PlayerBalanceSnapshot getBalanceSnapshot()
      Gets the balance snapshot of the player.
      Returns:
      The balance snapshot of the player.
    • getGui

      public GUI getGui()
      Gets the rendered GUI of the shop.
      Returns:
      The rendered GUI of the shop.
    • getHandlers

      public HandlerList getHandlers()
      Specified by:
      getHandlers in class Event
    • getHandlerList

      public static HandlerList getHandlerList()