Skip to main content

Recipes.FurnaceRecipe

Object representing furnace recipe.

Hierarchy

Index

Properties

readonlyinData

inData: number

readonlyinId

inId: number

readonlyresData

resData: number

readonlyresId

resId: number

Methods

getInputKey

  • getInputKey(): number
  • Returns number

getPrefix

  • getPrefix(): string
  • Returns string

    Recipe prefix.

getResult

isMatchingPrefix

  • isMatchingPrefix(prefix: string): boolean
  • Compares current recipe's prefix with given one.


    Parameters

    • prefix: string

      prefix value to compare with

    Returns boolean

    true, if current recipe's prefix is the same as given one, false otherwise.

isValid

  • isValid(): boolean
  • Returns boolean

    true, if the recipe is valid, false otherwise.

setPrefix

  • setPrefix(prefix: string): void
  • Sets prefix value for the recipe.


    Parameters

    • prefix: string

      new prefix value

    Returns void