Class LivingDestroyBlockEvent

java.lang.Object
net.neoforged.bus.api.Event
net.neoforged.neoforge.event.entity.EntityEvent
net.neoforged.neoforge.event.entity.living.LivingEvent
net.neoforged.neoforge.event.entity.living.LivingDestroyBlockEvent
All Implemented Interfaces:
net.neoforged.bus.api.ICancellableEvent

public class LivingDestroyBlockEvent extends LivingEvent implements net.neoforged.bus.api.ICancellableEvent
Fired when the ender dragon or wither attempts to destroy a block and when ever a zombie attempts to break a door. Basically a event version of IBlockExtension.canEntityDestroy(BlockState, BlockGetter, BlockPos, Entity)

This event is ICancellableEvent.
If this event is canceled, the block will not be destroyed.

This event does not have a result.
invalid reference
HasResult


This event is fired on the NeoForge.EVENT_BUS.