BedrioxDOCUMENTATION
API CLASS

Tag

One immutable NBT value. Lists are homogeneous; compounds have named children.

Bedriox\Api\Nbt\Tag
classBedriox\Api\Nbt

Public methods

static byte(int $value): self

Typed public method.

static short(int $value): self

Typed public method.

static int(int $value): self

Typed public method.

static long(int $value): self

Typed public method.

static float(float $value): self

Typed public method.

static double(float $value): self

Typed public method.

static string(string $value): self

Typed public method.

static byteArray(string $value): self

Typed public method.

static intArray(array $values): self

Typed public method.

static longArray(array $values): self

Typed public method.

static list(Bedriox\Api\Nbt\TagType $type, array $values): self

Typed public method.

static compound(array $values): self

Typed public method.

type(): Bedriox\Api\Nbt\TagType

Typed public method.

value(): int|float|string|array

Typed public method.

static fromInternal(Bedriox\Server\World\Storage\Nbt\LittleEndianNbtTag $value): self

Typed public method.

toInternal(): Bedriox\Server\World\Storage\Nbt\LittleEndianNbtTag

Typed public method.

View exact source ↗