@adeficior/data-modifier 1.0.0-rc.13 → 1.0.0-rc.14

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.
Files changed (96) hide show
  1. package/dist/emit/data/recipe.d.ts +6 -5
  2. package/dist/emit/data/recipe.js +16 -8
  3. package/dist/emit/data/recipe.js.map +1 -1
  4. package/dist/emit/rule/recipe.d.ts +4 -4
  5. package/dist/emit/rule/recipe.js.map +1 -1
  6. package/dist/loader/recipe.d.ts +3 -3
  7. package/dist/loader/recipe.js +4 -5
  8. package/dist/loader/recipe.js.map +1 -1
  9. package/dist/parser/index.d.ts +1 -1
  10. package/dist/parser/index.js +1 -1
  11. package/dist/parser/index.js.map +1 -1
  12. package/dist/parser/recipe/adAstra/conversion.d.ts +1 -1
  13. package/dist/parser/recipe/adAstra/conversion.js +4 -4
  14. package/dist/parser/recipe/adAstra/conversion.js.map +1 -1
  15. package/dist/parser/recipe/adAstra/inputOutput.d.ts +1 -1
  16. package/dist/parser/recipe/adAstra/inputOutput.js +4 -4
  17. package/dist/parser/recipe/adAstra/inputOutput.js.map +1 -1
  18. package/dist/parser/recipe/adAstra/spaceStation.d.ts +1 -1
  19. package/dist/parser/recipe/adAstra/spaceStation.js +4 -4
  20. package/dist/parser/recipe/adAstra/spaceStation.js.map +1 -1
  21. package/dist/parser/recipe/botania/apothecary.d.ts +1 -1
  22. package/dist/parser/recipe/botania/apothecary.js +4 -4
  23. package/dist/parser/recipe/botania/apothecary.js.map +1 -1
  24. package/dist/parser/recipe/botania/blocks.js +1 -1
  25. package/dist/parser/recipe/botania/blocks.js.map +1 -1
  26. package/dist/parser/recipe/botania/brew.d.ts +1 -1
  27. package/dist/parser/recipe/botania/brew.js +4 -4
  28. package/dist/parser/recipe/botania/brew.js.map +1 -1
  29. package/dist/parser/recipe/botania/elvenTrade.js +1 -1
  30. package/dist/parser/recipe/botania/elvenTrade.js.map +1 -1
  31. package/dist/parser/recipe/botania/gogWrapper.d.ts +2 -2
  32. package/dist/parser/recipe/botania/gogWrapper.js +4 -4
  33. package/dist/parser/recipe/botania/gogWrapper.js.map +1 -1
  34. package/dist/parser/recipe/botania/manaInfusion.d.ts +1 -1
  35. package/dist/parser/recipe/botania/manaInfusion.js +4 -4
  36. package/dist/parser/recipe/botania/manaInfusion.js.map +1 -1
  37. package/dist/parser/recipe/botania/nbtWrapper.d.ts +2 -2
  38. package/dist/parser/recipe/botania/nbtWrapper.js +4 -4
  39. package/dist/parser/recipe/botania/nbtWrapper.js.map +1 -1
  40. package/dist/parser/recipe/botania/runicAltar.js +1 -1
  41. package/dist/parser/recipe/botania/runicAltar.js.map +1 -1
  42. package/dist/parser/recipe/create/assembly.d.ts +2 -2
  43. package/dist/parser/recipe/create/assembly.js +4 -4
  44. package/dist/parser/recipe/create/assembly.js.map +1 -1
  45. package/dist/parser/recipe/farmersdelight/cooking.d.ts +1 -1
  46. package/dist/parser/recipe/farmersdelight/cooking.js +4 -4
  47. package/dist/parser/recipe/farmersdelight/cooking.js.map +1 -1
  48. package/dist/parser/recipe/farmersdelight/cutting.d.ts +1 -2
  49. package/dist/parser/recipe/farmersdelight/cutting.js +4 -4
  50. package/dist/parser/recipe/farmersdelight/cutting.js.map +1 -1
  51. package/dist/parser/recipe/forge/conditional.d.ts +3 -3
  52. package/dist/parser/recipe/forge/conditional.js +5 -5
  53. package/dist/parser/recipe/forge/conditional.js.map +1 -1
  54. package/dist/parser/recipe/index.d.ts +21 -7
  55. package/dist/parser/recipe/index.js +30 -4
  56. package/dist/parser/recipe/index.js.map +1 -1
  57. package/dist/parser/recipe/manyToMany.d.ts +1 -1
  58. package/dist/parser/recipe/manyToMany.js +4 -4
  59. package/dist/parser/recipe/manyToMany.js.map +1 -1
  60. package/dist/parser/recipe/manyToOne.d.ts +1 -1
  61. package/dist/parser/recipe/manyToOne.js +4 -4
  62. package/dist/parser/recipe/manyToOne.js.map +1 -1
  63. package/dist/parser/recipe/oneToOne.d.ts +1 -1
  64. package/dist/parser/recipe/oneToOne.js +4 -4
  65. package/dist/parser/recipe/oneToOne.js.map +1 -1
  66. package/dist/parser/recipe/roots/component.d.ts +1 -1
  67. package/dist/parser/recipe/roots/component.js +4 -4
  68. package/dist/parser/recipe/roots/component.js.map +1 -1
  69. package/dist/parser/recipe/roots/ritual.d.ts +1 -2
  70. package/dist/parser/recipe/roots/ritual.js +4 -4
  71. package/dist/parser/recipe/roots/ritual.js.map +1 -1
  72. package/dist/parser/recipe/thermal/catalyst.d.ts +1 -1
  73. package/dist/parser/recipe/thermal/catalyst.js +4 -4
  74. package/dist/parser/recipe/thermal/catalyst.js.map +1 -1
  75. package/dist/parser/recipe/thermal/fuel.d.ts +1 -1
  76. package/dist/parser/recipe/thermal/fuel.js +4 -4
  77. package/dist/parser/recipe/thermal/fuel.js.map +1 -1
  78. package/dist/parser/recipe/thermal/index.d.ts +1 -1
  79. package/dist/parser/recipe/thermal/index.js +4 -4
  80. package/dist/parser/recipe/thermal/index.js.map +1 -1
  81. package/dist/parser/recipe/thermal/treeExtraction.d.ts +1 -1
  82. package/dist/parser/recipe/thermal/treeExtraction.js +4 -4
  83. package/dist/parser/recipe/thermal/treeExtraction.js.map +1 -1
  84. package/dist/parser/recipe/vanilla/shaped.d.ts +1 -1
  85. package/dist/parser/recipe/vanilla/shaped.js +4 -4
  86. package/dist/parser/recipe/vanilla/shaped.js.map +1 -1
  87. package/dist/parser/recipe/vanilla/smelting.d.ts +1 -1
  88. package/dist/parser/recipe/vanilla/smelting.js +4 -4
  89. package/dist/parser/recipe/vanilla/smelting.js.map +1 -1
  90. package/dist/parser/recipe/vanilla/smithing.d.ts +1 -1
  91. package/dist/parser/recipe/vanilla/smithing.js +4 -4
  92. package/dist/parser/recipe/vanilla/smithing.js.map +1 -1
  93. package/dist/parser/recipe/vanilla/stonecutting.d.ts +1 -1
  94. package/dist/parser/recipe/vanilla/stonecutting.js +4 -4
  95. package/dist/parser/recipe/vanilla/stonecutting.js.map +1 -1
  96. package/package.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AAC,CAAC;IAChD,CAAC;CACF"}
