Class PlayerCollectItemInfoEvent
java.lang.Object
net.okocraft.box.api.event.BoxEvent
net.okocraft.box.api.event.player.PlayerEvent
net.okocraft.box.api.event.player.PlayerCollectItemInfoEvent
-
Constructor Summary
ConstructorDescriptionPlayerCollectItemInfoEvent
(@NotNull BoxPlayer boxPlayer, @NotNull BoxItem item) The constructor of aPlayerCollectItemInfoEvent
. -
Method Summary
Methods inherited from class net.okocraft.box.api.event.player.PlayerEvent
getBoxPlayer
-
Constructor Details
-
PlayerCollectItemInfoEvent
public PlayerCollectItemInfoEvent(@NotNull @NotNull BoxPlayer boxPlayer, @NotNull @NotNull BoxItem item) The constructor of aPlayerCollectItemInfoEvent
.- Parameters:
boxPlayer
- the player of this eventitem
- theBoxItem
to collect information
-
-
Method Details
-
getItem
Gets theBoxItem
to collect information.- Returns:
- the
BoxItem
to collect information
-
getInfo
-
addInfo
Adds information of theBoxItem
. -
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
-