Hierarchy

Constructors

Properties

quantity: number = 1
type: Item
BASE: default = ...

Methods

  • Returns boolean

  • Returns undefined | default

  • Returns the ItemOutput that this requirement is used for.
    This is called internally, it should have no real use in recipe construction.

    Returns undefined | Intermediate

  • Parameters

    • api: default
    • quantity: number = ...

    Returns boolean

  • Sets the "best" item to be used for this requirement. Used to display the efficacy of an actual input item.

    Parameters

    Returns default

  • Sets this item requirement to be changed into another item on recipe completion.

    Parameters

    • item: ItemType

      The item to change into.

    • Optional initializer: ((output: default) => any)

      An initializer for configuring the item that the input will be changed into.

      Notes:

      • Using ChangeInto will ignore the Consumed setting
      • Configuring the quantity of the ItemOutput in the initializer will have no effect.

    Returns default

  • Item requirements are consumed by default, so this method should usually only be used to disable that.

    Parameters

    • consumed: boolean = true

    Returns default

  • Sets this items used for this item requirement to contribute their decay to the output items at the given weight.

    The default weight is 1, so if there is one item at default weight and one item at a weight of 2, the final decay would be 66% of the 2 weight item and 33% of the 1 weight item.

    Parameters

    • weight: number

    Returns default

  • Sets the quality of the output items to use the quality of the highest-quality item passed to this requirement.
    Note: The output items will only use this quality by default, it can still be overridden by the item outputs.

    Returns default

  • Sets the ItemOutput that this requirement will be used for.
    This is called internally, it should have no real use in recipe construction.

    Parameters

    Returns default

  • Parameters

    • predicate: ((item: default, consumed: boolean) => boolean)
        • (item: default, consumed: boolean): boolean
        • Parameters

          Returns boolean

    Returns default

Generated using TypeDoc