Interface WorkbenchShapedRecipe

Object representing workbench shaped recipe.

interface WorkbenchShapedRecipe {
    addToVanillaWorkbench(): void;
    addVariants(variants: ArrayList<WorkbenchRecipe>): 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;
    setPattern(pattern: string[]): void;
    setPattern(pattern: 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

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

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