BlockEntity class

class PyMCTranslate.py3.api.amulet_objects.block_entity.BlockEntity(namespace, base_name, x, y, z, nbt)[source]

Bases: AbstractBaseEntity

A class to contain all the data to define a BlockEntity.

property location: Tuple[int, int, int]

The location of the BlockEntity. Read Only

new_at_location(x, y, z)[source]

Creates a copy of this BlockEntity at a new location BlockEntities are stored in the chunk based on their location so location cannot be mutable

Return type

BlockEntity

property x: int

The x location of the BlockEntity. Read Only

property y: int

The y location of the BlockEntity. Read Only

property z: int

The z location of the BlockEntity. Read Only