[Bleeding] Added EntityBreakDoorEvent. Fixes BUKKIT-1134

By: feildmaster <admin@feildmaster.com>
This commit is contained in:
Bukkit/Spigot 2012-03-10 18:42:17 -06:00
parent d27b4e05d6
commit 200f973bcd

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);
}
}