Class HangingBreakByEntityEvent

All Implemented Interfaces:
Cancellable

public class HangingBreakByEntityEvent extends HangingBreakEvent
Triggered when a hanging entity is removed by an entity
  • Constructor Details

    • HangingBreakByEntityEvent

      public HangingBreakByEntityEvent(@NotNull Hanging hanging, @Nullable Entity remover)
    • HangingBreakByEntityEvent

      public HangingBreakByEntityEvent(@NotNull Hanging hanging, @Nullable Entity remover, @NotNull HangingBreakEvent.RemoveCause cause)
  • Method Details

    • getRemover

      @Nullable public Entity getRemover()
      Gets the entity that removed the hanging entity. May be null, for example when broken by an explosion.
      Returns:
      the entity that removed the hanging entity