Class PlayerHarvestBlockEvent

java.lang.Object
org.bukkit.event.Event
org.bukkit.event.player.PlayerEvent
org.bukkit.event.player.PlayerHarvestBlockEvent
All Implemented Interfaces:
Cancellable

public class PlayerHarvestBlockEvent
extends PlayerEvent
implements Cancellable
This event is called whenever a player harvests a block.
A 'harvest' is when a block drops an item (usually some sort of crop) and changes state, but is not broken in order to drop the item.
This event is not called for when a block is broken, to handle that, listen for BlockBreakEvent and BlockDropItemEvent.