amulet.api.entity
module¶
- class amulet.api.entity.Entity(namespace, base_name, x, y, z, nbt)[source]¶
A class to contain all the data to define an Entity.
- property base_name: str[source]¶
The base name of the block entity represented by the BlockEntity object (eg: creeper, pig)
- Returns
The base name of the block entity
- property namespace: str[source]¶
The namespace of the block entity represented by the BlockEntity object (eg: minecraft)
- Returns
The namespace of the block entity
- property namespaced_name: str[source]¶
The namespace:base_name of the entity represented by the object (eg: minecraft:creeper)
If the given namespace is an empty string it will just return the base name.
- Returns
The namespace:base_name of the block entity or just base_name if no namespace