Class PlayerBusinessItemEvent

java.lang.Object
org.bukkit.event.Event
com.olziedev.playerbusinesses.api.events.BusinessEvent
com.olziedev.playerbusinesses.api.events.menu.PlayerBusinessItemEvent
All Implemented Interfaces:
Cancellable

public class PlayerBusinessItemEvent extends BusinessEvent
Event that is triggered before an item is parsed in a menu.
  • Constructor Details

    • PlayerBusinessItemEvent

      public PlayerBusinessItemEvent(Player player, ItemStack itemStack)
      This event is triggered before an item is parsed in a menu.
      Parameters:
      player - The player that the item is being parsed for.
      itemStack - The item that is being parsed.
  • Method Details

    • getHandlerList

      public static HandlerList getHandlerList()
    • getHandlers

      @Nonnull public HandlerList getHandlers()
      Specified by:
      getHandlers in class Event
    • getPlayer

      public Player getPlayer()
      Returns:
      The player that the item is being parsed for.
    • getItemStack

      public ItemStack getItemStack()
      Returns:
      The item that is being parsed.
    • setItemStack

      public void setItemStack(ItemStack itemStack)
      Parameters:
      itemStack - The new item that is being parsed.