Class BusinessStockEvent
java.lang.Object
org.bukkit.event.Event
us.teaminceptus.novaconomy.api.events.business.BusinessEvent
us.teaminceptus.novaconomy.api.events.business.BusinessStockEvent
Called when a Player attempts to stock a Business
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
Event.Result -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class us.teaminceptus.novaconomy.api.events.business.BusinessEvent
getBusiness, getHandlerList, getHandlersMethods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
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 stockedp- Player stocking the Businessextra- Extra items that weren't stockedadded- Items being added to the Business
-
-
Method Details
-
getPlayer
Get the player involved in this BusinessStockEvent.- Returns:
- Player involved
-
getExtra
Fetches the extra items that were not added.- Returns:
- List of items that weren't added as stock
-
getAdded
Fetches the items that were added.- Returns:
- List of items that were added as stock.
-