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)
ByteArrayTag()

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)
ByteTag()

Bases: Tag

Attributes:

Name Type Description
value int

value property

value: int

CompoundTag

CompoundTag()
CompoundTag(mapping: dict)
CompoundTag()

Bases: Tag

Methods:

Name Description
clear
items
keys
pop
setdefault
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

values

values() -> Iterator[Tag]

DoubleTag

DoubleTag()
DoubleTag(value: float)
DoubleTag()

Bases: Tag

Attributes:

Name Type Description
value float

value property

value: float

FloatTag

FloatTag()
FloatTag(value: float)
FloatTag()

Bases: Tag

Attributes:

Name Type Description
value float

value property

value: float

IntArrayTag

IntArrayTag()
IntArrayTag(iterable: Iterable)
IntArrayTag()

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)
IntTag()

Bases: Tag

Attributes:

Name Type Description
value int

value property

value: int

ListTag

ListTag()
ListTag(iterable: Iterable)
ListTag()

Bases: Tag

Methods:

Name Description
append
clear
empty
extend
pop
size

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

LongTag

LongTag()
LongTag(value: int)
LongTag()

Bases: Tag

Attributes:

Name Type Description
value int

value property

value: int

ShortTag

ShortTag()
ShortTag(value: int)
ShortTag()

Bases: Tag

Attributes:

Name Type Description
value int

value property

value: int

StringTag

StringTag()
StringTag(value: str)
StringTag()

Bases: Tag

Attributes:

Name Type Description
value str

value property

value: str

Tag