Skip to content

Named Binary Tag (NBT)

endstone.nbt

Classes relating to the NBT data format.

Classes:

Name Description
ByteArrayTag
ByteTag
CompoundTag
DoubleTag
FloatTag
IntArrayTag
IntTag
ListTag
LongTag
ShortTag
StringTag
Tag

ByteArrayTag

ByteArrayTag()
ByteArrayTag(iterable: Iterable)
ByteArrayTag(buffer: Buffer)

Bases: Tag

Methods:

Name Description
append
clear
extend

append

append(value: int) -> None

clear

clear() -> None

extend

extend(iterable: Iterable) -> None

ByteTag

ByteTag()
ByteTag(value: int)

Bases: Tag

Attributes:

Name Type Description
value int

value property

value: int

CompoundTag

CompoundTag()
CompoundTag(mapping: dict)

Bases: Tag

Methods:

Name Description
clear
items
keys
pop
setdefault
to_dict
values

clear

clear() -> None

items

items() -> Iterator[tuple[str, Tag]]

keys

keys() -> Iterator[str]

pop

pop(key: str) -> Tag
pop(key: str, default: object = None) -> object

setdefault

setdefault(key: str, default: Tag) -> Tag

to_dict

to_dict() -> dict

values

values() -> Iterator[Tag]

DoubleTag

DoubleTag()
DoubleTag(value: float)

Bases: Tag

Attributes:

Name Type Description
value float

value property

value: float

FloatTag

FloatTag()
FloatTag(value: float)

Bases: Tag

Attributes:

Name Type Description
value float

value property

value: float

IntArrayTag

IntArrayTag()
IntArrayTag(iterable: Iterable)

Bases: Tag

Methods:

Name Description
append
clear
extend

append

append(value: int) -> None

clear

clear() -> None

extend

extend(iterable: Iterable) -> None

IntTag

IntTag()
IntTag(value: int)

Bases: Tag

Attributes:

Name Type Description
value int

value property

value: int

ListTag

ListTag()
ListTag(iterable: Iterable)

Bases: Tag

Methods:

Name Description
append
clear
empty
extend
pop
size
to_list

append

append(tag: Tag) -> None

clear

clear() -> None

empty

empty() -> bool

extend

extend(iterable: Iterable) -> None

pop

pop(index: int = -1) -> Tag

size

size() -> int

to_list

to_list() -> list

LongTag

LongTag()
LongTag(value: int)

Bases: Tag

Attributes:

Name Type Description
value int

value property

value: int

ShortTag

ShortTag()
ShortTag(value: int)

Bases: Tag

Attributes:

Name Type Description
value int

value property

value: int

StringTag

StringTag()
StringTag(value: str)

Bases: Tag

Attributes:

Name Type Description
value str

value property

value: str

Tag