BedrioxDOCUMENTATION
API CLASS

ProjectileLaunchEvent

Cancellable projectile launch with mutable authoritative motion.

Bedriox\Api\Event\Entity\ProjectileLaunchEvent
classBedriox\Api\Event\Entity

Public methods

__construct(Bedriox\Api\Player\Player|Bedriox\Api\Entity\LivingEntity $shooter, int $runtimeEntityId, string $projectileIdentifier, Bedriox\Api\World\Position $position, Bedriox\Api\Entity\Vector3 $motion)

Typed public method.

motion(): Bedriox\Api\Entity\Vector3

Typed public method.

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

Typed public method.

View exact source ↗