mirror of
https://github.com/PaperMC/Paper.git
synced 2025-03-10 13:49:11 +01:00
[Bleeding] Added EntityBreakDoorEvent. Fixes BUKKIT-1134
By: feildmaster <admin@feildmaster.com>
This commit is contained in:
parent
d27b4e05d6
commit
200f973bcd
@ -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…
Reference in New Issue
Block a user