Class EntityKnockbackByEntityEvent
java.lang.Object
org.bukkit.event.Event
org.bukkit.event.entity.EntityEvent
io.papermc.paper.event.entity.EntityPushedByEntityAttackEvent
com.destroystokyo.paper.event.entity.EntityKnockbackByEntityEvent
- All Implemented Interfaces:
- Cancellable
Fired when an Entity is knocked back by the hit of another Entity. The acceleration
 vector can be modified. If this event is cancelled, the entity is not knocked back.
- 
Nested Class SummaryNested classes/interfaces inherited from class org.bukkit.event.EventEvent.Result
- 
Field SummaryFields inherited from class org.bukkit.event.entity.EntityEvententity
- 
Constructor SummaryConstructorsConstructorDescriptionEntityKnockbackByEntityEvent(@NotNull LivingEntity entity, @NotNull Entity hitBy, float knockbackStrength, @NotNull Vector acceleration) 
- 
Method SummaryMethods inherited from class io.papermc.paper.event.entity.EntityPushedByEntityAttackEventgetAcceleration, getHandlerList, getHandlers, getPushedBy, isCancelled, setCancelledMethods inherited from class org.bukkit.event.entity.EntityEventgetEntityTypeMethods inherited from class org.bukkit.event.EventcallEvent, getEventName, isAsynchronous
- 
Constructor Details- 
EntityKnockbackByEntityEvent
 
- 
- 
Method Details- 
getEntityDescription copied from class:EntityEventReturns the Entity involved in this event- Overrides:
- getEntityin class- EntityEvent
- Returns:
- the entity which was knocked back
 
- 
getKnockbackStrengthpublic float getKnockbackStrength()- Returns:
- the original knockback strength.
 
- 
getHitBy- Returns:
- the Entity which hit
 
 
-