BedrioxDOCUMENTATION
API CLASS

VehicleControlEvent

Cancellable authoritative boat-control intent before motion is applied.

Bedriox\Api\Event\Vehicle\VehicleControlEvent
classBedriox\Api\Event\Vehicle

Public methods

__construct(Bedriox\Api\Player\Player $driver, Bedriox\Api\Entity\Vanilla\Boat $vehicle, float $forward, float $strafe, float $yaw, bool $paddlingLeft, bool $paddlingRight)

Typed public method.

forward(): float

Typed public method.

strafe(): float

Typed public method.

yaw(): float

Typed public method.

isPaddlingLeft(): bool

Typed public method.

isPaddlingRight(): bool

Typed public method.

setAxes(float $forward, float $strafe): void

Typed public method.

setYaw(float $yaw): void

Typed public method.

setPaddling(bool $left, bool $right): void

Typed public method.

View exact source ↗