BedrioxDOCUMENTATION
API CLASS

ActorKnockbackEvent

Cancellable final motion intent after core combat validation and resistance.

Bedriox\Api\Event\Entity\ActorKnockbackEvent
classBedriox\Api\Event\Entity

Public methods

__construct(Bedriox\Api\Player\Player|Bedriox\Api\Entity\LivingEntity $actor, Bedriox\Api\Player\Player|Bedriox\Api\Entity\Entity|null $source, Bedriox\Api\Entity\KnockbackCause $cause, Bedriox\Api\Entity\KnockbackVector $motion)

Typed public method.

motion(): Bedriox\Api\Entity\KnockbackVector

Typed public method.

setMotion(Bedriox\Api\Entity\KnockbackVector $motion): void

Typed public method.

View exact source ↗