Class StockHolderEvent
java.lang.Object
net.okocraft.box.api.event.BoxEvent
net.okocraft.box.api.event.stockholder.StockHolderEvent
- Direct Known Subclasses:
StockEvent
,StockHolderLoadEvent
,StockHolderResetEvent
,StockHolderSaveEvent
A class that represents a
StockHolder
related event.-
Constructor Summary
ConstructorDescriptionStockHolderEvent
(@NotNull StockHolder stockHolder) The constructor ofStockHolderEvent
. -
Method Summary
Modifier and TypeMethodDescription@NotNull StockHolder
Gets the stockholder.@NotNull String
Creates the debug log from this event.toString()
-
Constructor Details
-
StockHolderEvent
The constructor ofStockHolderEvent
.- Parameters:
stockHolder
- the stockholder of the event
-
-
Method Details
-
getStockHolder
Gets the stockholder.- Returns:
- the stockholder
-
toDebugLog
Description copied from class:BoxEvent
Creates the debug log from this event.- Overrides:
toDebugLog
in classBoxEvent
- Returns:
- the debug log
-
toString
-