BedrioxDOCUMENTATION
API CLASS

ItemNbt

Immutable, bounded little-endian NBT compound attached to one item stack.

Bedriox\Api\Inventory\ItemNbt
classBedriox\Api\Inventory

Public methods

static empty(): self

Typed public method.

static fromBinary(string $binary): self

Typed public method.

toBinary(): string

Typed public method.

isEmpty(): bool

Typed public method.

equals(self $other): bool

Typed public method.

withTag(string $name, Bedriox\Api\Nbt\Tag $tag): self

Typed public method.

tag(string $name): ?Bedriox\Api\Nbt\Tag

Typed public method.

withoutTag(string $name): self

Typed public method.

withString(string $name, string $value): self

Typed public method.

string(string $name): ?string

Typed public method.

int(string $name): ?int

Typed public method.

Constants

MAX_BYTES

View exact source ↗