[Bleeding] Added EntityBreakDoorEvent. Fixes BUKKIT-1134

This commit is contained in:
feildmaster 2012-03-10 18:42:17 -06:00 committed by EvilSeph
parent 4ac77121fb
commit d22352013f

View File

@ -0,0 +1,17 @@
package org.bukkit.event.entity;
import org.bukkit.Material;
import org.bukkit.block.Block;
import org.bukkit.entity.Entity;
import org.bukkit.entity.LivingEntity;
/**
* Called when an {@link Entity} breaks a door
* <p />
* Canceling the event will cause the event to be delayed
*/
public class EntityBreakDoorEvent extends EntityChangeBlockEvent {
public EntityBreakDoorEvent(final LivingEntity entity, final Block targetBlock) {
super(entity, targetBlock, Material.AIR);
}
}