- class DirectionalMixin(name: str, similar_entities: list[str], tile_position: list | dict = [0, 0], **kwargs: dict)
Allows the Entity to be rotated in the 4 cardinal directions. 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.
For some entities, this attribute may be redundant; for example, the direction value for an
AssemblingMachineonly matters if the machine has a fluid input or output.
DirectionWarningif set to a diagonal direction. For 8-way rotations, ensure that the Entity inherits
Gets the direction that the Entity is facing.
Sets the direction of the Entity. Defaults to
Direction.NORTHif set to