Class StockHolderResetEvent
java.lang.Object
net.okocraft.box.api.event.BoxEvent
net.okocraft.box.api.event.stockholder.StockHolderEvent
net.okocraft.box.api.event.stockholder.StockHolderResetEvent
A
StockHolderResetEvent called when StockHolder has reset.-
Constructor Summary
ConstructorsConstructorDescriptionStockHolderResetEvent(@NotNull StockHolder stockHolder, @NotNull Collection<StockData> stockDataBeforeReset, StockEvent.Cause cause) The constructor ofStockHolderResetEvent. -
Method Summary
Modifier and TypeMethodDescriptiongetCause()Gets the cause passed toStockHolder.reset(StockEvent.Cause).@NotNull @UnmodifiableView Collection<StockData> GetsStockHolder.toStockDataCollection()before reset@NotNull StringCreates the debug log from this event.toString()Methods inherited from class StockHolderEvent
getStockHolder
-
Constructor Details
-
StockHolderResetEvent
public StockHolderResetEvent(@NotNull @NotNull StockHolder stockHolder, @NotNull @NotNull Collection<StockData> stockDataBeforeReset, @NotNull StockEvent.Cause cause) The constructor ofStockHolderResetEvent.- Parameters:
stockHolder- the stockholder of the eventstockDataBeforeReset- theStockDatacollection before resetcause- the reason for the reset, including its initiator if known
-
-
Method Details
-
getStockDataBeforeReset
GetsStockHolder.toStockDataCollection()before reset- Returns:
StockHolder.toStockDataCollection()before reset
-
getCause
Gets the cause passed toStockHolder.reset(StockEvent.Cause).- Returns:
- the cause of this reset
-
toDebugLog
Description copied from class:BoxEventCreates the debug log from this event.- Overrides:
toDebugLogin classStockHolderEvent- Returns:
- the debug log
-
toString
- Overrides:
toStringin classStockHolderEvent
-