mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
@@ -1,3 +0,0 @@
|
||||
import * as prismarineRecipe from "prismarine-recipe";
|
||||
let Recipe = prismarineRecipe("1.8").Recipe;
|
||||
console.log(JSON.stringify(Recipe.find(5)[0], null, 2));
|
||||
@@ -1,32 +0,0 @@
|
||||
declare module "prismarine-recipe"{
|
||||
function prismarineRecipe(version: string): prismarineRecipe.MCRecipeVersion;
|
||||
|
||||
module prismarineRecipe{
|
||||
interface Recipe{
|
||||
result: RecipeItem;
|
||||
inShape: RecipeItem[][];
|
||||
outShape: RecipeItem[][];
|
||||
ingredients: RecipeItem[];
|
||||
requiresTable: boolean;
|
||||
delta: RecipeItem;
|
||||
}
|
||||
interface RecipeStatic{
|
||||
find(itemType: number, metadata?: number): Recipe[];
|
||||
}
|
||||
interface MCRecipeVersion{
|
||||
Recipe: RecipeStatic;
|
||||
RecipeItem: RecipeItemStatic;
|
||||
}
|
||||
interface RecipeItem{
|
||||
id: number;
|
||||
metadata: number;
|
||||
count?: number;
|
||||
}
|
||||
interface RecipeItemStatic{
|
||||
fromEnum(itemFromRecipeEnum: number[] | number | RecipeItem): RecipeItem;
|
||||
clone(recipeItem: RecipeItem): RecipeItem;
|
||||
}
|
||||
}
|
||||
|
||||
export = prismarineRecipe;
|
||||
}
|
||||
Reference in New Issue
Block a user