- class EightWayDirectionalMixin(name: str, similar_entities: list[str], tile_position: list | dict = [0, 0], **kwargs: dict)
Allows the Entity to be rotated in the 8 cardinal directions and diagonals. Sets the
- property direction: Direction
The direction that the Entity is facing. An Entity’s “front” is usually the direction of it’s outputs, if it has any.
Note that for rail entities, what “direction” means to them is not entirely intuitive, especially in the diagonal directions. Proceed with caution.
Gets the direction that the Entity is facing.
Sets the direction of the Entity. Defaults to
Direction.NORTHif set to