Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ItemRecipeRequirementChecker

Hierarchy

  • ItemRecipeRequirementChecker

Index

Constructors

constructor

Properties

itemBaseComponent

itemBaseComponent: IItem

itemComponentsConsumed

itemComponentsConsumed: IItemArray

itemComponentsRequired

itemComponentsRequired: IItemArray

numComponentsNeeded

numComponentsNeeded: number

totalComponentsNeeded

totalComponentsNeeded: number

Methods

amountNeededForComponent

  • amountNeededForComponent(componentIndex: number): number
  • Parameters

    • componentIndex: number

    Returns number

isDiscovered

  • isDiscovered(): boolean
  • Returns boolean

process

  • Looks inside the container and its subcontainers.

    Parameters

    Returns boolean

    true if the recipe's requirements are satisfied by items in the container.

requirementsMet

  • requirementsMet(): boolean
  • Returns boolean

Generated using TypeDoc