001 package org.bukkit.event.entity; 002 003 import org.bukkit.Material; 004 import org.bukkit.block.Block; 005 import org.bukkit.entity.Entity; 006 import org.bukkit.entity.LivingEntity; 007 008 /** 009 * Called when an {@link Entity} breaks a door 010 * <p> 011 * Cancelling the event will cause the event to be delayed 012 */ 013 public class EntityBreakDoorEvent extends EntityChangeBlockEvent { 014 public EntityBreakDoorEvent(final LivingEntity entity, final Block targetBlock) { 015 super(entity, targetBlock, Material.AIR, (byte) 0); 016 } 017 018 @Override 019 public LivingEntity getEntity() { 020 return (LivingEntity) entity; 021 } 022 }