程序包 org.bukkit.event.entity

# 类 EntityKnockbackByEntityEvent

java.lang.Object
org.bukkit.event.Event
org.bukkit.event.entity.EntityEvent
org.bukkit.event.entity.EntityKnockbackEvent
org.bukkit.event.entity.EntityKnockbackByEntityEvent

所有已实现的接口:
  `Cancellable`

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

- ## 嵌套类概要

  ## 从类继承的嵌套类/接口 org.bukkit.event.entity.EntityKnockbackEvent

  `EntityKnockbackEvent.KnockbackCause`

  ## 从类继承的嵌套类/接口 org.bukkit.event.Event

  `Event.Result`

- ## 字段概要

  ### 从类继承的字段 org.bukkit.event.entity.EntityEvent

  `entity`

- ## 构造器概要

  构造器
  构造器
  说明
  `EntityKnockbackByEntityEvent(@NotNull LivingEntity entity, @NotNull Entity source, @NotNull EntityKnockbackEvent.KnockbackCause cause, double force, @NotNull Vector rawKnockback, @NotNull Vector knockback)`

- ## 方法概要

  修饰符和类型
  方法
  说明
  `@NotNull Entity`
  `getSourceEntity()`
  Get the entity that has caused knockback to the defender.

  ### 从类继承的方法 org.bukkit.event.entity.EntityKnockbackEvent

  `getCause, getEntity, getFinalKnockback, getForce, getHandlerList, getHandlers, getKnockback, isCancelled, setCancelled, setFinalKnockback`

  ### 从类继承的方法 org.bukkit.event.entity.EntityEvent

  `getEntityType`

  ### 从类继承的方法 org.bukkit.event.Event

  `getEventName, isAsynchronous`

  ### 从类继承的方法 java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## 构造器详细资料

  - ### EntityKnockbackByEntityEvent

    public EntityKnockbackByEntityEvent(@NotNull @NotNull LivingEntity entity, @NotNull @NotNull Entity source, @NotNull @NotNull EntityKnockbackEvent.KnockbackCause cause, double force, @NotNull @NotNull Vector rawKnockback, @NotNull @NotNull Vector knockback)

- ## 方法详细资料

  - ### getSourceEntity

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