Module artisanry

The main Artisanry object that holds and manages all receipts.

Functions

Artisanry:new () Creates a new instance of Artisanry.
Artisanry:get_blueprints (input, group) Gets all BluePrints matching the given input.
Artisanry:get_blueprints_from_output (output) Gets all BluePrints that match the given output.
Artisanry:get_groups () Gets all groups as sorted and unique List.
Artisanry:register (group, result, input) Registers the given input for the given result.


Functions

Artisanry:new ()
Creates a new instance of Artisanry.

Returns:

    A new instance of Artisanry.
Artisanry:get_blueprints (input, group)
Gets all BluePrints matching the given input.

Parameters:

  • input The input, a 2D of strings or ItemStacks. Might be nil to retrieve all BluePrints.
  • group Optional. The name of the group to get. Defaults to "All".

Returns:

    All matching BluePrints.
Artisanry:get_blueprints_from_output (output)
Gets all BluePrints that match the given output.

Parameters:

  • output The output. Can either be an ItemStack, item string or id.

Returns:

    The List containing all Blueprints that match the given output.
Artisanry:get_groups ()
Gets all groups as sorted and unique List.

Returns:

    All groups as List.
Artisanry:register (group, result, input)
Registers the given input for the given result.

Parameters:

  • group The name of the group for this blueprint.
  • result The result of the input, an item string.
  • input The 2D array of item strings or ItemStacks.
generated by LDoc 1.4.2