Class BusinessStockEvent

java.lang.Object
org.bukkit.event.Event
us.teaminceptus.novaconomy.api.events.business.BusinessEvent
us.teaminceptus.novaconomy.api.events.business.BusinessStockEvent

public class BusinessStockEvent extends BusinessEvent
Called when a Player attempts to stock a Business
  • Constructor Details

    • BusinessStockEvent

      public BusinessStockEvent(@NotNull @NotNull Business business, Player p, List<ItemStack> extra, List<ItemStack> added)
      Constructs a new BusinessStockEvent
      Parameters:
      business - Business being stocked
      p - Player stocking the Business
      extra - Extra items that weren't stocked
      added - Items being added to the Business
  • Method Details

    • getPlayer

      @NotNull public @NotNull Player getPlayer()
      Get the player involved in this BusinessStockEvent.
      Returns:
      Player involved
    • getExtra

      @NotNull public @NotNull List<ItemStack> getExtra()
      Fetches the extra items that were not added.
      Returns:
      List of items that weren't added as stock
    • getAdded

      @NotNull public @NotNull List<ItemStack> getAdded()
      Fetches the items that were added.
      Returns:
      List of items that were added as stock.