Package net.minestom.server.event.item
Class ItemUsageCompleteEvent
java.lang.Object
net.minestom.server.event.item.ItemUsageCompleteEvent
- All Implemented Interfaces:
Event
,EntityEvent
,EntityInstanceEvent
,InstanceEvent
,ItemEvent
,PlayerEvent
,PlayerInstanceEvent
Event when the item usage duration has passed for a player, meaning when the item has completed its usage.
-
Constructor Summary
ConstructorDescriptionItemUsageCompleteEvent
(@NotNull Player player, Player.Hand hand, @NotNull ItemStack itemStack) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minestom.server.event.trait.EntityInstanceEvent
getInstance
Methods inherited from interface net.minestom.server.event.trait.PlayerEvent
getEntity
-
Constructor Details
-
ItemUsageCompleteEvent
public ItemUsageCompleteEvent(@NotNull @NotNull Player player, @NotNull Player.Hand hand, @NotNull @NotNull ItemStack itemStack)
-
-
Method Details
-
getHand
-
getItemStack
- Specified by:
getItemStack
in interfaceItemEvent
-
getPlayer
Description copied from interface:PlayerEvent
Gets the player.- Specified by:
getPlayer
in interfacePlayerEvent
- Returns:
- the player
-