Package org.bukkit.event.entity
Class EntityKnockbackByEntityEvent
java.lang.Object
org.bukkit.event.Event
org.bukkit.event.entity.EntityEvent
org.bukkit.event.entity.EntityKnockbackEvent
org.bukkit.event.entity.EntityKnockbackByEntityEvent
- All Implemented Interfaces:
Cancellable
Deprecated, for removal: This API element is subject to removal in a future version.
Called when an entity receives knockback from another entity.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.entity.EntityKnockbackEvent
EntityKnockbackEvent.KnockbackCause
Nested classes/interfaces inherited from class org.bukkit.event.Event
Event.Result
-
Field Summary
Fields inherited from class org.bukkit.event.entity.EntityEvent
entity
-
Constructor Summary
ConstructorDescriptionEntityKnockbackByEntityEvent
(@NotNull LivingEntity entity, @NotNull Entity source, @NotNull EntityKnockbackEvent.KnockbackCause cause, double force, @NotNull Vector rawKnockback, @NotNull Vector knockback) Deprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated, for removal: This API element is subject to removal in a future version.Get the entity that has caused knockback to the defender.Methods inherited from class org.bukkit.event.entity.EntityKnockbackEvent
getCause, getEntity, getFinalKnockback, getForce, getHandlerList, getHandlers, getKnockback, isCancelled, setCancelled, setFinalKnockback
Methods inherited from class org.bukkit.event.entity.EntityEvent
getEntityType
Methods inherited from class org.bukkit.event.Event
callEvent, getEventName, isAsynchronous
-
Constructor Details
-
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) Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
getSourceEntity
Deprecated, for removal: This API element is subject to removal in a future version.Get the entity that has caused knockback to the defender.- Returns:
- entity that caused knockback
-
EntityKnockbackByEntityEvent