Перейти к основному содержанию

MachineRecipeRegistry

Index

Type Aliases

RecipeData

RecipeData: { count: number; data?: number; id: number; sourceCount?: number }

Type declaration

  • count: number
  • optionaldata?: number
  • id: number
  • optionalsourceCount?: number

Variables

constfluidRecipeData

fluidRecipeData: {}

Type declaration

    constrecipeData

    recipeData: {}

    Type declaration

      Functions

      addFluidRecipe

      • addFluidRecipe(name: string, liquid: string, data: any): void
      • Parameters

        • name: string
        • liquid: string
        • data: any

        Returns void

      addRecipeFor

      • addRecipeFor(name: string, input: any, result: any): void
      • Parameters

        • name: string
        • input: any
        • result: any

        Returns void

      getFluidRecipe

      • getFluidRecipe(name: string, liquid: string): any
      • Parameters

        • name: string
        • liquid: string

        Returns any

      getRecipeResult

      • getRecipeResult(name: string, key1: string | number, key2?: string | number): any
      • Parameters

        • name: string
        • key1: string | number
        • optionalkey2: string | number

        Returns any

      hasRecipeFor

      • hasRecipeFor(name: string, key1: string | number, key2?: string | number): boolean
      • Parameters

        • name: string
        • key1: string | number
        • optionalkey2: string | number

        Returns boolean

      registerFluidRecipes

      • registerFluidRecipes(name: string, data: any): void
      • Parameters

        • name: string
        • data: any

        Returns void

      registerRecipesFor

      • registerRecipesFor(name: string, data: any, validateKeys?: boolean): void
      • Parameters

        • name: string
        • data: any
        • optionalvalidateKeys: boolean

        Returns void

      requireFluidRecipes

      • requireFluidRecipes(name: string): any
      • Parameters

        • name: string

        Returns any

      requireRecipesFor

      • requireRecipesFor(name: string, createIfNotFound?: boolean): any
      • Parameters

        • name: string
        • optionalcreateIfNotFound: boolean

        Returns any