location – Locations
The location module contains objects for tracking and analyzing locations.
-
class bravo.location.Location[source]
Bases: object
The position and orientation of an entity.
-
distance(other)[source]
Return the distance between this location and another location.
Distance is measured in blocks.
-
in_front_of(distance)[source]
Return a Location a certain number of blocks in front of this
position.
The orientation of the returned location is undefined.
Parameters: | distance (int) – the number of blocks by which to offset this
position |
-
save_to_packet()[source]
Returns a position/look/grounded packet.