energy_source

class EnergySourceMixin

Entities which inherit this mixin consume a specific kind of energy. This class populates methods depending on what type of energy source is configured for a particular entity.

property allowed_fuel_items : set[str] | None

A set of strings, each one a valid item that can be used as a fuel source to power this entity. If energy_source is not of type “burner”, then this property returns an empty set. Returns None if this entity is not recognized by the current environment.

property energy_source : dict | None

The energy source specification for this entity. Returns None if this entity is not recognized by the current environment.

property fuel_input_size : _AndValidator object at 0x7436dd5c5660>] | None

Gets the total number of fuel input slots that this entity can hold. Returns None if energy_source is not of type “burner”, or if the name of this entity is not recognized in the current environment.

property fuel_output_size : _AndValidator object at 0x7436dd5c5660>] | None

Gets the total number of fuel output slots that this entity has. Returns None if energy_source is not of type “burner”, or if the entity itself is not recognized in the current environment.