Package io.papermc.paper.event.player
Class PlayerStopUsingItemEvent
java.lang.Object
org.bukkit.event.Event
org.bukkit.event.player.PlayerEvent
io.papermc.paper.event.player.PlayerStopUsingItemEvent
Called when the server detects a player stopping using an item.
 Examples of this are letting go of the interact button when holding a bow, an edible item, or a spyglass.
- 
Nested Class SummaryNested classes/interfaces inherited from class org.bukkit.event.EventEvent.Result
- 
Field SummaryFields inherited from class org.bukkit.event.player.PlayerEventplayer
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic HandlerListgetItem()Gets the exact item the player is releasingintGets the number of ticks the item was held forMethods inherited from class org.bukkit.event.player.PlayerEventgetPlayerMethods inherited from class org.bukkit.event.EventcallEvent, getEventName, isAsynchronous
- 
Constructor Details- 
PlayerStopUsingItemEvent
 
- 
- 
Method Details- 
getItemGets the exact item the player is releasing- Returns:
- ItemStack the exact item the player released
 
- 
getTicksHeldForpublic int getTicksHeldFor()Gets the number of ticks the item was held for- Returns:
- int the number of ticks the item was held for
 
- 
getHandlers- Specified by:
- getHandlersin class- Event
 
- 
getHandlerList
 
-