Package io.papermc.paper.event.player
Class PlayerPickBlockEvent
java.lang.Object
org.bukkit.event.Event
org.bukkit.event.player.PlayerEvent
io.papermc.paper.event.player.PlayerPickItemEvent
io.papermc.paper.event.player.PlayerPickBlockEvent
- All Implemented Interfaces:
- Cancellable
Event that is fired when a player uses the pick item functionality on a block
 (middle-clicking a block to get the appropriate item).
 After the handling of this event, the contents of the source and the target slot will be swapped,
 and the currently selected hotbar slot of the player will be set to the target slot.
- 
Nested Class SummaryNested classes/interfaces inherited from class org.bukkit.event.EventEvent.Result
- 
Field SummaryFields inherited from class org.bukkit.event.player.PlayerEventplayer
- 
Constructor SummaryConstructorsConstructorDescriptionPlayerPickBlockEvent(Player player, Block block, boolean includeData, int targetSlot, int sourceSlot) 
- 
Method SummaryMethods inherited from class io.papermc.paper.event.player.PlayerPickItemEventgetHandlerList, getHandlers, getSourceSlot, getTargetSlot, isCancelled, isIncludeData, setCancelled, setSourceSlot, setTargetSlotMethods inherited from class org.bukkit.event.player.PlayerEventgetPlayerMethods inherited from class org.bukkit.event.EventcallEvent, getEventName, isAsynchronous
- 
Constructor Details- 
PlayerPickBlockEvent
 
- 
- 
Method Details- 
getBlockRetrieves the block associated with this event.- Returns:
- the block involved in the event
 
 
-