Class PlayerStockHolderChangeEvent
java.lang.Object
net.okocraft.box.api.event.BoxEvent
net.okocraft.box.api.event.player.PlayerEvent
net.okocraft.box.api.event.player.PlayerStockHolderChangeEvent
A
PlayerEvent
called when the player changed the StockHolder
.-
Constructor Summary
ConstructorDescriptionPlayerStockHolderChangeEvent
(@NotNull BoxPlayer boxPlayer, @NotNull StockHolder previous) The constructor of aPlayerStockHolderChangeEvent
. -
Method Summary
Modifier and TypeMethodDescription@NotNull StockHolder
Gets the previousStockHolder
of the player.@NotNull String
Creates the debug log from this event.toString()
Methods inherited from class net.okocraft.box.api.event.player.PlayerEvent
getBoxPlayer
-
Constructor Details
-
PlayerStockHolderChangeEvent
public PlayerStockHolderChangeEvent(@NotNull @NotNull BoxPlayer boxPlayer, @NotNull @NotNull StockHolder previous) The constructor of aPlayerStockHolderChangeEvent
.- Parameters:
boxPlayer
- the player of this eventprevious
- the previousStockHolder
-
-
Method Details
-
getPreviousStockHolder
Gets the previousStockHolder
of the player.- Returns:
- the previous
StockHolder
of the player
-
toDebugLog
Description copied from class:BoxEvent
Creates the debug log from this event.- Overrides:
toDebugLog
in classPlayerEvent
- Returns:
- the debug log
-
toString
- Overrides:
toString
in classPlayerEvent
-