Class HangingBreakByEntityEvent

All Implemented Interfaces:
Cancellable

@NullMarked public class HangingBreakByEntityEvent extends HangingBreakEvent
Triggered when a hanging entity is removed by an entity
Since:
1.4.5
  • Constructor Details

  • Method Details

    • getRemover

      public Entity getRemover()
      Gets the entity that removed the hanging entity.
      Returns:
      the entity that removed the hanging entity
      Since:
      1.4.5
    • getDamageSource

      public DamageSource getDamageSource()
      Gets the DamageSource that caused the hanging entity to be removed.
      Returns:
      the damage source
      Since:
      26.1.2