recipe
- class RecipeMixin(name: str, similar_entities: list[str], **kwargs: dict)
Enables the Entity to have a current recipe it’s set to make and a set of recipes that it can make.
- property recipe: str
The recipe that this Entity is currently set to make.
Raises a
ModuleLimitationWarning
if the recipe changes to one that conflicts with the current module requests.Raises a
ItemLimtiationWarning
if the recipe changes to one whose input ingredients no longer match the current item requests.- Getter:
Gets the current recipe of the Entity.
- Setter:
Sets the current recipe of the Entity.
- Type:
str
- Raises:
TypeError – If set to anything other than a
str
orNone
.InvalidRecipeError – If set to a string that is not contained within this Entity’s
recipes
.
- property recipes: list
A list of all the recipes that this Entity can set itself to assemble. Not exported; read only.
- Type:
list[str]