BedrioxDOCUMENTATION
API CLASS

CommandValues

Public class in Bedriox\Api\Command.

Bedriox\Api\Command\CommandValues
classBedriox\Api\Command

Public methods

__construct(array $values = [])

Typed public method.

has(string $name): bool

Typed public method.

get(string $name): mixed

Typed public method.

string(string $name): string

Typed public method.

integer(string $name): int

Typed public method.

float(string $name): float

Typed public method.

boolean(string $name): bool

Typed public method.

player(string $name): Bedriox\Api\Player\Player

Typed public method.

players(string $name): array

Typed public method.

entity(string $name): Bedriox\Api\Player\Player|Bedriox\Api\Entity\Entity

Typed public method.

entities(string $name): array

Typed public method.

enum(string $name, string $enumClass): BackedEnum

Typed public method.

position(string $name): Bedriox\Api\World\Position

Typed public method.

blockPosition(string $name): Bedriox\Api\World\BlockPosition

Typed public method.

choice(string $name): string

Typed public method.

message(string $name): string

Typed public method.

rawText(string $name): string

Typed public method.

json(string $name): mixed

Typed public method.

all(): array

Typed public method.

View exact source ↗