Class EntityKnockbackByEntityEvent

All Implemented Interfaces:
Cancellable

public class EntityKnockbackByEntityEvent extends EntityKnockbackEvent
Called when an entity receives knockback from another entity.
  • Constructor Details Link icon

  • Method Details Link icon

    • getSourceEntity Link icon

      @NotNull public Entity getSourceEntity()
      Get the entity that has caused knockback to the defender.
      Returns:
      entity that caused knockback