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
ConstructorDescriptionStockHolderResetEvent
(@NotNull StockHolder stockHolder, @NotNull Collection<StockData> stockDataBeforeReset) The constructor ofStockHolderResetEvent
. -
Method Summary
Modifier and TypeMethodDescription@NotNull @UnmodifiableView Collection
<StockData> GetsStockHolder.toStockDataCollection()
before reset@NotNull String
Creates the debug log from this event.toString()
Methods inherited from class net.okocraft.box.api.event.stockholder.StockHolderEvent
getStockHolder
-
Constructor Details
-
StockHolderResetEvent
public StockHolderResetEvent(@NotNull @NotNull StockHolder stockHolder, @NotNull @NotNull Collection<StockData> stockDataBeforeReset) The constructor ofStockHolderResetEvent
.- Parameters:
stockHolder
- the stockholder of the eventstockDataBeforeReset
- theStockData
collection before reset
-
-
Method Details
-
getStockDataBeforeReset
GetsStockHolder.toStockDataCollection()
before reset- Returns:
StockHolder.toStockDataCollection()
before reset
-
toDebugLog
Description copied from class:BoxEvent
Creates the debug log from this event.- Overrides:
toDebugLog
in classStockHolderEvent
- Returns:
- the debug log
-
toString
- Overrides:
toString
in classStockHolderEvent
-