LuaRecipePrototype

class LuaRecipePrototype - sort
enabled :: boolean [R] If this recipe prototype is enabled by default (enabled at the begining of a game).
name :: string [R] Name of the recipe.
localised_name :: LocalisedString [R] Localised name of the recipe.
localised_description :: LocalisedString [R]
category :: string [R] Category of the recipe.
ingredients :: array of Ingredient [R] Ingredients for this recipe.
products :: array of Product [R] The results of this recipe.
hidden :: boolean [R] Is the recipe hidden?
energy :: double [R] Energy required to execute this recipe.
order :: string [R] Order string.
group :: LuaGroup [R] Group of this recipe.
subgroup :: LuaGroup [R] Subgroup of this recipe.
request_paste_multiplier :: uint [R] The multiplier used when this recipe is copied from an assembling machine to a requester chest.
overload_multiplier :: uint [R] Used to determine how many extra items are put into an assembling machine before it's considered "full enough".
valid :: boolean [R] Is this object valid?
help() → string All methods, and properties that this object supports.

A crafting recipe prototype.

enabled :: boolean [Read-only]

If this recipe prototype is enabled by default (enabled at the begining of a game).

name :: string [Read-only]

Name of the recipe. This can be different than the name of the result items as there could be more recipes to make the same item.

localised_name :: LocalisedString [Read-only]

Localised name of the recipe.

localised_description :: LocalisedString [Read-only]

category :: string [Read-only]

Category of the recipe.

ingredients :: array of Ingredient [Read-only]

Ingredients for this recipe.

products :: array of Product [Read-only]

The results of this recipe.

hidden :: boolean [Read-only]

Is the recipe hidden? Hidden recipe don't show up in the crafting menu.

energy :: double [Read-only]

Energy required to execute this recipe. This directly affects the crafting time: Recipe's energy is exactly its crafting time in seconds, when crafted in an assembling machine with crafting speed exactly equal to one.

order :: string [Read-only]

Order string. This is used to sort the crafting menu.

group :: LuaGroup [Read-only]

Group of this recipe.

subgroup :: LuaGroup [Read-only]

Subgroup of this recipe.

request_paste_multiplier :: uint [Read-only]

The multiplier used when this recipe is copied from an assembling machine to a requester chest. For each item in the recipe the item count * this value is set in the requester chest.

overload_multiplier :: uint [Read-only]

Used to determine how many extra items are put into an assembling machine before it's considered "full enough".