Class PlayerShearBlockEvent

java.lang.Object
org.bukkit.event.Event
org.bukkit.event.player.PlayerEvent
io.papermc.paper.event.block.PlayerShearBlockEvent
All Implemented Interfaces:
Cancellable

public class PlayerShearBlockEvent extends PlayerEvent implements Cancellable
Called when a player uses sheers on a block.

This event is not called when breaking blocks with shears but instead only when a player uses the sheer item on a block to garner drops from said block and/or change its state.

Examples include shearing a pumpkin to turn it into a carved pumpkin or shearing a beehive to get honeycomb.