Module artisanryutil

Converts the given input from strings to ItemStacks.

If the values are already ItemStacks, they are only copied.

Functions

convert (input) Reduces and converts the given input to ItemStacks.
flat_to_grid (flat) Converts the given data from a flat array to a 2D array.
is_empty_item (item) Checks if the given item is empty.
is_empty_stacks (input) Checks if the given array of ItemStacks is empty, meaning either all are nil, or all are empty.


Functions

convert (input)
Reduces and converts the given input to ItemStacks.

Parameters:

  • input The input to convert.

Returns:

    The converted input.
flat_to_grid (flat)
Converts the given data from a flat array to a 2D array.

Parameters:

  • flat The data to convert.

Returns:

    The grid data.
is_empty_item (item)
Checks if the given item is empty. That means if it is either nil, an empty string or an ItemStack that is empty.

Parameters:

  • item The item to check.

Returns:

    true if the item can be considered empty.
is_empty_stacks (input)
Checks if the given array of ItemStacks is empty, meaning either all are nil, or all are empty.

Parameters:

  • input The array of ItemStacks.

Returns:

    true if all are nil or empty.
generated by LDoc 1.4.2