BedrioxDOCUMENTATION
API CLASS

Position

Public class in Bedriox\Api\World.

Bedriox\Api\World\Position
classBedriox\Api\World

Public methods

__construct(float $x, float $y, float $z, ?float $yaw = null, ?float $pitch = null, ?Bedriox\Api\World\World $world = null)

Typed public method.

isResolved(): bool

Typed public method.

resolve(Bedriox\Api\World\World $currentWorld, float $currentYaw, float $currentPitch): self

Resolves omitted world and rotation values against an entity's current pose.

validateResolved(): void

Verifies a complete position before it enters authoritative world state.

validate(): void

Verifies bounded coordinates and any supplied rotation values.

Constants

HORIZONTAL_LIMIT

View exact source ↗