BedrioxDOCUMENTATION
API CLASS

CommandParameter

Public class in Bedriox\Api\Command.

Bedriox\Api\Command\CommandParameter
classBedriox\Api\Command

Public methods

static string(string $name): self

Typed public method.

static integer(string $name): self

Typed public method.

static float(string $name): self

Typed public method.

static boolean(string $name): self

Typed public method.

static onlinePlayer(string $name): self

Typed public method.

static players(string $name): self

Typed public method.

static entity(string $name): self

Typed public method.

static entities(string $name): self

Typed public method.

static choice(string $name, array $choices): self

Typed public method.

static enum(string $name, string $enumClass): self

Typed public method.

static softEnum(string $name, Bedriox\Api\Command\CommandSoftEnum $softEnum): self

Typed public method.

static item(string $name, Bedriox\Api\Command\CommandSoftEnum $identifiers): self

Declares an item identifier backed by a bounded, dynamically maintained catalog.

static position(string $name): self

Typed public method.

static blockPosition(string $name): self

Typed public method.

static message(string $name): self

Typed public method.

static json(string $name): self

Typed public method.

static rawText(string $name): self

Typed public method.

static literal(string $literal, ?string $name = null): self

Typed public method.

optional(mixed $default = null): self

Typed public method.

minimum(int|float $minimum): self

Typed public method.

maximum(int|float $maximum): self

Typed public method.

name(): string

Typed public method.

type(): Bedriox\Api\Command\CommandParameterType

Typed public method.

isOptional(): bool

Typed public method.

hasDefault(): bool

Typed public method.

defaultValue(): mixed

Typed public method.

minimumValue(): int|float|null

Typed public method.

maximumValue(): int|float|null

Typed public method.

choices(): array

Typed public method.

enumClass(): ?string

Typed public method.

softEnumValue(): ?Bedriox\Api\Command\CommandSoftEnum

Typed public method.

literalValue(): ?string

Typed public method.

usageToken(): string

Typed public method.

signatureToken(): string

Typed public method.

View exact source ↗