Bukkit-API  1.7.9-R0.2
The inofficial Bukkit-API
EntityBreakDoorEvent.java
1 package org.bukkit.event.entity;
2 
3 import org.bukkit.Material;
4 import org.bukkit.block.Block;
5 import org.bukkit.entity.Entity;
7 
8 /**
9  * Called when an {@link Entity} breaks a door
10  * <p>
11  * Cancelling the event will cause the event to be delayed
12  */
14  public EntityBreakDoorEvent(final LivingEntity entity, final Block targetBlock) {
15  super(entity, targetBlock, Material.AIR, (byte) 0);
16  }
17 
18  @Override
19  public LivingEntity getEntity() {
20  return (LivingEntity) entity;
21  }
22 }