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
ConstructorsConstructorDescriptionPlayerCollectItemInfoEvent(@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- theBoxItemto collect information
-
-
Method Details
-
getItem
Gets theBoxItemto collect information.- Returns:
- the
BoxItemto collect information
-
getInfo
-
addInfo
Adds information of theBoxItem. -
toDebugLog
Description copied from class:BoxEventCreates the debug log from this event.- Overrides:
toDebugLogin classPlayerEvent- Returns:
- the debug log
-
toString
- Overrides:
toStringin classPlayerEvent
-