[Bleeding] Added EntityBreakDoorEvent. Fixes BUKKIT-1134
This commit is contained in:
parent
4ac77121fb
commit
d22352013f
@ -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);
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user