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 Detail

      • EntityBreakDoorEvent

        public EntityBreakDoorEvent​(@NotNull
                                    LivingEntity entity,
                                    @NotNull
                                    Block targetBlock)
    • Method Detail

      • getEntity

        @NotNull
        public 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