@@ -8,7 +8,7 @@ export type RootComponentRecipeDefinition = RecipeDefinition & Readonly<{
8
8
  }>;
9
9
  export declare class RootComponentRecipe extends Recipe {
10
10
  private readonly ingredients;
11
- constructor(definition: RecipeDefinition, ingredients: Ingredient[]);
11
+ constructor(ingredients: Ingredient[]);
12
12
  getIngredients(): Ingredient[];
13
13
  getResults(): never[];
14
14
  replace(ingredientReplacer: Replacer<Ingredient>): RootComponentRecipe;
@@ -1,8 +1,8 @@
1
1
  import RecipeParser, { Recipe } from "../index.js";
2
2
  export class RootComponentRecipe extends Recipe {
3
3
  ingredients;
4
- constructor(definition, ingredients) {
5
- super(definition);
4
+ constructor(ingredients) {
5
+ super();
6
6
  this.ingredients = ingredients;
7
7
  }
8
8
  getIngredients() {
@@ -12,7 +12,7 @@ export class RootComponentRecipe extends Recipe {
12
12
  return [];
13
13
  }
14
14
  replace(ingredientReplacer) {
15
- return new RootComponentRecipe(this.definition, this.ingredients.map(ingredientReplacer));
15
+ return new RootComponentRecipe(this.ingredients.map(ingredientReplacer));
16
16
  }
17
17
  serialize(context) {
18
18
  return {
@@ -23,7 +23,7 @@ export class RootComponentRecipe extends Recipe {
23
23
  export class RootComponentRecipeParser extends RecipeParser {
24
24
  deserialize(definition, context) {
25
25
  const ingredients = context.ingredients.createList(definition.ingredients);
26
- return new RootComponentRecipe(definition, ingredients);
26
+ return new RootComponentRecipe(ingredients);
27
27
  }
28
28
  }
29
29
  //# sourceMappingURL=component.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"component.js","sourceRoot":"","sources":["../../../../src/parser/recipe/roots/component.ts"],"names":[],"mappings":"AAGA,OAAO,YAAY,EAAE,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAQnD,MAAM,OAAO,mBAAoB,SAAQ,MAAM;IAG1B;IAFnB,YACE,UAA4B,EACX,WAAyB;QAE1C,KAAK,CAAC,UAAU,CAAC,CAAC;QAFD,gBAAW,GAAX,WAAW,C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AO;YACL,WAAW,EAAE,OAAO,CAAC,WAAW,CAAC,aAAa,CAAC,IAAI,CAAC,WAAW,CAAC;SACjE,CAAC;IACJ,CAAC;CACF;AAED,MAAM,OAAO,yBAA0B,SAAQ,YAG9C;IACC,WAAW,CACT,UAAyC,EACzC,OAA2B;QAE3B,MAAM,WAAW,GAAG,OAAO,CAAC,WAAW,CAAC,UAAU,CAAC,UAAU,CAAC,WAAW,CAAC,CAAC;QAC3E,OAAO,IAAI,mBAAmB,CAAC,WAAW,CAAC,CAAC;IAC9C,CAAC;CACF"}
@@ -1,6 +1,5 @@
1
1
  import type { Ingredient } from "../../../common/ingredient/index.js";
2
2
  import type { Result } from "../../../common/result/index.js";
3
- import type { RecipeDefinition } from "../../../schema/data/recipe.js";
4
3
  import type { RecipeParseContext, Replacer } from "../index.js";
5
4
  import RecipeParser from "../index.js";
6
5
  import { ManyToOneRecipe, type ManyToOneRecipeDefinition } from "../manyToOne.js";
@@ -12,7 +11,7 @@ export type RootRitualRecipeDefinition = ManyToOneRecipeDefinition & Readonly<{
12
11
  }>;
13
12
  export declare class RootRitualRecipe extends ManyToOneRecipe {
14
13
  private readonly incenses;
15
- constructor(definition: RecipeDefinition, ingredients: Ingredient[], result: Result, incenses?: Ingredient[]);
14
+ constructor(ingredients: Ingredient[], result: Result, incenses?: Ingredient[]);
16
15
  getIngredients(): Ingredient[];
17
16
  replace(ingredientReplacer: Replacer<Ingredient>, resultReplacer: Replacer<Result>): RootRitualRecipe;
18
17
  }
@@ -2,15 +2,15 @@ import RecipeParser from "../index.js";
2
2
  import { ManyToOneRecipe, } from "../manyToOne.js";
3
3
  export class RootRitualRecipe extends ManyToOneRecipe {
4
4
  incenses;
5
- constructor(definition, ingredients, result, incenses = []) {
6
- super(definition, ingredients, result);
5
+ constructor(ingredients, result, incenses = []) {
6
+ super(ingredients, result);
7
7
  this.incenses = incenses;
8
8
  }
9
9
  getIngredients() {
10
10
  return [...super.getIngredients(), ...this.incenses];
11
11
  }
12
12
  replace(ingredientReplacer, resultReplacer) {
13
- return new RootRitualRecipe(this.definition, this.incenses.map(ingredientReplacer), resultReplacer(this.result), this.incenses.map(ingredientReplacer));
13
+ return new RootRitualRecipe(this.incenses.map(ingredientReplacer), resultReplacer(this.result), this.incenses.map(ingredientReplacer));
14
14
  }
15
15
  }
16
16
  export class RootRitualRecipeParser extends RecipeParser {
@@ -19,7 +19,7 @@ export class RootRitualRecipeParser extends RecipeParser {
19
19
  const result = context.results.create(definition.result);
20
20
  const incenses = definition.incenses &&
21
21
  context.ingredients.createList(definition.incenses);
22
- return new RootRitualRecipe(definition, ingredients, result, incenses);
22
+ return new RootRitualRecipe(ingredients, result, incenses);
23
23
  }
24
24
  }
25
25
  //# sourceMappingURL=ritual.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ritual.js","sourceRoot":"","sources":["../../../../src/parser/recipe/roots/ritual.ts"],"names":[],"mappings":"AAIA,OAAO,YAAY,MAAM,aAAa,CAAC;AACvC,OAAO,EACL,eAAe,GAEhB,MAAM,iBAAiB,CAAC;AAUzB,MAAM,OAAO,gBAAiB,SAAQ,eAAe;IAKhC;IAJnB,YACE,UAA4B,EAC5B,WAAyB,EACzB,MAAc,EACG,WAAyB,EAAE;QAE5C,KAAK,CAAC,UAAU,EAAE,WAAW,EAAE,MAAM,CAAC,CAAC;QAFtB,aAAQ,GAAR,QAAQ,CAAmB;IAG9C,CAAC;IAEQ,cAAc;QACrB,OAAO,CAAC,GAAG,KAAK,CAAC,cAAc,EAAE,EAAE,GAAG,IAAI,CAAC,QAAQ,CAAC,CAAC;IACvD,CAAC;IAEQ,OAAO,CACd,kBAAwC,EACxC,cAAgC;QAEhC,OAAO,IAAI,gBAAgB,CACzB,IAAI,CAAC,UAAU,EACf,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,kBAAkB,CAAC,EACrC,cAAc,CAAC,IAAI,CAAC,MAAM,CAAC,EAC3B,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,kBAAkB,C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C;IACJ,CAAC;CACF;AAED,MAAM,OAAO,sBAAuB,SAAQ,YAG3C;IACC,WAAW,CACT,UAAsC,EACtC,OAA2B;QAE3B,MAAM,WAAW,GAAG,OAAO,CAAC,WAAW,CAAC,UAAU,CAAC,UAAU,CAAC,WAAW,CAAC,CAAC;QAC3E,MAAM,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,MAAM,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC;QACzD,MAAM,QAAQ,GACZ,UAAU,CAAC,QAAQ;YACnB,OAAO,CAAC,WAAW,CAAC,UAAU,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC;QACtD,OAAO,IAAI,gBAAgB,CAAC,WAAW,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAC;IAC7D,CAAC;CACF"}
@@ -12,7 +12,7 @@ export type ThermalCatalystRecipeDefinition = RecipeDefinition & Readonly<{
12
12
  }>;
13
13
  export declare class ThermalCatalystRecipe extends Recipe {
14
14
  private readonly ingredient;
15
- constructor(definition: RecipeDefinition, ingredient: Ingredient);
15
+ constructor(ingredient: Ingredient);
16
16
  getIngredients(): Ingredient[];
17
17
  getResults(): never[];
18
18
  replace(ingredientReplacer: Replacer<Ingredient>): Recipe;
@@ -1,8 +1,8 @@
1
1
  import RecipeParser, { Recipe } from "../index.js";
2
2
  export class ThermalCatalystRecipe extends Recipe {
3
3
  ingredient;
4
- constructor(definition, ingredient) {
5
- super(definition);
4
+ constructor(ingredient) {
5
+ super();
6
6
  this.ingredient = ingredient;
7
7
  }
8
8
  getIngredients() {
@@ -12,7 +12,7 @@ export class ThermalCatalystRecipe extends Recipe {
12
12
  return [];
13
13
  }
14
14
  replace(ingredientReplacer) {
15
- return new ThermalCatalystRecipe(this.definition, ingredientReplacer(this.ingredient));
15
+ return new ThermalCatalystRecipe(ingredientReplacer(this.ingredient));
16
16
  }
17
17
  serialize(context) {
18
18
  return {
@@ -23,7 +23,7 @@ export class ThermalCatalystRecipe extends Recipe {
23
23
  export class ThermalCatalystRecipeParser extends RecipeParser {
24
24
  deserialize(definition, context) {
25
25
  const ingredient = context.ingredients.create(definition.ingredient);
26
- return new ThermalCatalystRecipe(definition, ingredient);
26
+ return new ThermalCatalystRecipe(ingredient);
27
27
  }
28
28
  }
29
29
  //# sourceMappingURL=catalyst.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"catalyst.js","sourceRoot":"","sources":["../../../../src/parser/recipe/thermal/catalyst.ts"],"names":[],"mappings":"AAGA,OAAO,YAAY,EAAE,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAYnD,MAAM,OAAO,qBAAsB,SAAQ,MAAM;IAG5B;IAFnB,YACE,UAA4B,EACX,UAAsB;QAEvC,KAAK,CAAC,UAAU,CAAC,CAAC;QAFD,eAAU,GAAV,UAAU,CAAY;IAGzC,CAAC;IAED,cAAc;QACZ,OAAO,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;IAC3B,CAAC;IAED,UAAU;QACR,OAAO,EAAE,CAAC;IACZ,CAAC;IAEQ,OAAO,CAAC,kBAAwC;QACvD,OAAO,IAAI,qBAAqB,CAC9B,IAAI,CAAC,UAAU,EACf,kBAAkB,CAAC,IAAI,CAAC,UAAU,CAAC,CACpC,CAAC;IACJ,CAAC;IAEQ,SAAS,CAChB,OAA2B;QAE3B,OAAO;YACL,UAAU,EAAE,OAAO,CAAC,WAAW,CAAC,SAAS,CAAC,IAAI,CAAC,UAAU,CAAC;SAC3D,CAAC;IACJ,CAAC;CACF;AAED,MAAM,OAAO,2BAA4B,SAAQ,YAGhD;IACC,WAAW,CACT,UAA2C,EAC3C,OAA2B;QAE3B,MAAM,UAAU,GAAG,OAAO,CAAC,WAAW,CAAC,MAAM,CAAC,UAAU,CAAC,UAAU,CAAC,CAAC;QACrE,OAAO,IAAI,qBAAqB,CAAC,UAAU,EAAE,UAAU,CAAC,CAAC;IAC3D,CAAC;CACF"}
1
+ {"version":3,"file":"catalyst.js","sourceRoot":"","sources":["../../../../src/parser/recipe/thermal/catalyst.ts"],"names":[],"mappings":"AAGA,OAAO,YAAY,EAAE,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAYnD,MAAM,OAAO,qBAAsB,SAAQ,MAAM;IAClB;IAA7B,YAA6B,UAAsB;QACjD,KAAK,EAAE,CAAC;QADmB,eAAU,GAAV,UAAU,CAAY;IAEnD,CAAC;IAED,cAAc;QACZ,OAAO,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;IAC3B,CAAC;IAED,UAAU;QACR,OAAO,EAAE,CAAC;IACZ,CAAC;IAEQ,OAAO,CAAC,kBAAwC;QACvD,OAAO,IAAI,qBAAqB,CAAC,kBAAkB,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC;IACxE,CAAC;IAEQ,SAAS,CAChB,OAA2B;QAE3B,OAAO;YACL,UAAU,EAAE,OAAO,CAAC,WAAW,CAAC,SAAS,CAAC,IAAI,CAAC,UAAU,CAAC;SAC3D,CAAC;IACJ,CAAC;CACF;AAED,MAAM,OAAO,2BAA4B,SAAQ,YAGhD;IACC,WAAW,CACT,UAA2C,EAC3C,OAA2B;QAE3B,MAAM,UAAU,GAAG,OAAO,CAAC,WAAW,CAAC,MAAM,CAAC,UAAU,CAAC,UAAU,CAAC,CAAC;QACrE,OAAO,IAAI,qBAAqB,CAAC,UAAU,CAAC,CAAC;IAC/C,CAAC;CACF"}
@@ -8,7 +8,7 @@ export type ThermalFuelRecipeDefinition = RecipeDefinition & Readonly<{
8
8
  }>;
9
9
  export declare class ThermalFuelRecipe extends Recipe {
10
10
  private readonly ingredient;
11
- constructor(definition: RecipeDefinition, ingredient: Ingredient);
11
+ constructor(ingredient: Ingredient);
12
12
  getIngredients(): Ingredient[];
13
13
  getResults(): never[];
14
14
  replace(ingredientReplacer: Replacer<Ingredient>): Recipe;
@@ -2,8 +2,8 @@ import RecipeParser, { Recipe } from "../index.js";
2
2
  // TODO could be same as catalyst
3
3
  export class ThermalFuelRecipe extends Recipe {
4
4
  ingredient;
5
- constructor(definition, ingredient) {
6
- super(definition);
5
+ constructor(ingredient) {
6
+ super();
7
7
  this.ingredient = ingredient;
8
8
  }
9
9
  getIngredients() {
@@ -13,7 +13,7 @@ export class ThermalFuelRecipe extends Recipe {
13
13
  return [];
14
14
  }
15
15
  replace(ingredientReplacer) {
16
- return new ThermalFuelRecipe(this.definition, ingredientReplacer(this.ingredient));
16
+ return new ThermalFuelRecipe(ingredientReplacer(this.ingredient));
17
17
  }
18
18
  serialize(context) {
19
19
  return {
@@ -24,7 +24,7 @@ export class ThermalFuelRecipe extends Recipe {
24
24
  export class ThermalFuelRecipeParser extends RecipeParser {
25
25
  deserialize(definition, context) {
26
26
  const ingredient = context.ingredients.create(definition.ingredient);
27
- return new ThermalFuelRecipe(definition, ingredient);
27
+ return new ThermalFuelRecipe(ingredient);
28
28
  }
29
29
  }
30
30
  //# sourceMappingURL=fuel.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"fuel.js","sourceRoot":"","sources":["../../../../src/parser/recipe/thermal/fuel.ts"],"names":[],"mappings":"AAGA,OAAO,YAAY,EAAE,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAQnD,iCAAiC;AACjC,MAAM,OAAO,iBAAkB,SAAQ,MAAM;IAGxB;IAFnB,YACE,UAA4B,EACX,UAAsB;QAEvC,KAAK,CAAC,UAAU,CAAC,CAAC;QAFD,eAAU,GAAV,UAAU,CAAY;IAGzC,CAAC;IAED,cAAc;QACZ,OAAO,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;IAC3B,CAAC;IAED,UAAU;QACR,OAAO,EAAE,CAAC;IACZ,CAAC;IAEQ,OAAO,CAAC,kBAAwC;QACvD,OAAO,IAAI,iBAAiB,CAC1B,IAAI,CAAC,UAAU,EACf,kBAAkB,CAAC,IAAI,CAAC,UAAU,CAAC,CACpC,CAAC;IACJ,CAAC;IAEQ,SAAS,CAChB,OAA2B;QAE3B,OAAO;YACL,UAAU,EAAE,OAAO,CAAC,WAAW,CAAC,SAAS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-13,7 +13,7 @@ export type ThermalRecipeDefinition = RecipeDefinition & Readonly<{
13
13
  export declare class ThermalRecipe extends Recipe {
14
14
  private readonly ingredients;
15
15
  private readonly results;
16
- constructor(definition: RecipeDefinition, ingredients: Ingredient[], results: Result[]);
16
+ constructor(ingredients: Ingredient[], results: Result[]);
17
17
  getIngredients(): Ingredient[];
18
18
  getResults(): Result[];
19
19
  replace(ingredientReplacer: Replacer<Ingredient>, resultReplacer: Replacer<Result>): Recipe;
@@ -3,8 +3,8 @@ import RecipeParser, { Recipe } from "../index.js";
3
3
  export class ThermalRecipe extends Recipe {
4
4
  ingredients;
5
5
  results;
6
- constructor(definition, ingredients, results) {
7
- super(definition);
6
+ constructor(ingredients, results) {
7
+ super();
8
8
  this.ingredients = ingredients;
9
9
  this.results = results;
10
10
  }
@@ -15,7 +15,7 @@ export class ThermalRecipe extends Recipe {
15
15
  return this.results;
16
16
  }
17
17
  replace(ingredientReplacer, resultReplacer) {
18
- return new ThermalRecipe(this.definition, this.ingredients.map(ingredientReplacer), this.results.map(resultReplacer));
18
+ return new ThermalRecipe(this.ingredients.map(ingredientReplacer), this.results.map(resultReplacer));
19
19
  }
20
20
  serialize(context) {
21
21
  const serialized = {
@@ -41,7 +41,7 @@ export class ThermalRecipeParser extends RecipeParser {
41
41
  const results = Array.isArray(definition.result)
42
42
  ? context.results.createList(definition.result)
43
43
  : [context.results.create(definition.result)];
44
- return new ThermalRecipe(definition, ingredients, results);
44
+ return new ThermalRecipe(ingredients, results);
45
45
  }
46
46
  }
47
47
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/parser/recipe/thermal/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAGtD,OAAO,YAAY,EAAE,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAWnD,MAAM,OAAO,aAAc,SAAQ,MAAM;IAGpB;IACA;IA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CAAC;CACF"}
@@ -12,7 +12,7 @@ export declare class TreeExtractionRecipe extends Recipe {
12
12
  private readonly trunk;
13
13
  private readonly leaves;
14
14
  private readonly result;
15
- constructor(definition: RecipeDefinition, trunk: Ingredient, leaves: Ingredient, result: Result);
15
+ constructor(trunk: Ingredient, leaves: Ingredient, result: Result);
16
16
  getIngredients(): Ingredient[];
17
17
  getResults(): Result[];
18
18
  replace(ingredientReplacer: Replacer<Ingredient>, resultReplacer: Replacer<Result>): TreeExtractionRecipe;
@@ -6,8 +6,8 @@ export class TreeExtractionRecipe extends Recipe {
6
6
  trunk;
7
7
  leaves;
8
8
  result;
9
- constructor(definition, trunk, leaves, result) {
10
- super(definition);
9
+ constructor(trunk, leaves, result) {
10
+ super();
11
11
  this.trunk = trunk;
12
12
  this.leaves = leaves;
13
13
  this.result = result;
@@ -19,7 +19,7 @@ export class TreeExtractionRecipe extends Recipe {
19
19
  return [this.result];
20
20
  }
21
21
  replace(ingredientReplacer, resultReplacer) {
22
- return new TreeExtractionRecipe(this.definition, ingredientReplacer(this.trunk), ingredientReplacer(this.leaves), resultReplacer(this.result));
22
+ return new TreeExtractionRecipe(ingredientReplacer(this.trunk), ingredientReplacer(this.leaves), resultReplacer(this.result));
23
23
  }
24
24
  serializeBlockIngredient(ingredient) {
25
25
  if (ingredient instanceof BlockIngredient) {
@@ -40,7 +40,7 @@ export class TreeExtractionRecipeParser extends RecipeParser {
40
40
  const trunk = context.ingredients.create(new BlockIngredient(definition.trunk));
41
41
  const leaves = context.ingredients.create(new BlockIngredient(definition.leaves));
42
42
  const result = context.results.create(definition.result);
43
- return new TreeExtractionRecipe(definition, trunk, leaves, result);
43
+ return new TreeExtractionRecipe(trunk, leaves, result);
44
44
  }
45
45
  }
46
46
  //# sourceMappingURL=treeExtraction.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"treeExtraction.js","sourceRoot":"","sources":["../../../../src/parser/recipe/thermal/treeExtraction.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,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OAAO,IAAI,oBAAoB,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;IACzD,CAAC;CACF"}
@@ -12,7 +12,7 @@ export type ShapedRecipeDefinition = RecipeDefinition & Readonly<{
12
12
  export declare class ShapedRecipe extends Recipe {
13
13
  private readonly ingredients;
14
14
  private readonly result;
15
- constructor(definition: RecipeDefinition, ingredients: IngredientMap, result: Result);
15
+ constructor(ingredients: IngredientMap, result: Result);
16
16
  getIngredients(): Ingredient[];
17
17
  getResults(): Result[];
18
18
  replace(ingredientReplacer: Replacer<Ingredient>, resultReplacer: Replacer<Result>): ShapedRecipe;
@@ -2,8 +2,8 @@ import RecipeParser, { Recipe } from "../index.js";
2
2
  export class ShapedRecipe extends Recipe {
3
3
  ingredients;
4
4
  result;
5
- constructor(definition, ingredients, result) {
6
- super(definition);
5
+ constructor(ingredients, result) {
6
+ super();
7
7
  this.ingredients = ingredients;
8
8
  this.result = result;
9
9
  }
@@ -14,7 +14,7 @@ export class ShapedRecipe extends Recipe {
14
14
  return [this.result];
15
15
  }
16
16
  replace(ingredientReplacer, resultReplacer) {
17
- return new ShapedRecipe(this.definition, this.ingredients.replace(ingredientReplacer), resultReplacer(this.result));
17
+ return new ShapedRecipe(this.ingredients.replace(ingredientReplacer), resultReplacer(this.result));
18
18
  }
19
19
  serialize(context) {
20
20
  return {
@@ -27,7 +27,7 @@ export class ShapedParser extends RecipeParser {
27
27
  deserialize(definition, context) {
28
28
  const ingredients = context.ingredients.ingredientMap(definition.key);
29
29
  const result = context.results.create(definition.result);
30
- return new ShapedRecipe(definition, ingredients, result);
30
+ return new ShapedRecipe(ingredients, result);
31
31
  }
32
32
  }
33
33
  //# sourceMappingURL=shaped.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"shaped.js","sourceRoot":"","sources":["../../../../src/parser/recipe/vanilla/shaped.ts"],"names":[],"mappings":"AAIA,OAAO,YAAY,EAAE,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAUnD,MA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MAAM,EAAE,MAAM,aAAa,CAAC;AAUnD,MAAM,OAAO,YAAa,SAAQ,MAAM;IAEnB;IACA;IAFnB,YACmB,WAA0B,EAC1B,MAAc;QAE/B,KAAK,EAAE,CAAC;QAHS,gBAAW,GAAX,WAAW,CAAe;QAC1B,WAAM,GAAN,MAAM,CAAQ;IAGjC,CAAC;IAED,cAAc;QACZ,OAAO,IAAI,CAAC,WAAW,CAAC,IAAI,EAAE,CAAC;IACjC,CAAC;IAED,UAAU;QACR,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IACvB,CAAC;IAED,OAAO,CACL,kBAAwC,EACxC,cAAgC;QAEhC,OAAO,IAAI,YAAY,CACrB,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,kBAAkB,CAAC,EAC5C,cAAc,CAAC,IAAI,CAAC,MAAM,CAAC,CAC5B,CAAC;IACJ,CAAC;IAEQ,SAAS,CAChB,OAA2B;QAE3B,OAAO;YACL,GAAG,EAAE,IAAI,CAAC,WAAW,CAAC,SAAS,CAAC,OAAO,CAAC;YACxC,MAAM,EAAE,OAAO,CAAC,OAAO,CAAC,SAAS,CAAC,IAAI,CAAC,MAAM,CAAC;SAC/C,CAAC;IACJ,CAAC;CACF;AAED,MAAM,OAAO,YAAa,SAAQ,YAGjC;IACC,WAAW,CACT,UAAkC,EAClC,OAA2B;QAE3B,MAAM,WAAW,GAAG,OAAO,CAAC,WAAW,CAAC,aAAa,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC;QACtE,MAAM,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,MAAM,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC;QACzD,OAAO,IAAI,YAAY,CAAC,WAAW,EAAE,MAAM,CAAC,CAAC;IAC/C,CAAC;CACF"}
@@ -11,7 +11,7 @@ export type SmeltingRecipeDefinition = RecipeDefinition & Readonly<{
11
11
  export declare class SmeltingRecipe extends Recipe {
12
12
  private readonly ingredient;
13
13
  private readonly result;
14
- constructor(definition: RecipeDefinition, ingredient: Ingredient, result: Result);
14
+ constructor(ingredient: Ingredient, result: Result);
15
15
  getIngredients(): Ingredient[];
16
16
  getResults(): Result[];
17
17
  replace(ingredientReplacer: Replacer<Ingredient>, resultReplacer: Replacer<Result>): SmeltingRecipe;
@@ -2,8 +2,8 @@ import RecipeParser, { Recipe } from "../index.js";
2
2
  export class SmeltingRecipe extends Recipe {
3
3
  ingredient;
4
4
  result;
5
- constructor(definition, ingredient, result) {
6
- super(definition);
5
+ constructor(ingredient, result) {
6
+ super();
7
7
  this.ingredient = ingredient;
8
8
  this.result = result;
9
9
  }
@@ -14,7 +14,7 @@ export class SmeltingRecipe extends Recipe {
14
14
  return [this.result];
15
15
  }
16
16
  replace(ingredientReplacer, resultReplacer) {
17
- return new SmeltingRecipe(this.definition, ingredientReplacer(this.ingredient), resultReplacer(this.result));
17
+ return new SmeltingRecipe(ingredientReplacer(this.ingredient), resultReplacer(this.result));
18
18
  }
19
19
  serialize(context) {
20
20
  return {
@@ -27,7 +27,7 @@ export class SmeltingParser extends RecipeParser {
27
27
  deserialize(definition, context) {
28
28
  const ingredient = context.ingredients.create(definition.ingredient);
29
29
  const result = context.results.create(definition.result);
30
- return new SmeltingRecipe(definition, ingredient, result);
30
+ return new SmeltingRecipe(ingredient, result);
31
31
  }
32
32
  }
33
33
  //# sourceMappingURL=smelting.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"smelting.js","sourceRoot":"","sources":["../../../../src/parser/recipe/vanilla/smelting.ts"],"names":[],"mappings":"AAIA,OAAO,YAAY,EAAE,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AASnD,MAAM,OAAO,cAAe,SAAQ,MAAM;IAGrB;IACA;IAHnB,YACE,UAA4B,EACX,UAAsB,EACtB,MAAc;QAE/B,KAAK,CAAC,UAAU,CAAC,CAAC;QAHD,eAAU,GAAV,UAAU,CAAY;QACtB,WAAM,GAAN,MAAM,CAAQ;IAGjC,CAAC;IAED,cAAc;QACZ,OAAO,CA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OAAO,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;IAC3B,CAAC;IAED,UAAU;QACR,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IACvB,CAAC;IAEQ,OAAO,CACd,kBAAwC,EACxC,cAAgC;QAEhC,OAAO,IAAI,cAAc,CACvB,kBAAkB,CAAC,IAAI,CAAC,UAAU,CAAC,EACnC,cAAc,CAAC,IAAI,CAAC,MAAM,CAAC,CAC5B,CAAC;IACJ,CAAC;IAEQ,SAAS,CAChB,OAA2B;QAE3B,OAAO;YACL,UAAU,EAAE,OAAO,CAAC,WAAW,CAAC,SAAS,CAAC,IAAI,CAAC,UAAU,CAAC;YAC1D,MAAM,EAAE,OAAO,CAAC,OAAO,CAAC,SAAS,CAAC,IAAI,CAAC,MAAM,CAAC;SAC/C,CAAC;IACJ,CAAC;CACF;AAED,MAAM,OAAO,cAAe,SAAQ,YAGnC;IACC,WAAW,CACT,UAAoC,EACpC,OAA2B;QAE3B,MAAM,UAAU,GAAG,OAAO,CAAC,WAAW,CAAC,MAAM,CAAC,UAAU,CAAC,UAAU,CAAC,CAAC;QACrE,MAAM,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,MAAM,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC;QACzD,OAAO,IAAI,cAAc,CAAC,UAAU,EAAE,MAAM,CAAC,CAAC;IAChD,CAAC;CACF"}
@@ -12,7 +12,7 @@ export declare class SmithingRecipe extends Recipe {
12
12
  private readonly base;
13
13
  private readonly addition;
14
14
  private readonly result;
15
- constructor(definition: RecipeDefinition, base: Ingredient, addition: Ingredient, result: Result);
15
+ constructor(base: Ingredient, addition: Ingredient, result: Result);
16
16
  getIngredients(): Ingredient[];
17
17
  getResults(): Result[];
18
18
  replace(ingredientReplacer: Replacer<Ingredient>, resultReplacer: Replacer<Result>): SmithingRecipe;
@@ -3,8 +3,8 @@ export class SmithingRecipe extends Recipe {
3
3
  base;
4
4
  addition;
5
5
  result;
6
- constructor(definition, base, addition, result) {
7
- super(definition);
6
+ constructor(base, addition, result) {
7
+ super();
8
8
  this.base = base;
9
9
  this.addition = addition;
10
10
  this.result = result;
@@ -16,7 +16,7 @@ export class SmithingRecipe extends Recipe {
16
16
  return [this.result];
17
17
  }
18
18
  replace(ingredientReplacer, resultReplacer) {
19
- return new SmithingRecipe(this.definition, ingredientReplacer(this.base), ingredientReplacer(this.addition), resultReplacer(this.result));
19
+ return new SmithingRecipe(ingredientReplacer(this.base), ingredientReplacer(this.addition), resultReplacer(this.result));
20
20
  }
21
21
  serialize(context) {
22
22
  return {
@@ -31,7 +31,7 @@ export class SmithingParser extends RecipeParser {
31
31
  const base = context.ingredients.create(definition.base);
32
32
  const addition = context.ingredients.create(definition.addition);
33
33
  const result = context.results.create(definition.result);
34
- return new SmithingRecipe(definition, base, addition, result);
34
+ return new SmithingRecipe(base, addition, result);
35
35
  }
36
36
  }
37
37
  //# sourceMappingURL=smithing.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"smithing.js","sourceRoot":"","sources":["../../../../src/parser/recipe/vanilla/smithing.ts"],"names":[],"mappings":"AAIA,OAAO,YAAY,EAAE,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AASnD,MAAM,OAAO,cAAe,SAAQ,MAAM;IAGrB;IACA;IACA;IAJnB,YACE,UAA4B,EACX,IAAgB,EAChB,QAAoB,EACpB,MAAc;QAE/B,KAAK,CAAC,UAAU,CAAC,CAAC;QAJD,SAAI,GAAJ,IAAI,CAAY;QAChB,aAAQ,GAAR,QAAQ,CAAY;QACpB,WAAM,GAAN,MAAM,CAAQ;IAGjC,CAAC;IAED,cAAc;QACZ,OAAO,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC;IACpC,CAAC;IAED,UAAU;QACR,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IACvB,CAAC;IAEQ,OAAO,CACd,kBAAwC,EACxC,cAAgC;QAEhC,OAAO,IAAI,cAAc,CACv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7 @@ export type StonecuttingRecipeDefinition = RecipeDefinition & Readonly<{
11
11
  export declare class StonecuttingRecipe extends Recipe {
12
12
  private readonly ingredient;
13
13
  private readonly result;
14
- constructor(definition: RecipeDefinition, ingredient: Ingredient, result: Result);
14
+ constructor(ingredient: Ingredient, result: Result);
15
15
  getIngredients(): Ingredient[];
16
16
  getResults(): Result[];
17
17
  replace(ingredientReplacer: Replacer<Ingredient>, resultReplacer: Replacer<Result>): StonecuttingRecipe;
@@ -3,8 +3,8 @@ import RecipeParser, { Recipe } from "../index.js";
3
3
  export class StonecuttingRecipe extends Recipe {
4
4
  ingredient;
5
5
  result;
6
- constructor(definition, ingredient, result) {
7
- super(definition);
6
+ constructor(ingredient, result) {
7
+ super();
8
8
  this.ingredient = ingredient;
9
9
  this.result = result;
10
10
  }
@@ -15,7 +15,7 @@ export class StonecuttingRecipe extends Recipe {
15
15
  return [this.result];
16
16
  }
17
17
  replace(ingredientReplacer, resultReplacer) {
18
- return new StonecuttingRecipe(this.definition, ingredientReplacer(this.ingredient), resultReplacer(this.result));
18
+ return new StonecuttingRecipe(ingredientReplacer(this.ingredient), resultReplacer(this.result));
19
19
  }
20
20
  serialize(context) {
21
21
  return {
@@ -28,7 +28,7 @@ export class StonecuttingParser extends RecipeParser {
28
28
  deserialize(definition, context) {
29
29
  const ingredient = context.ingredients.create(definition.ingredient);
30
30
  const result = context.results.create(definition.result);
31
- return new StonecuttingRecipe(definition, ingredient, result);
31
+ return new StonecuttingRecipe(ingredient, result);
32
32
  }
33
33
  }
34
34
  //# sourceMappingURL=stonecutting.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"stonecutting.js","sourceRoot":"","sources":["../../../../src/parser/recipe/vanilla/stonecutting.ts"],"names":[],"mappings":"AAIA,OAAO,YAAY,EAAE,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AASnD,qCAAqC;AACrC,MAAM,OAAO,kBAAmB,SAAQ,MAAM;IAGzB;IACA;IAHnB,YACE,UAA4B,EACX,U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,kBAAmB,SAAQ,MAAM;IAEzB;IACA;IAFnB,YACmB,UAAsB,EACtB,MAAc;QAE/B,KAAK,EAAE,CAAC;QAHS,eAAU,GAAV,UAAU,CAAY;QACtB,WAAM,GAAN,MAAM,CAAQ;IAGjC,CAAC;IAED,cAAc;QACZ,OAAO,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;IAC3B,CAAC;IAED,UAAU;QACR,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IACvB,CAAC;IAEQ,OAAO,CACd,kBAAwC,EACxC,cAAgC;QAEhC,OAAO,IAAI,kBAAkB,CAC3B,kBAAkB,CAAC,IAAI,CAAC,UAAU,CAAC,EACnC,cAAc,CAAC,IAAI,CAAC,MAAM,CAAC,CAC5B,CAAC;IACJ,CAAC;IAEQ,SAAS,CAChB,OAA2B;QAE3B,OAAO;YACL,UAAU,EAAE,OAAO,CAAC,WAAW,CAAC,SAAS,CAAC,IAAI,CAAC,UAAU,CAAC;YAC1D,MAAM,EAAE,OAAO,CAAC,WAAW,CAAC,SAAS,CAAC,IAAI,CAAC,MAAM,CAAC;SACnD,CAAC;IACJ,CAAC;CACF;AAED,MAAM,OAAO,kBAAmB,SAAQ,YAGvC;IACC,WAAW,CACT,UAAwC,EACxC,OAA2B;QAE3B,MAAM,UAAU,GAAG,OAAO,CAAC,WAAW,CAAC,MAAM,CAAC,UAAU,CAAC,UAAU,CAAC,CAAC;QACrE,MAAM,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,MAAM,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC;QACzD,OAAO,IAAI,kBAAkB,CAAC,UAAU,EAAE,MAAM,CAAC,CAAC;IACpD,CAAC;CACF"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adeficior/data-modifier",
3
- "version": "1.0.0-rc.13",
3
+ "version": "1.0.0-rc.14",
4
4
  "description": "Data Modifier",
5
5
  "main": "dist/index.js",
6
6
  "bin": {