Class EntityKnockbackByEntityEvent

All Implemented Interfaces:
Cancellable

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

  • Method Details

    • getSourceEntity

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