Interface WorkbenchRecipe

Object representing workbench recipe.

interface WorkbenchRecipe {
    addToVanillaWorkbench(): void;
    clone(): any;
    equals(param0: any): boolean;
    finalize(): void;
    getCallback(): CraftingFunction;
    getClass(): Class<any>;
    getEntry(c: string): RecipeEntry;
    getEntryCodes(): ArrayList<Long>;
    getEntryCollection(): Collection<RecipeEntry>;
    getPrefix(): string;
    getRecipeMask(): string;
    getRecipeUid(): number;
    getResult(): ItemInstance;
    getSortedEntries(): Array<RecipeEntry>;
    hashCode(): number;
    isMatchingField(field: WorkbenchField): boolean;
    isMatchingPrefix(prefix: string): boolean;
    isMatchingResult(id: number, count: number, data: number): boolean;
    isPossibleForInventory(inv: HashMap<Long, Integer>): boolean;
    isValid(): boolean;
    isVanilla(): boolean;
    notify(): void;
    notifyAll(): void;
    provideRecipe(field: WorkbenchField): ItemInstance;
    provideRecipeForPlayer(field: WorkbenchField, player: number): ItemInstance;
    putIntoTheField(field: WorkbenchField): void;
    putIntoTheField(field: WorkbenchField, player: number): void;
    setCallback(callback: CraftingFunction): void;
    setEntries(entries: HashMap<Character, RecipeEntry>): void;
    setPrefix(prefix: string): void;
    setVanilla(isVanilla: boolean): WorkbenchRecipe;
    toString(): string;
    wait(): void;
    wait(param0: number): void;
    wait(param0: number, param1: number): void;
}

Hierarchy (view full)

Methods

  • Returns string

    Recipe prefix.

    ""
    
  • Returns string

    Recipe unique mask identifier.

  • Parameters

    Returns boolean

    true if the field contains this recipe, false` otherwise.

  • 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.

  • Parameters

    • id: number
    • count: number
    • data: number

    Returns boolean

    true if specified item is recipe's result, false otherwise.

  • Returns boolean

    true, if the recipe is valid, false otherwise.

  • Sets craft function for the recipe.

    Parameters

    Returns void

  • Sets prefix value for the recipe.

    Parameters

    • prefix: string

      new prefix value

    Returns void

Copyright © 2024 Nernar. Copyright © 2020 #mineprogramming. Built with ❤ and TypeDoc.