BedrioxDOCUMENTATION
API CLASS

PlayerActions

Public class in Bedriox\Api\Player.

Bedriox\Api\Player\PlayerActions
classBedriox\Api\Player

Public methods

__construct(Closure $teleport, Closure $setGameMode, Closure $damage, ?Closure $vehicle = null, ?Closure $mount = null, ?Closure $dismount = null, ?Closure $setMotion = null, ?Closure $playEmote = null, ?Closure $setRotation = null, ?Closure $setNameTag = null, ?Closure $setNameTagVisible = null, ?Closure $setImmobile = null, ?Closure $setInvisible = null, ?Closure $setScale = null, ?Closure $setGravityEnabled = null)

Typed public method.

static unavailable(): self

Typed public method.

teleport(Bedriox\Api\World\Position $position): void

Typed public method.

setGameMode(Bedriox\Api\Player\GameMode $gameMode): void

Typed public method.

damage(float $amount): void

Typed public method.

vehicle(): ?Bedriox\Api\Entity\Entity

Typed public method.

mount(Bedriox\Api\Entity\Entity $vehicle, Bedriox\Api\Entity\Value\MountSeat $seat): void

Typed public method.

dismount(): void

Typed public method.

setMotion(Bedriox\Api\Entity\Value\Motion $motion): void

Typed public method.

playEmote(Bedriox\Api\Entity\Value\EmoteId $emote): void

Typed public method.

setRotation(float $yaw, float $pitch): void

Typed public method.

setNameTag(string $nameTag): void

Typed public method.

setNameTagVisible(bool $visible): void

Typed public method.

setImmobile(bool $immobile): void

Typed public method.

setInvisible(bool $invisible): void

Typed public method.

setScale(float $scale): void

Typed public method.

setGravityEnabled(bool $enabled): void

Typed public method.

View exact source ↗