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 EntityKnockbackEvent
EntityKnockbackEvent.KnockbackCauseNested classes/interfaces inherited from class Event
Event.Result -
Field Summary
Fields inherited from class EntityEvent
entity -
Constructor Summary
ConstructorsConstructorDescriptionEntityKnockbackByEntityEvent(@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 EntityKnockbackEvent
getCause, getEntity, getFinalKnockback, getForce, getHandlerList, getHandlers, getKnockback, isCancelled, setCancelled, setFinalKnockbackMethods inherited from class EntityEvent
getEntityTypeMethods inherited from class Event
callEvent, getEventName, isAsynchronous
-
Constructor Details
-
EntityKnockbackByEntityEvent
@Internal 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
-
EntityKnockbackByEntityEvent