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_sourceis not of type “burner”, then this property returns an empty set. ReturnsNoneif this entity is not recognized by the current environment.
- property energy_source : dict | None¶
The energy source specification for this entity. Returns
Noneif this entity is not recognized by the current environment.
- property fuel_input_size : _AndValidator object at 0x7e1ce9d4e8c0>] | None¶
Gets the total number of fuel input slots that this entity can hold. Returns
Noneifenergy_sourceis 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 0x7e1ce9d4e8c0>] | None¶
Gets the total number of fuel output slots that this entity has. Returns
Noneifenergy_sourceis not of type “burner”, or if the entity itself is not recognized in the current environment.