Class StockDecreaseEvent
java.lang.Object
net.okocraft.box.api.event.BoxEvent
net.okocraft.box.api.event.stockholder.StockHolderEvent
net.okocraft.box.api.event.stockholder.stock.StockEvent
net.okocraft.box.api.event.stockholder.stock.StockDecreaseEvent
A 
StockEvent called when the stock is decreased.- 
Nested Class SummaryNested classes/interfaces inherited from class net.okocraft.box.api.event.stockholder.stock.StockEventStockEvent.Cause
- 
Constructor SummaryConstructorsConstructorDescriptionStockDecreaseEvent(@NotNull StockHolder stockHolder, @NotNull BoxItem item, int decrements, int currentAmount, @NotNull StockEvent.Cause cause) The constructor ofStockDecreaseEvent.
- 
Method SummaryMethods inherited from class net.okocraft.box.api.event.stockholder.stock.StockEventgetAmount, getCause, getItemMethods inherited from class net.okocraft.box.api.event.stockholder.StockHolderEventgetStockHolder
- 
Constructor Details- 
StockDecreaseEventpublic StockDecreaseEvent(@NotNull @NotNull StockHolder stockHolder, @NotNull @NotNull BoxItem item, int decrements, int currentAmount, @NotNull @NotNull StockEvent.Cause cause) The constructor ofStockDecreaseEvent.- Parameters:
- stockHolder- the stockholder of the event
- item- the item of the stock
- decrements- the amount of decreased
- currentAmount- the current amount of the stock
- cause- the cause that indicates why this event was called
 
 
- 
- 
Method Details- 
getDecrementspublic int getDecrements()Gets the amount of decreased.- Returns:
- the amount of decreased
 
- 
toDebugLogDescription copied from class:BoxEventCreates the debug log from this event.- Overrides:
- toDebugLogin class- StockHolderEvent
- Returns:
- the debug log
 
- 
toString- Overrides:
- toStringin class- StockHolderEvent
 
 
-