Class HangingBreakByEntityEvent

All Implemented Interfaces:
Cancellable

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

    • HangingBreakByEntityEvent Link icon

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

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

    • getRemover Link icon

      @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