Class EntityBreakDoorEvent

All Implemented Interfaces:
Cancellable

public class EntityBreakDoorEvent extends EntityChangeBlockEvent
Called when an Entity breaks a door

Cancelling the event will cause the event to be delayed

  • Constructor Details

    • EntityBreakDoorEvent

      @Internal public EntityBreakDoorEvent(@NotNull @NotNull LivingEntity entity, @NotNull @NotNull Block targetBlock, @NotNull BlockData to)
  • Method Details

    • getEntity

      @NotNull public @NotNull LivingEntity getEntity()
      Description copied from class: EntityEvent
      Returns the Entity involved in this event
      Overrides:
      getEntity in class EntityEvent
      Returns:
      Entity who is involved in this event