@adeficior/data-modifier 1.0.0-rc.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli/codegen/registry.d.ts +3 -0
- package/dist/cli/codegen/registry.js +81 -0
- package/dist/cli/codegen/registry.js.map +1 -0
- package/dist/cli/config.d.ts +10 -0
- package/dist/cli/config.js +60 -0
- package/dist/cli/config.js.map +1 -0
- package/dist/cli/index.d.ts +1 -0
- package/dist/cli/index.js +34 -0
- package/dist/cli/index.js.map +1 -0
- package/dist/common/id.d.ts +15 -0
- package/dist/common/id.js +42 -0
- package/dist/common/id.js.map +1 -0
- package/dist/common/ingredient.d.ts +49 -0
- package/dist/common/ingredient.js +108 -0
- package/dist/common/ingredient.js.map +1 -0
- package/dist/common/predicates.d.ts +7 -0
- package/dist/common/predicates.js +32 -0
- package/dist/common/predicates.js.map +1 -0
- package/dist/common/registry.d.ts +12 -0
- package/dist/common/registry.js +36 -0
- package/dist/common/registry.js.map +1 -0
- package/dist/common/result.d.ts +48 -0
- package/dist/common/result.js +37 -0
- package/dist/common/result.js.map +1 -0
- package/dist/emit/assets/blockstates.d.ts +18 -0
- package/dist/emit/assets/blockstates.js +46 -0
- package/dist/emit/assets/blockstates.js.map +1 -0
- package/dist/emit/assets/lang.d.ts +33 -0
- package/dist/emit/assets/lang.js +103 -0
- package/dist/emit/assets/lang.js.map +1 -0
- package/dist/emit/assets/models.d.ts +24 -0
- package/dist/emit/assets/models.js +59 -0
- package/dist/emit/assets/models.js.map +1 -0
- package/dist/emit/blacklist.d.ts +32 -0
- package/dist/emit/blacklist.js +99 -0
- package/dist/emit/blacklist.js.map +1 -0
- package/dist/emit/content/blockDefinition.d.ts +58 -0
- package/dist/emit/content/blockDefinition.js +58 -0
- package/dist/emit/content/blockDefinition.js.map +1 -0
- package/dist/emit/content/innerBlockDefinition.d.ts +12 -0
- package/dist/emit/content/innerBlockDefinition.js +32 -0
- package/dist/emit/content/innerBlockDefinition.js.map +1 -0
- package/dist/emit/content/itemDefinition.d.ts +58 -0
- package/dist/emit/content/itemDefinition.js +54 -0
- package/dist/emit/content/itemDefinition.js.map +1 -0
- package/dist/emit/custom.d.ts +15 -0
- package/dist/emit/custom.js +42 -0
- package/dist/emit/custom.js.map +1 -0
- package/dist/emit/data/loot.d.ts +48 -0
- package/dist/emit/data/loot.js +108 -0
- package/dist/emit/data/loot.js.map +1 -0
- package/dist/emit/data/recipe.d.ts +46 -0
- package/dist/emit/data/recipe.js +106 -0
- package/dist/emit/data/recipe.js.map +1 -0
- package/dist/emit/data/tags.d.ts +38 -0
- package/dist/emit/data/tags.js +115 -0
- package/dist/emit/data/tags.js.map +1 -0
- package/dist/emit/index.d.ts +11 -0
- package/dist/emit/index.js +1 -0
- package/dist/emit/index.js.map +1 -0
- package/dist/emit/polytoneTabs.d.ts +65 -0
- package/dist/emit/polytoneTabs.js +101 -0
- package/dist/emit/polytoneTabs.js.map +1 -0
- package/dist/emit/rule/index.d.ts +10 -0
- package/dist/emit/rule/index.js +10 -0
- package/dist/emit/rule/index.js.map +1 -0
- package/dist/emit/rule/lootTable.d.ts +14 -0
- package/dist/emit/rule/lootTable.js +47 -0
- package/dist/emit/rule/lootTable.js.map +1 -0
- package/dist/emit/rule/recipe.d.ts +16 -0
- package/dist/emit/rule/recipe.js +29 -0
- package/dist/emit/rule/recipe.js.map +1 -0
- package/dist/emit/ruled.d.ts +18 -0
- package/dist/emit/ruled.js +47 -0
- package/dist/emit/ruled.js.map +1 -0
- package/dist/error.d.ts +12 -0
- package/dist/error.js +45 -0
- package/dist/error.js.map +1 -0
- package/dist/index.d.ts +31 -0
- package/dist/index.js +12 -0
- package/dist/index.js.map +1 -0
- package/dist/loader/index.d.ts +16 -0
- package/dist/loader/index.js +40 -0
- package/dist/loader/index.js.map +1 -0
- package/dist/loader/lang.d.ts +7 -0
- package/dist/loader/lang.js +12 -0
- package/dist/loader/lang.js.map +1 -0
- package/dist/loader/loot.d.ts +7 -0
- package/dist/loader/loot.js +12 -0
- package/dist/loader/loot.js.map +1 -0
- package/dist/loader/pack.d.ts +62 -0
- package/dist/loader/pack.js +131 -0
- package/dist/loader/pack.js.map +1 -0
- package/dist/loader/recipe.d.ts +25 -0
- package/dist/loader/recipe.js +207 -0
- package/dist/loader/recipe.js.map +1 -0
- package/dist/loader/registry/dump.d.ts +19 -0
- package/dist/loader/registry/dump.js +74 -0
- package/dist/loader/registry/dump.js.map +1 -0
- package/dist/loader/registry/empty.d.ts +11 -0
- package/dist/loader/registry/empty.js +22 -0
- package/dist/loader/registry/empty.js.map +1 -0
- package/dist/loader/registry/index.d.ts +11 -0
- package/dist/loader/registry/index.js +1 -0
- package/dist/loader/registry/index.js.map +1 -0
- package/dist/loader/tags.d.ts +26 -0
- package/dist/loader/tags.js +131 -0
- package/dist/loader/tags.js.map +1 -0
- package/dist/parser/adAstra.d.ts +11 -0
- package/dist/parser/adAstra.js +6 -0
- package/dist/parser/adAstra.js.map +1 -0
- package/dist/parser/botania.d.ts +20 -0
- package/dist/parser/botania.js +11 -0
- package/dist/parser/botania.js.map +1 -0
- package/dist/parser/create.d.ts +4 -0
- package/dist/parser/create.js +3 -0
- package/dist/parser/create.js.map +1 -0
- package/dist/parser/farmersdelight.d.ts +4 -0
- package/dist/parser/farmersdelight.js +3 -0
- package/dist/parser/farmersdelight.js.map +1 -0
- package/dist/parser/index.d.ts +13 -0
- package/dist/parser/index.js +8 -0
- package/dist/parser/index.js.map +1 -0
- package/dist/parser/lootTable.d.ts +7 -0
- package/dist/parser/lootTable.js +70 -0
- package/dist/parser/lootTable.js.map +1 -0
- package/dist/parser/recipe/adAstra/conversion.d.ts +20 -0
- package/dist/parser/recipe/adAstra/conversion.js +33 -0
- package/dist/parser/recipe/adAstra/conversion.js.map +1 -0
- package/dist/parser/recipe/adAstra/hammering.d.ts +18 -0
- package/dist/parser/recipe/adAstra/hammering.js +27 -0
- package/dist/parser/recipe/adAstra/hammering.js.map +1 -0
- package/dist/parser/recipe/adAstra/index.d.ts +5 -0
- package/dist/parser/recipe/adAstra/index.js +1 -0
- package/dist/parser/recipe/adAstra/index.js.map +1 -0
- package/dist/parser/recipe/adAstra/inputOutput.d.ts +24 -0
- package/dist/parser/recipe/adAstra/inputOutput.js +42 -0
- package/dist/parser/recipe/adAstra/inputOutput.js.map +1 -0
- package/dist/parser/recipe/adAstra/nasaWorkbench.d.ts +20 -0
- package/dist/parser/recipe/adAstra/nasaWorkbench.js +30 -0
- package/dist/parser/recipe/adAstra/nasaWorkbench.js.map +1 -0
- package/dist/parser/recipe/adAstra/spaceStation.d.ts +19 -0
- package/dist/parser/recipe/adAstra/spaceStation.js +27 -0
- package/dist/parser/recipe/adAstra/spaceStation.js.map +1 -0
- package/dist/parser/recipe/botania/apothecary.d.ts +19 -0
- package/dist/parser/recipe/botania/apothecary.js +28 -0
- package/dist/parser/recipe/botania/apothecary.js.map +1 -0
- package/dist/parser/recipe/botania/brew.d.ts +18 -0
- package/dist/parser/recipe/botania/brew.js +24 -0
- package/dist/parser/recipe/botania/brew.js.map +1 -0
- package/dist/parser/recipe/botania/elvenTrade.d.ts +19 -0
- package/dist/parser/recipe/botania/elvenTrade.js +27 -0
- package/dist/parser/recipe/botania/elvenTrade.js.map +1 -0
- package/dist/parser/recipe/botania/gogWrapper.d.ts +22 -0
- package/dist/parser/recipe/botania/gogWrapper.js +34 -0
- package/dist/parser/recipe/botania/gogWrapper.js.map +1 -0
- package/dist/parser/recipe/botania/manaInfusion.d.ts +21 -0
- package/dist/parser/recipe/botania/manaInfusion.js +33 -0
- package/dist/parser/recipe/botania/manaInfusion.js.map +1 -0
- package/dist/parser/recipe/botania/nbtWrapper.d.ts +20 -0
- package/dist/parser/recipe/botania/nbtWrapper.js +30 -0
- package/dist/parser/recipe/botania/nbtWrapper.js.map +1 -0
- package/dist/parser/recipe/botania/orechid.d.ts +35 -0
- package/dist/parser/recipe/botania/orechid.js +74 -0
- package/dist/parser/recipe/botania/orechid.js.map +1 -0
- package/dist/parser/recipe/botania/pureDaisy.d.ts +19 -0
- package/dist/parser/recipe/botania/pureDaisy.js +30 -0
- package/dist/parser/recipe/botania/pureDaisy.js.map +1 -0
- package/dist/parser/recipe/botania/runicAltar.d.ts +19 -0
- package/dist/parser/recipe/botania/runicAltar.js +27 -0
- package/dist/parser/recipe/botania/runicAltar.js.map +1 -0
- package/dist/parser/recipe/botania/terraPlate.d.ts +19 -0
- package/dist/parser/recipe/botania/terraPlate.js +27 -0
- package/dist/parser/recipe/botania/terraPlate.js.map +1 -0
- package/dist/parser/recipe/create/assembly.d.ts +25 -0
- package/dist/parser/recipe/create/assembly.js +45 -0
- package/dist/parser/recipe/create/assembly.js.map +1 -0
- package/dist/parser/recipe/create/processing.d.ts +21 -0
- package/dist/parser/recipe/create/processing.js +27 -0
- package/dist/parser/recipe/create/processing.js.map +1 -0
- package/dist/parser/recipe/farmersdelight/cooking.d.ts +22 -0
- package/dist/parser/recipe/farmersdelight/cooking.js +29 -0
- package/dist/parser/recipe/farmersdelight/cooking.js.map +1 -0
- package/dist/parser/recipe/farmersdelight/cutting.d.ts +23 -0
- package/dist/parser/recipe/farmersdelight/cutting.js +38 -0
- package/dist/parser/recipe/farmersdelight/cutting.js.map +1 -0
- package/dist/parser/recipe/forge/conditional.d.ts +25 -0
- package/dist/parser/recipe/forge/conditional.js +45 -0
- package/dist/parser/recipe/forge/conditional.js.map +1 -0
- package/dist/parser/recipe/ignored.d.ts +10 -0
- package/dist/parser/recipe/ignored.js +16 -0
- package/dist/parser/recipe/ignored.js.map +1 -0
- package/dist/parser/recipe/index.d.ts +19 -0
- package/dist/parser/recipe/index.js +22 -0
- package/dist/parser/recipe/index.js.map +1 -0
- package/dist/parser/recipe/quark/exclusion.d.ts +20 -0
- package/dist/parser/recipe/quark/exclusion.js +32 -0
- package/dist/parser/recipe/quark/exclusion.js.map +1 -0
- package/dist/parser/recipe/roots/component.d.ts +18 -0
- package/dist/parser/recipe/roots/component.js +24 -0
- package/dist/parser/recipe/roots/component.js.map +1 -0
- package/dist/parser/recipe/roots/ritual.d.ts +22 -0
- package/dist/parser/recipe/roots/ritual.js +32 -0
- package/dist/parser/recipe/roots/ritual.js.map +1 -0
- package/dist/parser/recipe/sullys/polishing.d.ts +19 -0
- package/dist/parser/recipe/sullys/polishing.js +27 -0
- package/dist/parser/recipe/sullys/polishing.js.map +1 -0
- package/dist/parser/recipe/thermal/catalyst.d.ts +22 -0
- package/dist/parser/recipe/thermal/catalyst.js +24 -0
- package/dist/parser/recipe/thermal/catalyst.js.map +1 -0
- package/dist/parser/recipe/thermal/fuel.d.ts +18 -0
- package/dist/parser/recipe/thermal/fuel.js +24 -0
- package/dist/parser/recipe/thermal/fuel.js.map +1 -0
- package/dist/parser/recipe/thermal/index.d.ts +22 -0
- package/dist/parser/recipe/thermal/index.js +36 -0
- package/dist/parser/recipe/thermal/index.js.map +1 -0
- package/dist/parser/recipe/thermal/ingredient.d.ts +21 -0
- package/dist/parser/recipe/thermal/ingredient.js +43 -0
- package/dist/parser/recipe/thermal/ingredient.js.map +1 -0
- package/dist/parser/recipe/thermal/treeExtraction.d.ts +24 -0
- package/dist/parser/recipe/thermal/treeExtraction.js +47 -0
- package/dist/parser/recipe/thermal/treeExtraction.js.map +1 -0
- package/dist/parser/recipe/vanilla/shaped.d.ts +19 -0
- package/dist/parser/recipe/vanilla/shaped.js +28 -0
- package/dist/parser/recipe/vanilla/shaped.js.map +1 -0
- package/dist/parser/recipe/vanilla/shapeless.d.ts +18 -0
- package/dist/parser/recipe/vanilla/shapeless.js +27 -0
- package/dist/parser/recipe/vanilla/shapeless.js.map +1 -0
- package/dist/parser/recipe/vanilla/smelting.d.ts +19 -0
- package/dist/parser/recipe/vanilla/smelting.js +27 -0
- package/dist/parser/recipe/vanilla/smelting.js.map +1 -0
- package/dist/parser/recipe/vanilla/smithing.d.ts +19 -0
- package/dist/parser/recipe/vanilla/smithing.js +28 -0
- package/dist/parser/recipe/vanilla/smithing.js.map +1 -0
- package/dist/parser/recipe/vanilla/stonecutting.d.ts +20 -0
- package/dist/parser/recipe/vanilla/stonecutting.js +36 -0
- package/dist/parser/recipe/vanilla/stonecutting.js.map +1 -0
- package/dist/parser/roots.d.ts +4 -0
- package/dist/parser/roots.js +3 -0
- package/dist/parser/roots.js.map +1 -0
- package/dist/parser/thermal.d.ts +10 -0
- package/dist/parser/thermal.js +6 -0
- package/dist/parser/thermal.js.map +1 -0
- package/dist/schema/assets/blockstate.d.ts +10 -0
- package/dist/schema/assets/blockstate.js +1 -0
- package/dist/schema/assets/blockstate.js.map +1 -0
- package/dist/schema/assets/lang.d.ts +3 -0
- package/dist/schema/assets/lang.js +3 -0
- package/dist/schema/assets/lang.js.map +1 -0
- package/dist/schema/assets/model.d.ts +27 -0
- package/dist/schema/assets/model.js +1 -0
- package/dist/schema/assets/model.js.map +1 -0
- package/dist/schema/content/blockDefinition.d.ts +11 -0
- package/dist/schema/content/blockDefinition.js +1 -0
- package/dist/schema/content/blockDefinition.js.map +1 -0
- package/dist/schema/content/itemDefinition.d.ts +14 -0
- package/dist/schema/content/itemDefinition.js +1 -0
- package/dist/schema/content/itemDefinition.js.map +1 -0
- package/dist/schema/data/loot.d.ts +1151 -0
- package/dist/schema/data/loot.js +76 -0
- package/dist/schema/data/loot.js.map +1 -0
- package/dist/schema/data/recipe.d.ts +13 -0
- package/dist/schema/data/recipe.js +1 -0
- package/dist/schema/data/recipe.js.map +1 -0
- package/dist/schema/data/tag.d.ts +11 -0
- package/dist/schema/data/tag.js +6 -0
- package/dist/schema/data/tag.js.map +1 -0
- package/dist/stubTypes.d.ts +7 -0
- package/dist/stubTypes.js +1 -0
- package/dist/stubTypes.js.map +1 -0
- package/dist/textHelper.d.ts +3 -0
- package/dist/textHelper.js +20 -0
- package/dist/textHelper.js.map +1 -0
- package/package.json +96 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hammering.js","sourceRoot":"","sources":["../../../../src/parser/recipe/adAstra/hammering.ts"],"names":[],"mappings":"AAOA,OAAO,YAAY,EAAE,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAQnD,MAAM,OAAO,eAAgB,SAAQ,MAAiC;IACpE,cAAc;QACZ,OAAO,IAAI,CAAC,UAAU,CAAC,WAAW,CAAC;IACrC,CAAC;IAED,UAAU;QACR,OAAO,CAAC,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC;IAClC,CAAC;IAED,iBAAiB,CAAC,OAA6B;QAC7C,OAAO,IAAI,eAAe,CAAC;YACzB,GAAG,IAAI,CAAC,UAAU;YAClB,WAAW,EAAE,IAAI,CAAC,UAAU,CAAC,WAAW,CAAC,GAAG,CAAC,OAAO,CAAC;SACtD,CAAC,CAAC;IACL,CAAC;IAED,aAAa,CAAC,OAAyB;QACrC,OAAO,IAAI,eAAe,CAAC;YACzB,GAAG,IAAI,CAAC,UAAU;YAClB,MAAM,EAAE,OAAO,CAAC,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC;SACxC,CAAC,CAAC;IACL,CAAC;CACF;AAED,MAAM,CAAC,OAAO,OAAO,qBAAsB,SAAQ,YAGlD;IACC,MAAM,CAAC,UAAqC;QAC1C,OAAO,IAAI,eAAe,CAAC,UAAU,CAAC,CAAC;IACzC,CAAC;CACF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/parser/recipe/adAstra/index.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { Replacer } from "../index.js";
|
|
2
|
+
import RecipeParser, { Recipe } from "../index.js";
|
|
3
|
+
import type { Ingredient, IngredientInput } from "../../../common/ingredient.js";
|
|
4
|
+
import type { RecipeDefinition } from "../../../schema/data/recipe.js";
|
|
5
|
+
import type { Result, ResultInput } from "../../../common/result.js";
|
|
6
|
+
export type IdResult = {
|
|
7
|
+
id: string;
|
|
8
|
+
count?: number;
|
|
9
|
+
};
|
|
10
|
+
export declare function fromIdResult({ id, ...result }: IdResult): Result;
|
|
11
|
+
export declare function toIdResult(result: Result): IdResult | null;
|
|
12
|
+
export type InputOutputRecipeDefinition = RecipeDefinition & Readonly<{
|
|
13
|
+
input: Ingredient;
|
|
14
|
+
output: IdResult;
|
|
15
|
+
}>;
|
|
16
|
+
export declare class InputOutputRecipe extends Recipe<InputOutputRecipeDefinition> {
|
|
17
|
+
getIngredients(): IngredientInput[];
|
|
18
|
+
getResults(): ResultInput[];
|
|
19
|
+
replaceIngredient(replace: Replacer<Ingredient>): Recipe;
|
|
20
|
+
replaceResult(replace: Replacer<Result>): Recipe;
|
|
21
|
+
}
|
|
22
|
+
export default class InputOutputRecipeParser extends RecipeParser<InputOutputRecipeDefinition, InputOutputRecipe> {
|
|
23
|
+
create(definition: InputOutputRecipeDefinition): InputOutputRecipe;
|
|
24
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import RecipeParser, { Recipe } from "../index.js";
|
|
2
|
+
export function fromIdResult({ id, ...result }) {
|
|
3
|
+
return {
|
|
4
|
+
item: id,
|
|
5
|
+
...result,
|
|
6
|
+
};
|
|
7
|
+
}
|
|
8
|
+
export function toIdResult(result) {
|
|
9
|
+
if ("item" in result)
|
|
10
|
+
return {
|
|
11
|
+
id: result.item,
|
|
12
|
+
count: result.count,
|
|
13
|
+
};
|
|
14
|
+
return null;
|
|
15
|
+
}
|
|
16
|
+
export class InputOutputRecipe extends Recipe {
|
|
17
|
+
getIngredients() {
|
|
18
|
+
return [this.definition.input];
|
|
19
|
+
}
|
|
20
|
+
getResults() {
|
|
21
|
+
return [this.definition.output].map(fromIdResult);
|
|
22
|
+
}
|
|
23
|
+
replaceIngredient(replace) {
|
|
24
|
+
return new InputOutputRecipe({
|
|
25
|
+
...this.definition,
|
|
26
|
+
input: replace(this.definition.input),
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
replaceResult(replace) {
|
|
30
|
+
return new InputOutputRecipe({
|
|
31
|
+
...this.definition,
|
|
32
|
+
output: toIdResult(replace(fromIdResult(this.definition.output))) ??
|
|
33
|
+
this.definition.output,
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
export default class InputOutputRecipeParser extends RecipeParser {
|
|
38
|
+
create(definition) {
|
|
39
|
+
return new InputOutputRecipe(definition);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
//# sourceMappingURL=inputOutput.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inputOutput.js","sourceRoot":"","sources":["../../../../src/parser/recipe/adAstra/inputOutput.ts"],"names":[],"mappings":"AACA,OAAO,YAAY,EAAE,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAanD,MAAM,UAAU,YAAY,CAAC,EAAE,EAAE,EAAE,GAAG,MAAM,EAAY;IACtD,OAAO;QACL,IAAI,EAAE,EAAE;QACR,GAAG,MAAM;KACV,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,UAAU,CAAC,MAAc;IACvC,IAAI,MAAM,IAAI,MAAM;QAClB,OAAO;YACL,EAAE,EAAE,MAAM,CAAC,IAAI;YACf,KAAK,EAAE,MAAM,CAAC,KAAK;SACpB,CAAC;IAEJ,OAAO,IAAI,CAAC;AACd,CAAC;AAQD,MAAM,OAAO,iBAAkB,SAAQ,MAAmC;IACxE,cAAc;QACZ,OAAO,CAAC,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC;IACjC,CAAC;IAED,UAAU;QACR,OAAO,CAAC,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,YAAY,CAAC,CAAC;IACpD,CAAC;IAED,iBAAiB,CAAC,OAA6B;QAC7C,OAAO,IAAI,iBAAiB,CAAC;YAC3B,GAAG,IAAI,CAAC,UAAU;YAClB,KAAK,EAAE,OAAO,CAAC,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC;SACtC,CAAC,CAAC;IACL,CAAC;IAED,aAAa,CAAC,OAAyB;QACrC,OAAO,IAAI,iBAAiB,CAAC;YAC3B,GAAG,IAAI,CAAC,UAAU;YAClB,MAAM,EACJ,UAAU,CAAC,OAAO,CAAC,YAAY,CAAC,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC;gBACzD,IAAI,CAAC,UAAU,CAAC,MAAM;SACzB,CAAC,CAAC;IACL,CAAC;CACF;AAED,MAAM,CAAC,OAAO,OAAO,uBAAwB,SAAQ,YAGpD;IACC,MAAM,CAAC,UAAuC;QAC5C,OAAO,IAAI,iBAAiB,CAAC,UAAU,CAAC,CAAC;IAC3C,CAAC;CACF"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { Replacer } from "../index.js";
|
|
2
|
+
import RecipeParser, { Recipe } from "../index.js";
|
|
3
|
+
import type { Ingredient, IngredientInput } from "../../../common/ingredient.js";
|
|
4
|
+
import type { RecipeDefinition } from "../../../schema/data/recipe.js";
|
|
5
|
+
import type { Result, ResultInput } from "../../../common/result.js";
|
|
6
|
+
import type { WrappedIngredient } from "./index.js";
|
|
7
|
+
export type NasaWorkbenchRecipeDefinition = RecipeDefinition & Readonly<{
|
|
8
|
+
ingredients: WrappedIngredient[];
|
|
9
|
+
output: Result;
|
|
10
|
+
mana?: number;
|
|
11
|
+
}>;
|
|
12
|
+
export declare class NasaWorkbenchRecipe extends Recipe<NasaWorkbenchRecipeDefinition> {
|
|
13
|
+
getIngredients(): IngredientInput[];
|
|
14
|
+
getResults(): ResultInput[];
|
|
15
|
+
replaceIngredient(replace: Replacer<Ingredient>): Recipe;
|
|
16
|
+
replaceResult(replace: Replacer<Result>): Recipe;
|
|
17
|
+
}
|
|
18
|
+
export default class NasaWorkbenchRecipeParser extends RecipeParser<NasaWorkbenchRecipeDefinition, NasaWorkbenchRecipe> {
|
|
19
|
+
create(definition: NasaWorkbenchRecipeDefinition): NasaWorkbenchRecipe;
|
|
20
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import RecipeParser, { Recipe } from "../index.js";
|
|
2
|
+
export class NasaWorkbenchRecipe extends Recipe {
|
|
3
|
+
getIngredients() {
|
|
4
|
+
return this.definition.ingredients.map((it) => it.ingredient);
|
|
5
|
+
}
|
|
6
|
+
getResults() {
|
|
7
|
+
return [this.definition.output];
|
|
8
|
+
}
|
|
9
|
+
replaceIngredient(replace) {
|
|
10
|
+
return new NasaWorkbenchRecipe({
|
|
11
|
+
...this.definition,
|
|
12
|
+
ingredients: this.definition.ingredients.map((it) => ({
|
|
13
|
+
...it,
|
|
14
|
+
ingredient: replace(it.ingredient),
|
|
15
|
+
})),
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
replaceResult(replace) {
|
|
19
|
+
return new NasaWorkbenchRecipe({
|
|
20
|
+
...this.definition,
|
|
21
|
+
output: replace(this.definition.output),
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
export default class NasaWorkbenchRecipeParser extends RecipeParser {
|
|
26
|
+
create(definition) {
|
|
27
|
+
return new NasaWorkbenchRecipe(definition);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
//# sourceMappingURL=nasaWorkbench.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"nasaWorkbench.js","sourceRoot":"","sources":["../../../../src/parser/recipe/adAstra/nasaWorkbench.ts"],"names":[],"mappings":"AACA,OAAO,YAAY,EAAE,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAgBnD,MAAM,OAAO,mBAAoB,SAAQ,MAAqC;IAC5E,cAAc;QACZ,OAAO,IAAI,CAAC,UAAU,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,UAAU,CAAC,CAAC;IAChE,CAAC;IAED,UAAU;QACR,OAAO,CAAC,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC;IAClC,CAAC;IAED,iBAAiB,CAAC,OAA6B;QAC7C,OAAO,IAAI,mBAAmB,CAAC;YAC7B,GAAG,IAAI,CAAC,UAAU;YAClB,WAAW,EAAE,IAAI,CAAC,UAAU,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;gBACpD,GAAG,EAAE;gBACL,UAAU,EAAE,OAAO,CAAC,EAAE,CAAC,UAAU,CAAC;aACnC,CAAC,CAAC;SACJ,CAAC,CAAC;IACL,CAAC;IAED,aAAa,CAAC,OAAyB;QACrC,OAAO,IAAI,mBAAmB,CAAC;YAC7B,GAAG,IAAI,CAAC,UAAU;YAClB,MAAM,EAAE,OAAO,CAAC,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC;SACxC,CAAC,CAAC;IACL,CAAC;CACF;AAED,MAAM,CAAC,OAAO,OAAO,yBAA0B,SAAQ,YAGtD;IACC,MAAM,CAAC,UAAyC;QAC9C,OAAO,IAAI,mBAAmB,CAAC,UAAU,CAAC,CAAC;IAC7C,CAAC;CACF"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { Replacer } from "../index.js";
|
|
2
|
+
import RecipeParser, { Recipe } from "../index.js";
|
|
3
|
+
import type { Ingredient, IngredientInput } from "../../../common/ingredient.js";
|
|
4
|
+
import type { RecipeDefinition } from "../../../schema/data/recipe.js";
|
|
5
|
+
import type { ResultInput } from "../../../common/result.js";
|
|
6
|
+
import type { WrappedIngredient } from "./index.js";
|
|
7
|
+
export type SpaceStationRecipeDefinition = RecipeDefinition & Readonly<{
|
|
8
|
+
ingredients: WrappedIngredient[];
|
|
9
|
+
mana?: number;
|
|
10
|
+
}>;
|
|
11
|
+
export declare class SpaceStationRecipe extends Recipe<SpaceStationRecipeDefinition> {
|
|
12
|
+
getIngredients(): IngredientInput[];
|
|
13
|
+
getResults(): ResultInput[];
|
|
14
|
+
replaceIngredient(replace: Replacer<Ingredient>): Recipe;
|
|
15
|
+
replaceResult(): Recipe;
|
|
16
|
+
}
|
|
17
|
+
export default class SpaceStationRecipeParser extends RecipeParser<SpaceStationRecipeDefinition, SpaceStationRecipe> {
|
|
18
|
+
create(definition: SpaceStationRecipeDefinition): SpaceStationRecipe;
|
|
19
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import RecipeParser, { Recipe } from "../index.js";
|
|
2
|
+
export class SpaceStationRecipe extends Recipe {
|
|
3
|
+
getIngredients() {
|
|
4
|
+
return this.definition.ingredients.map((it) => it.ingredient);
|
|
5
|
+
}
|
|
6
|
+
getResults() {
|
|
7
|
+
return [];
|
|
8
|
+
}
|
|
9
|
+
replaceIngredient(replace) {
|
|
10
|
+
return new SpaceStationRecipe({
|
|
11
|
+
...this.definition,
|
|
12
|
+
ingredients: this.definition.ingredients.map((it) => ({
|
|
13
|
+
...it,
|
|
14
|
+
ingredient: replace(it.ingredient),
|
|
15
|
+
})),
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
replaceResult() {
|
|
19
|
+
return new SpaceStationRecipe(this.definition);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
export default class SpaceStationRecipeParser extends RecipeParser {
|
|
23
|
+
create(definition) {
|
|
24
|
+
return new SpaceStationRecipe(definition);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
//# sourceMappingURL=spaceStation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"spaceStation.js","sourceRoot":"","sources":["../../../../src/parser/recipe/adAstra/spaceStation.ts"],"names":[],"mappings":"AACA,OAAO,YAAY,EAAE,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAenD,MAAM,OAAO,kBAAmB,SAAQ,MAAoC;IAC1E,cAAc;QACZ,OAAO,IAAI,CAAC,UAAU,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,UAAU,CAAC,CAAC;IAChE,CAAC;IAED,UAAU;QACR,OAAO,EAAE,CAAC;IACZ,CAAC;IAED,iBAAiB,CAAC,OAA6B;QAC7C,OAAO,IAAI,kBAAkB,CAAC;YAC5B,GAAG,IAAI,CAAC,UAAU;YAClB,WAAW,EAAE,IAAI,CAAC,UAAU,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;gBACpD,GAAG,EAAE;gBACL,UAAU,EAAE,OAAO,CAAC,EAAE,CAAC,UAAU,CAAC;aACnC,CAAC,CAAC;SACJ,CAAC,CAAC;IACL,CAAC;IAED,aAAa;QACX,OAAO,IAAI,kBAAkB,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;IACjD,CAAC;CACF;AAED,MAAM,CAAC,OAAO,OAAO,wBAAyB,SAAQ,YAGrD;IACC,MAAM,CAAC,UAAwC;QAC7C,OAAO,IAAI,kBAAkB,CAAC,UAAU,CAAC,CAAC;IAC5C,CAAC;CACF"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { Replacer } from "../index.js";
|
|
2
|
+
import RecipeParser, { Recipe } from "../index.js";
|
|
3
|
+
import type { Ingredient, IngredientInput } from "../../../common/ingredient.js";
|
|
4
|
+
import type { RecipeDefinition } from "../../../schema/data/recipe.js";
|
|
5
|
+
import type { Result, ResultInput } from "../../../common/result.js";
|
|
6
|
+
export type ApothecaryRecipeDefinition = RecipeDefinition & Readonly<{
|
|
7
|
+
ingredients: Ingredient[];
|
|
8
|
+
output: Result;
|
|
9
|
+
reagent: Ingredient;
|
|
10
|
+
}>;
|
|
11
|
+
export declare class ApothecaryRecipe extends Recipe<ApothecaryRecipeDefinition> {
|
|
12
|
+
getIngredients(): IngredientInput[];
|
|
13
|
+
getResults(): ResultInput[];
|
|
14
|
+
replaceIngredient(replace: Replacer<Ingredient>): Recipe;
|
|
15
|
+
replaceResult(replace: Replacer<Result>): Recipe;
|
|
16
|
+
}
|
|
17
|
+
export default class ApothecaryRecipeParser extends RecipeParser<ApothecaryRecipeDefinition, ApothecaryRecipe> {
|
|
18
|
+
create(definition: ApothecaryRecipeDefinition): ApothecaryRecipe;
|
|
19
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import RecipeParser, { Recipe } from "../index.js";
|
|
2
|
+
export class ApothecaryRecipe extends Recipe {
|
|
3
|
+
getIngredients() {
|
|
4
|
+
return [...this.definition.ingredients, this.definition.reagent];
|
|
5
|
+
}
|
|
6
|
+
getResults() {
|
|
7
|
+
return [this.definition.output];
|
|
8
|
+
}
|
|
9
|
+
replaceIngredient(replace) {
|
|
10
|
+
return new ApothecaryRecipe({
|
|
11
|
+
...this.definition,
|
|
12
|
+
reagent: replace(this.definition.reagent),
|
|
13
|
+
ingredients: this.definition.ingredients.map(replace),
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
replaceResult(replace) {
|
|
17
|
+
return new ApothecaryRecipe({
|
|
18
|
+
...this.definition,
|
|
19
|
+
output: replace(this.definition.output),
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
export default class ApothecaryRecipeParser extends RecipeParser {
|
|
24
|
+
create(definition) {
|
|
25
|
+
return new ApothecaryRecipe(definition);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
//# sourceMappingURL=apothecary.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"apothecary.js","sourceRoot":"","sources":["../../../../src/parser/recipe/botania/apothecary.ts"],"names":[],"mappings":"AACA,OAAO,YAAY,EAAE,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAenD,MAAM,OAAO,gBAAiB,SAAQ,MAAkC;IACtE,cAAc;QACZ,OAAO,CAAC,GAAG,IAAI,CAAC,UAAU,CAAC,WAAW,EAAE,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC;IACnE,CAAC;IAED,UAAU;QACR,OAAO,CAAC,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC;IAClC,CAAC;IAED,iBAAiB,CAAC,OAA6B;QAC7C,OAAO,IAAI,gBAAgB,CAAC;YAC1B,GAAG,IAAI,CAAC,UAAU;YAClB,OAAO,EAAE,OAAO,CAAC,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC;YACzC,WAAW,EAAE,IAAI,CAAC,UAAU,CAAC,WAAW,CAAC,GAAG,CAAC,OAAO,CAAC;SACtD,CAAC,CAAC;IACL,CAAC;IAED,aAAa,CAAC,OAAyB;QACrC,OAAO,IAAI,gBAAgB,CAAC;YAC1B,GAAG,IAAI,CAAC,UAAU;YAClB,MAAM,EAAE,OAAO,CAAC,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC;SACxC,CAAC,CAAC;IACL,CAAC;CACF;AAED,MAAM,CAAC,OAAO,OAAO,sBAAuB,SAAQ,YAGnD;IACC,MAAM,CAAC,UAAsC;QAC3C,OAAO,IAAI,gBAAgB,CAAC,UAAU,CAAC,CAAC;IAC1C,CAAC;CACF"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { Replacer } from "../index.js";
|
|
2
|
+
import RecipeParser, { Recipe } from "../index.js";
|
|
3
|
+
import type { Ingredient, IngredientInput } from "../../../common/ingredient.js";
|
|
4
|
+
import type { RecipeDefinition } from "../../../schema/data/recipe.js";
|
|
5
|
+
import type { ResultInput } from "../../../common/result.js";
|
|
6
|
+
export type BrewRecipeDefinition = RecipeDefinition & Readonly<{
|
|
7
|
+
ingredients: Ingredient[];
|
|
8
|
+
brew: string;
|
|
9
|
+
}>;
|
|
10
|
+
export declare class BrewRecipe extends Recipe<BrewRecipeDefinition> {
|
|
11
|
+
getIngredients(): IngredientInput[];
|
|
12
|
+
getResults(): ResultInput[];
|
|
13
|
+
replaceIngredient(replace: Replacer<Ingredient>): Recipe;
|
|
14
|
+
replaceResult(): BrewRecipe;
|
|
15
|
+
}
|
|
16
|
+
export default class BrewRecipeParser extends RecipeParser<BrewRecipeDefinition, BrewRecipe> {
|
|
17
|
+
create(definition: BrewRecipeDefinition): BrewRecipe;
|
|
18
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import RecipeParser, { Recipe } from "../index.js";
|
|
2
|
+
export class BrewRecipe extends Recipe {
|
|
3
|
+
getIngredients() {
|
|
4
|
+
return this.definition.ingredients;
|
|
5
|
+
}
|
|
6
|
+
getResults() {
|
|
7
|
+
return [];
|
|
8
|
+
}
|
|
9
|
+
replaceIngredient(replace) {
|
|
10
|
+
return new BrewRecipe({
|
|
11
|
+
...this.definition,
|
|
12
|
+
ingredients: this.definition.ingredients.map(replace),
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
replaceResult() {
|
|
16
|
+
return new BrewRecipe(this.definition);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
export default class BrewRecipeParser extends RecipeParser {
|
|
20
|
+
create(definition) {
|
|
21
|
+
return new BrewRecipe(definition);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=brew.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"brew.js","sourceRoot":"","sources":["../../../../src/parser/recipe/botania/brew.ts"],"names":[],"mappings":"AACA,OAAO,YAAY,EAAE,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAcnD,MAAM,OAAO,UAAW,SAAQ,MAA4B;IAC1D,cAAc;QACZ,OAAO,IAAI,CAAC,UAAU,CAAC,WAAW,CAAC;IACrC,CAAC;IAED,UAAU;QACR,OAAO,EAAE,CAAC;IACZ,CAAC;IAED,iBAAiB,CAAC,OAA6B;QAC7C,OAAO,IAAI,UAAU,CAAC;YACpB,GAAG,IAAI,CAAC,UAAU;YAClB,WAAW,EAAE,IAAI,CAAC,UAAU,CAAC,WAAW,CAAC,GAAG,CAAC,OAAO,CAAC;SACtD,CAAC,CAAC;IACL,CAAC;IAED,aAAa;QACX,OAAO,IAAI,UAAU,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;IACzC,CAAC;CACF;AAED,MAAM,CAAC,OAAO,OAAO,gBAAiB,SAAQ,YAG7C;IACC,MAAM,CAAC,UAAgC;QACrC,OAAO,IAAI,UAAU,CAAC,UAAU,CAAC,CAAC;IACpC,CAAC;CACF"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { Replacer } from "../index.js";
|
|
2
|
+
import RecipeParser, { Recipe } from "../index.js";
|
|
3
|
+
import type { Ingredient, IngredientInput } from "../../../common/ingredient.js";
|
|
4
|
+
import type { RecipeDefinition } from "../../../schema/data/recipe.js";
|
|
5
|
+
import type { Result, ResultInput } from "../../../common/result.js";
|
|
6
|
+
export type ElvenTradeRecipeDefinition = RecipeDefinition & Readonly<{
|
|
7
|
+
ingredients: Ingredient[];
|
|
8
|
+
output: Result[];
|
|
9
|
+
mana?: number;
|
|
10
|
+
}>;
|
|
11
|
+
export declare class ElvenTradeRecipe extends Recipe<ElvenTradeRecipeDefinition> {
|
|
12
|
+
getIngredients(): IngredientInput[];
|
|
13
|
+
getResults(): ResultInput[];
|
|
14
|
+
replaceIngredient(replace: Replacer<Ingredient>): Recipe;
|
|
15
|
+
replaceResult(replace: Replacer<Result>): Recipe;
|
|
16
|
+
}
|
|
17
|
+
export default class ElvenTradeRecipeParser extends RecipeParser<ElvenTradeRecipeDefinition, ElvenTradeRecipe> {
|
|
18
|
+
create(definition: ElvenTradeRecipeDefinition): ElvenTradeRecipe;
|
|
19
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import RecipeParser, { Recipe } from "../index.js";
|
|
2
|
+
export class ElvenTradeRecipe extends Recipe {
|
|
3
|
+
getIngredients() {
|
|
4
|
+
return this.definition.ingredients;
|
|
5
|
+
}
|
|
6
|
+
getResults() {
|
|
7
|
+
return this.definition.output;
|
|
8
|
+
}
|
|
9
|
+
replaceIngredient(replace) {
|
|
10
|
+
return new ElvenTradeRecipe({
|
|
11
|
+
...this.definition,
|
|
12
|
+
ingredients: this.definition.ingredients.map(replace),
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
replaceResult(replace) {
|
|
16
|
+
return new ElvenTradeRecipe({
|
|
17
|
+
...this.definition,
|
|
18
|
+
output: this.definition.output.map(replace),
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
export default class ElvenTradeRecipeParser extends RecipeParser {
|
|
23
|
+
create(definition) {
|
|
24
|
+
return new ElvenTradeRecipe(definition);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
//# sourceMappingURL=elvenTrade.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"elvenTrade.js","sourceRoot":"","sources":["../../../../src/parser/recipe/botania/elvenTrade.ts"],"names":[],"mappings":"AACA,OAAO,YAAY,EAAE,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAenD,MAAM,OAAO,gBAAiB,SAAQ,MAAkC;IACtE,cAAc;QACZ,OAAO,IAAI,CAAC,UAAU,CAAC,WAAW,CAAC;IACrC,CAAC;IAED,UAAU;QACR,OAAO,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC;IAChC,CAAC;IAED,iBAAiB,CAAC,OAA6B;QAC7C,OAAO,IAAI,gBAAgB,CAAC;YAC1B,GAAG,IAAI,CAAC,UAAU;YAClB,WAAW,EAAE,IAAI,CAAC,UAAU,CAAC,WAAW,CAAC,GAAG,CAAC,OAAO,CAAC;SACtD,CAAC,CAAC;IACL,CAAC;IAED,aAAa,CAAC,OAAyB;QACrC,OAAO,IAAI,gBAAgB,CAAC;YAC1B,GAAG,IAAI,CAAC,UAAU;YAClB,MAAM,EAAE,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,GAAG,CAAC,OAAO,CAAC;SAC5C,CAAC,CAAC;IACL,CAAC;CACF;AAED,MAAM,CAAC,OAAO,OAAO,sBAAuB,SAAQ,YAGnD;IACC,MAAM,CAAC,UAAsC;QAC3C,OAAO,IAAI,gBAAgB,CAAC,UAAU,CAAC,CAAC;IAC1C,CAAC;CACF"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { InlineRecipeParser, Replacer } from "../index.js";
|
|
2
|
+
import RecipeParser, { Recipe } from "../index.js";
|
|
3
|
+
import type { Ingredient, IngredientInput } from "../../../common/ingredient.js";
|
|
4
|
+
import type { RecipeDefinition } from "../../../schema/data/recipe.js";
|
|
5
|
+
import type { Result, ResultInput } from "../../../common/result.js";
|
|
6
|
+
export type GogWrapperRecipeDefinition = RecipeDefinition & Readonly<{
|
|
7
|
+
nbt: string;
|
|
8
|
+
base: RecipeDefinition;
|
|
9
|
+
gog: RecipeDefinition;
|
|
10
|
+
}>;
|
|
11
|
+
export declare class GogWrapperRecipe extends Recipe<GogWrapperRecipeDefinition> {
|
|
12
|
+
private readonly base;
|
|
13
|
+
private readonly gog;
|
|
14
|
+
constructor(definition: Omit<GogWrapperRecipeDefinition, "base" | "gog">, base: Recipe, gog: Recipe);
|
|
15
|
+
getIngredients(): IngredientInput[];
|
|
16
|
+
getResults(): ResultInput[];
|
|
17
|
+
replaceIngredient(replace: Replacer<Ingredient>): Recipe;
|
|
18
|
+
replaceResult(replace: Replacer<Result>): Recipe;
|
|
19
|
+
}
|
|
20
|
+
export default class GogWrapperRecipeParser extends RecipeParser<GogWrapperRecipeDefinition, GogWrapperRecipe> {
|
|
21
|
+
create(definition: GogWrapperRecipeDefinition, parser: InlineRecipeParser): GogWrapperRecipe;
|
|
22
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import RecipeParser, { Recipe } from "../index.js";
|
|
2
|
+
export class GogWrapperRecipe extends Recipe {
|
|
3
|
+
base;
|
|
4
|
+
gog;
|
|
5
|
+
constructor(definition, base, gog) {
|
|
6
|
+
super({
|
|
7
|
+
...definition,
|
|
8
|
+
base: base.toJSON(),
|
|
9
|
+
gog: gog.toJSON(),
|
|
10
|
+
});
|
|
11
|
+
this.base = base;
|
|
12
|
+
this.gog = gog;
|
|
13
|
+
}
|
|
14
|
+
getIngredients() {
|
|
15
|
+
return [...this.base.getIngredients(), ...this.gog.getIngredients()];
|
|
16
|
+
}
|
|
17
|
+
getResults() {
|
|
18
|
+
return [...this.base.getResults(), ...this.gog.getResults()];
|
|
19
|
+
}
|
|
20
|
+
replaceIngredient(replace) {
|
|
21
|
+
return new GogWrapperRecipe(this.definition, this.base.replaceIngredient(replace), this.gog.replaceIngredient(replace));
|
|
22
|
+
}
|
|
23
|
+
replaceResult(replace) {
|
|
24
|
+
return new GogWrapperRecipe(this.definition, this.base.replaceResult(replace), this.gog.replaceResult(replace));
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
export default class GogWrapperRecipeParser extends RecipeParser {
|
|
28
|
+
create(definition, parser) {
|
|
29
|
+
const base = parser(definition.base);
|
|
30
|
+
const gog = parser(definition.gog);
|
|
31
|
+
return new GogWrapperRecipe(definition, base, gog);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
//# sourceMappingURL=gogWrapper.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gogWrapper.js","sourceRoot":"","sources":["../../../../src/parser/recipe/botania/gogWrapper.ts"],"names":[],"mappings":"AACA,OAAO,YAAY,EAAE,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAenD,MAAM,OAAO,gBAAiB,SAAQ,MAAkC;IAGnD;IACA;IAHnB,YACE,UAA4D,EAC3C,IAAY,EACZ,GAAW;QAE5B,KAAK,CAAC;YACJ,GAAG,UAAU;YACb,IAAI,EAAE,IAAI,CAAC,MAAM,EAAE;YACnB,GAAG,EAAE,GAAG,CAAC,MAAM,EAAE;SAClB,CAAC,CAAC;QAPc,SAAI,GAAJ,IAAI,CAAQ;QACZ,QAAG,GAAH,GAAG,CAAQ;IAO9B,CAAC;IAED,cAAc;QACZ,OAAO,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC,cAAc,EAAE,EAAE,GAAG,IAAI,CAAC,GAAG,CAAC,cAAc,EAAE,CAAC,CAAC;IACvE,CAAC;IAED,UAAU;QACR,OAAO,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,EAAE,GAAG,IAAI,CAAC,GAAG,CAAC,UAAU,EAAE,CAAC,CAAC;IAC/D,CAAC;IAED,iBAAiB,CAAC,OAA6B;QAC7C,OAAO,IAAI,gBAAgB,CACzB,IAAI,CAAC,UAAU,EACf,IAAI,CAAC,IAAI,CAAC,iBAAiB,CAAC,OAAO,CAAC,EACpC,IAAI,CAAC,GAAG,CAAC,iBAAiB,CAAC,OAAO,CAAC,CACpC,CAAC;IACJ,CAAC;IAED,aAAa,CAAC,OAAyB;QACrC,OAAO,IAAI,gBAAgB,CACzB,IAAI,CAAC,UAAU,EACf,IAAI,CAAC,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,EAChC,IAAI,CAAC,GAAG,CAAC,aAAa,CAAC,OAAO,CAAC,CAChC,CAAC;IACJ,CAAC;CACF;AAED,MAAM,CAAC,OAAO,OAAO,sBAAuB,SAAQ,YAGnD;IACC,MAAM,CACJ,UAAsC,EACtC,MAA0B;QAE1B,MAAM,IAAI,GAAG,MAAM,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;QACrC,MAAM,GAAG,GAAG,MAAM,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC;QACnC,OAAO,IAAI,gBAAgB,CAAC,UAAU,EAAE,IAAI,EAAE,GAAG,CAAC,CAAC;IACrD,CAAC;CACF"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { Replacer } from "../index.js";
|
|
2
|
+
import RecipeParser, { Recipe } from "../index.js";
|
|
3
|
+
import type { Ingredient, IngredientInput } from "../../../common/ingredient.js";
|
|
4
|
+
import type { RecipeDefinition } from "../../../schema/data/recipe.js";
|
|
5
|
+
import type { BlockInput } from "./orechid.js";
|
|
6
|
+
import type { Result, ResultInput } from "../../../common/result.js";
|
|
7
|
+
export type ManaInfusionRecipeDefinition = RecipeDefinition & Readonly<{
|
|
8
|
+
input: Ingredient;
|
|
9
|
+
output: Result;
|
|
10
|
+
catalyst?: BlockInput;
|
|
11
|
+
mana?: number;
|
|
12
|
+
}>;
|
|
13
|
+
export declare class ManaInfusionRecipe extends Recipe<ManaInfusionRecipeDefinition> {
|
|
14
|
+
getIngredients(): IngredientInput[];
|
|
15
|
+
getResults(): ResultInput[];
|
|
16
|
+
replaceIngredient(replace: Replacer<Ingredient>): Recipe;
|
|
17
|
+
replaceResult(replace: Replacer<Result>): Recipe;
|
|
18
|
+
}
|
|
19
|
+
export default class ManaInfusionRecipeParser extends RecipeParser<ManaInfusionRecipeDefinition, ManaInfusionRecipe> {
|
|
20
|
+
create(definition: ManaInfusionRecipeDefinition): ManaInfusionRecipe;
|
|
21
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import RecipeParser, { Recipe } from "../index.js";
|
|
2
|
+
import { createBlockInput, fromBlockInput } from "./orechid.js";
|
|
3
|
+
export class ManaInfusionRecipe extends Recipe {
|
|
4
|
+
getIngredients() {
|
|
5
|
+
if (!this.definition.catalyst)
|
|
6
|
+
return [this.definition.input];
|
|
7
|
+
return [fromBlockInput(this.definition.catalyst), this.definition.input];
|
|
8
|
+
}
|
|
9
|
+
getResults() {
|
|
10
|
+
return [this.definition.output];
|
|
11
|
+
}
|
|
12
|
+
replaceIngredient(replace) {
|
|
13
|
+
return new ManaInfusionRecipe({
|
|
14
|
+
...this.definition,
|
|
15
|
+
input: replace(this.definition.input),
|
|
16
|
+
catalyst: (this.definition.catalyst &&
|
|
17
|
+
createBlockInput(replace(fromBlockInput(this.definition.catalyst)))) ??
|
|
18
|
+
this.definition.catalyst,
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
replaceResult(replace) {
|
|
22
|
+
return new ManaInfusionRecipe({
|
|
23
|
+
...this.definition,
|
|
24
|
+
output: replace(this.definition.output),
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
export default class ManaInfusionRecipeParser extends RecipeParser {
|
|
29
|
+
create(definition) {
|
|
30
|
+
return new ManaInfusionRecipe(definition);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
//# sourceMappingURL=manaInfusion.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"manaInfusion.js","sourceRoot":"","sources":["../../../../src/parser/recipe/botania/manaInfusion.ts"],"names":[],"mappings":"AACA,OAAO,YAAY,EAAE,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAOnD,OAAO,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAWhE,MAAM,OAAO,kBAAmB,SAAQ,MAAoC;IAC1E,cAAc;QACZ,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,QAAQ;YAAE,OAAO,CAAC,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC;QAC9D,OAAO,CAAC,cAAc,CAAC,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,EAAE,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC;IAC3E,CAAC;IAED,UAAU;QACR,OAAO,CAAC,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC;IAClC,CAAC;IAED,iBAAiB,CAAC,OAA6B;QAC7C,OAAO,IAAI,kBAAkB,CAAC;YAC5B,GAAG,IAAI,CAAC,UAAU;YAClB,KAAK,EAAE,OAAO,CAAC,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC;YACrC,QAAQ,EACN,CAAC,IAAI,CAAC,UAAU,CAAC,QAAQ;gBACvB,gBAAgB,CACd,OAAO,CAAC,cAAc,CAAC,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,CAClD,CAAC;gBACJ,IAAI,CAAC,UAAU,CAAC,QAAQ;SAC3B,CAAC,CAAC;IACL,CAAC;IAED,aAAa,CAAC,OAAyB;QACrC,OAAO,IAAI,kBAAkB,CAAC;YAC5B,GAAG,IAAI,CAAC,UAAU;YAClB,MAAM,EAAE,OAAO,CAAC,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC;SACxC,CAAC,CAAC;IACL,CAAC;CACF;AAED,MAAM,CAAC,OAAO,OAAO,wBAAyB,SAAQ,YAGrD;IACC,MAAM,CAAC,UAAwC;QAC7C,OAAO,IAAI,kBAAkB,CAAC,UAAU,CAAC,CAAC;IAC5C,CAAC;CACF"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { InlineRecipeParser, Replacer } from "../index.js";
|
|
2
|
+
import RecipeParser, { Recipe } from "../index.js";
|
|
3
|
+
import type { Ingredient, IngredientInput } from "../../../common/ingredient.js";
|
|
4
|
+
import type { RecipeDefinition } from "../../../schema/data/recipe.js";
|
|
5
|
+
import type { Result, ResultInput } from "../../../common/result.js";
|
|
6
|
+
export type NbtWrapperRecipeDefinition = RecipeDefinition & Readonly<{
|
|
7
|
+
nbt: string;
|
|
8
|
+
recipe: RecipeDefinition;
|
|
9
|
+
}>;
|
|
10
|
+
export declare class NbtWrapperRecipe extends Recipe<NbtWrapperRecipeDefinition> {
|
|
11
|
+
private readonly recipe;
|
|
12
|
+
constructor(definition: Omit<NbtWrapperRecipeDefinition, "recipe">, recipe: Recipe);
|
|
13
|
+
getIngredients(): IngredientInput[];
|
|
14
|
+
getResults(): ResultInput[];
|
|
15
|
+
replaceIngredient(replace: Replacer<Ingredient>): Recipe;
|
|
16
|
+
replaceResult(replace: Replacer<Result>): Recipe;
|
|
17
|
+
}
|
|
18
|
+
export default class NbtWrapperRecipeParser extends RecipeParser<NbtWrapperRecipeDefinition, NbtWrapperRecipe> {
|
|
19
|
+
create(definition: NbtWrapperRecipeDefinition, parser: InlineRecipeParser): NbtWrapperRecipe;
|
|
20
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import RecipeParser, { Recipe } from "../index.js";
|
|
2
|
+
export class NbtWrapperRecipe extends Recipe {
|
|
3
|
+
recipe;
|
|
4
|
+
constructor(definition, recipe) {
|
|
5
|
+
super({
|
|
6
|
+
...definition,
|
|
7
|
+
recipe: recipe.toJSON(),
|
|
8
|
+
});
|
|
9
|
+
this.recipe = recipe;
|
|
10
|
+
}
|
|
11
|
+
getIngredients() {
|
|
12
|
+
return this.recipe.getIngredients();
|
|
13
|
+
}
|
|
14
|
+
getResults() {
|
|
15
|
+
return this.recipe.getResults();
|
|
16
|
+
}
|
|
17
|
+
replaceIngredient(replace) {
|
|
18
|
+
return new NbtWrapperRecipe(this.definition, this.recipe.replaceIngredient(replace));
|
|
19
|
+
}
|
|
20
|
+
replaceResult(replace) {
|
|
21
|
+
return new NbtWrapperRecipe(this.definition, this.recipe.replaceResult(replace));
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
export default class NbtWrapperRecipeParser extends RecipeParser {
|
|
25
|
+
create(definition, parser) {
|
|
26
|
+
const recipe = parser(definition.recipe);
|
|
27
|
+
return new NbtWrapperRecipe(definition, recipe);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
//# sourceMappingURL=nbtWrapper.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"nbtWrapper.js","sourceRoot":"","sources":["../../../../src/parser/recipe/botania/nbtWrapper.ts"],"names":[],"mappings":"AACA,OAAO,YAAY,EAAE,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAcnD,MAAM,OAAO,gBAAiB,SAAQ,MAAkC;IAGnD;IAFnB,YACE,UAAsD,EACrC,MAAc;QAE/B,KAAK,CAAC;YACJ,GAAG,UAAU;YACb,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE;SACxB,CAAC,CAAC;QALc,WAAM,GAAN,MAAM,CAAQ;IAMjC,CAAC;IAED,cAAc;QACZ,OAAO,IAAI,CAAC,MAAM,CAAC,cAAc,EAAE,CAAC;IACtC,CAAC;IAED,UAAU;QACR,OAAO,IAAI,CAAC,MAAM,CAAC,UAAU,EAAE,CAAC;IAClC,CAAC;IAED,iBAAiB,CAAC,OAA6B;QAC7C,OAAO,IAAI,gBAAgB,CACzB,IAAI,CAAC,UAAU,EACf,IAAI,CAAC,MAAM,CAAC,iBAAiB,CAAC,OAAO,CAAC,CACvC,CAAC;IACJ,CAAC;IAED,aAAa,CAAC,OAAyB;QACrC,OAAO,IAAI,gBAAgB,CACzB,IAAI,CAAC,UAAU,EACf,IAAI,CAAC,MAAM,CAAC,aAAa,CAAC,OAAO,CAAC,CACnC,CAAC;IACJ,CAAC;CACF;AAED,MAAM,CAAC,OAAO,OAAO,sBAAuB,SAAQ,YAGnD;IACC,MAAM,CACJ,UAAsC,EACtC,MAA0B;QAE1B,MAAM,MAAM,GAAG,MAAM,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC;QACzC,OAAO,IAAI,gBAAgB,CAAC,UAAU,EAAE,MAAM,CAAC,CAAC;IAClD,CAAC;CACF"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import type { Replacer } from "../index.js";
|
|
2
|
+
import RecipeParser, { Recipe } from "../index.js";
|
|
3
|
+
import type { BlockIngredient, Ingredient, IngredientInput } from "../../../common/ingredient.js";
|
|
4
|
+
import type { RecipeDefinition } from "../../../schema/data/recipe.js";
|
|
5
|
+
import type { Block, Result, ResultInput } from "../../../common/result.js";
|
|
6
|
+
export type BlockOutput = string | Readonly<{
|
|
7
|
+
name: string;
|
|
8
|
+
}>;
|
|
9
|
+
export type BlockInput = Readonly<{
|
|
10
|
+
type: "block";
|
|
11
|
+
block: string;
|
|
12
|
+
}> | Readonly<{
|
|
13
|
+
type: "tag";
|
|
14
|
+
tag: string;
|
|
15
|
+
}>;
|
|
16
|
+
export type OrechidRecipeDefinition = RecipeDefinition & Readonly<{
|
|
17
|
+
input: BlockInput;
|
|
18
|
+
output: BlockInput;
|
|
19
|
+
biome_bonus?: number;
|
|
20
|
+
biome_bonus_tag?: string;
|
|
21
|
+
weight?: number;
|
|
22
|
+
}>;
|
|
23
|
+
export declare function createBlockInput(input: IngredientInput): BlockInput | null;
|
|
24
|
+
export declare function createBlockOutput(input: ResultInput): BlockOutput | null;
|
|
25
|
+
export declare function fromBlockInput(input: BlockInput): BlockIngredient;
|
|
26
|
+
export declare function fromBlockOutput(output: BlockOutput): Block;
|
|
27
|
+
export declare class OrechidRecipe extends Recipe<OrechidRecipeDefinition> {
|
|
28
|
+
getIngredients(): IngredientInput[];
|
|
29
|
+
getResults(): ResultInput[];
|
|
30
|
+
replaceIngredient(replace: Replacer<Ingredient>): Recipe;
|
|
31
|
+
replaceResult(replace: Replacer<Result>): Recipe;
|
|
32
|
+
}
|
|
33
|
+
export default class OrechidRecipeParser extends RecipeParser<OrechidRecipeDefinition, OrechidRecipe> {
|
|
34
|
+
create(definition: OrechidRecipeDefinition): OrechidRecipe;
|
|
35
|
+
}
|