
org.bukkit.event.entity.EntityBreakDoorEvent Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of walk-server Show documentation
Show all versions of walk-server Show documentation
A spigot fork to kotlin structure and news.
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
*
* Cancelling 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, (byte) 0);
}
@Override
public LivingEntity getEntity() {
return (LivingEntity) entity;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy