Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Recipe

Hierarchy

  • Recipe

Index

Constructors

constructor

  • Returns Recipe

Properties

Readonly index

index: number | undefined

When undefined, this recipe is not registered.

Methods

addOutput

  • addOutput<R>(outputType: R, ...args: ConstructorParameters<RecipeOutputClass<R>>): this
  • Type parameters

    Parameters

    Returns this

addRequirement

canCraft

  • canCraft(crafter: Crafter): boolean
  • canCraft(entity: Entity, items: Item[]): boolean
  • Parameters

    Returns boolean

  • Parameters

    Returns boolean

getCrafter

  • Parameters

    Returns Crafter

getLevel

  • Returns RecipeLevel

getOutputs

  • Returns Stream<RecipeOutput<any>>

getReputation

  • getReputation(): number
  • Returns number

getRequirements

  • Returns Stream<RecipeRequirement<any>>

getSkill

  • Returns SkillType

predicateMatches

requirementsStatus

  • Parameters

    Returns Stream<[RecipeRequirement<any>, boolean]>

setLevel

  • Parameters

    Returns this

setReputation

  • setReputation(reputation: number): this
  • Parameters

    • reputation: number

    Returns this

setRequirementPredicate

setSkill

  • Parameters

    Returns this

Generated using TypeDoc