diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/org/bukkit/event/entity/EntityBreakDoorEvent.java | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/event/entity/EntityBreakDoorEvent.java b/src/main/java/org/bukkit/event/entity/EntityBreakDoorEvent.java new file mode 100644 index 00000000..8e39c03c --- /dev/null +++ b/src/main/java/org/bukkit/event/entity/EntityBreakDoorEvent.java @@ -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); + } +} |