zen-flow 2.7.0 → 2.8.0
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/zenflow.cjs +10 -10
- package/dist/zenflow.d.ts +13 -8
- package/dist/zenflow.mjs +10 -10
- package/package.json +1 -1
package/dist/zenflow.cjs
CHANGED
|
@@ -229,13 +229,13 @@ const replaceQED = (ingredient, recipe) => [
|
|
|
229
229
|
addQED(ingredient, recipe)
|
|
230
230
|
].join("\n");
|
|
231
231
|
|
|
232
|
-
const addCarpenter = (
|
|
233
|
-
const out = formatArgs(formatIngredient(
|
|
232
|
+
const addCarpenter = (recipe) => {
|
|
233
|
+
const out = formatArgs(formatIngredient(recipe.out), formatRecipe(recipe.recipe), recipe.liquid && formatStack(recipe.liquid), recipe.ticks, recipe.top && formatIngredient(recipe.top));
|
|
234
234
|
return `mods.forestry.Carpenter.addRecipe(${out});`;
|
|
235
235
|
};
|
|
236
236
|
const removeCarpenter = (id, liquid) => `mods.forestry.Carpenter.removeRecipe(${formatArgs(id, liquid)});`;
|
|
237
|
-
const addCentrifuge = (
|
|
238
|
-
const out = formatArgs(
|
|
237
|
+
const addCentrifuge = (recipe) => {
|
|
238
|
+
const out = formatArgs(recipe.out.map((ingredient) => isObject(ingredient) ? `${ingredient.id} % ${ingredient.n}` : ingredient), recipe.in, recipe.ticks);
|
|
239
239
|
return `mods.forestry.Centrifuge.addRecipe(${out});`;
|
|
240
240
|
};
|
|
241
241
|
const removeCentrifuge = (id) => `mods.forestry.Centrifuge.removeRecipe(${id});`;
|
|
@@ -250,8 +250,8 @@ const addFermenterFuel = (recipe) => {
|
|
|
250
250
|
};
|
|
251
251
|
const removeFermenterFuel = (id) => `mods.forestry.Fermenter.removeFuel(${id});`;
|
|
252
252
|
const removeMoistener = (id) => `mods.forestry.Moistener.removeRecipe(${id});`;
|
|
253
|
-
const addSqueezer = (
|
|
254
|
-
const out = formatArgs(formatStack(
|
|
253
|
+
const addSqueezer = (recipe) => {
|
|
254
|
+
const out = formatArgs(formatStack(recipe.out), formatIngredient(recipe.bonus), recipe.in.map(formatIngredient), recipe.ticks);
|
|
255
255
|
return `mods.forestry.Squeezer.addRecipe(${out});`;
|
|
256
256
|
};
|
|
257
257
|
const removeSqueezer = (recipe) => {
|
|
@@ -259,8 +259,8 @@ const removeSqueezer = (recipe) => {
|
|
|
259
259
|
return `mods.forestry.Squeezer.removeRecipe(${recipe});`;
|
|
260
260
|
return `mods.forestry.Squeezer.removeRecipe(${formatArgs(recipe.out, recipe.in)});`;
|
|
261
261
|
};
|
|
262
|
-
const addStill = (
|
|
263
|
-
const out = formatArgs(formatStack(
|
|
262
|
+
const addStill = (recipe) => {
|
|
263
|
+
const out = formatArgs(formatStack(recipe.out), formatStack(recipe.in), recipe.ticks);
|
|
264
264
|
return `mods.forestry.Still.addRecipe(${out});`;
|
|
265
265
|
};
|
|
266
266
|
const removeStill = (recipe) => {
|
|
@@ -268,8 +268,8 @@ const removeStill = (recipe) => {
|
|
|
268
268
|
return `mods.forestry.Still.removeRecipe(${recipe});`;
|
|
269
269
|
return `mods.forestry.Still.removeRecipe(${formatArgs(recipe.out, recipe.in)});`;
|
|
270
270
|
};
|
|
271
|
-
const addFabricator = (
|
|
272
|
-
const out = formatArgs(
|
|
271
|
+
const addFabricator = (recipe) => {
|
|
272
|
+
const out = formatArgs(formatIngredient(recipe.out), formatRecipe(recipe.recipe), recipe.mb, recipe.cast);
|
|
273
273
|
return `mods.forestry.ThermionicFabricator.addCast(${out});`;
|
|
274
274
|
};
|
|
275
275
|
const removeFabricator = (id) => `mods.forestry.ThermionicFabricator.removeCast(${id});`;
|
package/dist/zenflow.d.ts
CHANGED
|
@@ -179,13 +179,15 @@ declare const removeQED: (id: string) => string;
|
|
|
179
179
|
declare const replaceQED: (ingredient: Ingredient, recipe: RecipeShaped) => string;
|
|
180
180
|
|
|
181
181
|
declare type RecipeCarpenter = {
|
|
182
|
+
out: Ingredient;
|
|
182
183
|
recipe: RecipeShaped;
|
|
183
|
-
top?: Ingredient;
|
|
184
184
|
ticks: number;
|
|
185
|
+
top?: Ingredient;
|
|
185
186
|
liquid?: Stack;
|
|
186
187
|
};
|
|
187
188
|
declare type RecipeCentrifuge = {
|
|
188
189
|
in: string;
|
|
190
|
+
out: Ingredient[];
|
|
189
191
|
ticks: number;
|
|
190
192
|
};
|
|
191
193
|
declare type RecipeFermenter = {
|
|
@@ -199,16 +201,19 @@ declare type RecipeFermenterFuel = {
|
|
|
199
201
|
burn: number;
|
|
200
202
|
};
|
|
201
203
|
declare type RecipeSqueezer = {
|
|
204
|
+
out: Stack;
|
|
202
205
|
in: Ingredient[];
|
|
203
206
|
bonus: Ingredient;
|
|
204
207
|
ticks: number;
|
|
205
208
|
};
|
|
206
209
|
declare type RecipeStill = {
|
|
207
|
-
|
|
210
|
+
in: Stack;
|
|
211
|
+
out: Stack;
|
|
208
212
|
ticks: number;
|
|
209
213
|
};
|
|
210
214
|
declare type RecipeFabricator = {
|
|
211
|
-
|
|
215
|
+
out: Ingredient;
|
|
216
|
+
recipe: RecipeShaped;
|
|
212
217
|
mb: number;
|
|
213
218
|
cast?: string;
|
|
214
219
|
};
|
|
@@ -217,16 +222,16 @@ declare type RecipeFabricatorFuel = {
|
|
|
217
222
|
mb: number;
|
|
218
223
|
temp: number;
|
|
219
224
|
};
|
|
220
|
-
declare const addCarpenter: (
|
|
225
|
+
declare const addCarpenter: (recipe: RecipeCarpenter) => string;
|
|
221
226
|
declare const removeCarpenter: (id: string, liquid?: string | undefined) => string;
|
|
222
|
-
declare const addCentrifuge: (
|
|
227
|
+
declare const addCentrifuge: (recipe: RecipeCentrifuge) => string;
|
|
223
228
|
declare const removeCentrifuge: (id: string) => string;
|
|
224
229
|
declare const addFermenter: (recipe: RecipeFermenter) => string;
|
|
225
230
|
declare const removeFermenter: (id: string) => string;
|
|
226
231
|
declare const addFermenterFuel: (recipe: RecipeFermenterFuel) => string;
|
|
227
232
|
declare const removeFermenterFuel: (id: string) => string;
|
|
228
233
|
declare const removeMoistener: (id: string) => string;
|
|
229
|
-
declare const addSqueezer: (
|
|
234
|
+
declare const addSqueezer: (recipe: RecipeSqueezer) => string;
|
|
230
235
|
/**
|
|
231
236
|
* Remove Forestry Squeezer recipe
|
|
232
237
|
*
|
|
@@ -237,7 +242,7 @@ declare const removeSqueezer: (recipe: string | {
|
|
|
237
242
|
in: string[];
|
|
238
243
|
out: string;
|
|
239
244
|
}) => string;
|
|
240
|
-
declare const addStill: (
|
|
245
|
+
declare const addStill: (recipe: RecipeStill) => string;
|
|
241
246
|
/**
|
|
242
247
|
* Remove Forestry Still recipe
|
|
243
248
|
*
|
|
@@ -248,7 +253,7 @@ declare const removeStill: (recipe: string | {
|
|
|
248
253
|
in: string;
|
|
249
254
|
out: string;
|
|
250
255
|
}) => string;
|
|
251
|
-
declare const addFabricator: (
|
|
256
|
+
declare const addFabricator: (recipe: RecipeFabricator) => string;
|
|
252
257
|
declare const removeFabricator: (id: string) => string;
|
|
253
258
|
declare const addFabricatorFuel: (recipe: RecipeFabricatorFuel) => string;
|
|
254
259
|
declare const removeFabricatorFuel: (id: string) => string;
|
package/dist/zenflow.mjs
CHANGED
|
@@ -225,13 +225,13 @@ const replaceQED = (ingredient, recipe) => [
|
|
|
225
225
|
addQED(ingredient, recipe)
|
|
226
226
|
].join("\n");
|
|
227
227
|
|
|
228
|
-
const addCarpenter = (
|
|
229
|
-
const out = formatArgs(formatIngredient(
|
|
228
|
+
const addCarpenter = (recipe) => {
|
|
229
|
+
const out = formatArgs(formatIngredient(recipe.out), formatRecipe(recipe.recipe), recipe.liquid && formatStack(recipe.liquid), recipe.ticks, recipe.top && formatIngredient(recipe.top));
|
|
230
230
|
return `mods.forestry.Carpenter.addRecipe(${out});`;
|
|
231
231
|
};
|
|
232
232
|
const removeCarpenter = (id, liquid) => `mods.forestry.Carpenter.removeRecipe(${formatArgs(id, liquid)});`;
|
|
233
|
-
const addCentrifuge = (
|
|
234
|
-
const out = formatArgs(
|
|
233
|
+
const addCentrifuge = (recipe) => {
|
|
234
|
+
const out = formatArgs(recipe.out.map((ingredient) => isObject(ingredient) ? `${ingredient.id} % ${ingredient.n}` : ingredient), recipe.in, recipe.ticks);
|
|
235
235
|
return `mods.forestry.Centrifuge.addRecipe(${out});`;
|
|
236
236
|
};
|
|
237
237
|
const removeCentrifuge = (id) => `mods.forestry.Centrifuge.removeRecipe(${id});`;
|
|
@@ -246,8 +246,8 @@ const addFermenterFuel = (recipe) => {
|
|
|
246
246
|
};
|
|
247
247
|
const removeFermenterFuel = (id) => `mods.forestry.Fermenter.removeFuel(${id});`;
|
|
248
248
|
const removeMoistener = (id) => `mods.forestry.Moistener.removeRecipe(${id});`;
|
|
249
|
-
const addSqueezer = (
|
|
250
|
-
const out = formatArgs(formatStack(
|
|
249
|
+
const addSqueezer = (recipe) => {
|
|
250
|
+
const out = formatArgs(formatStack(recipe.out), formatIngredient(recipe.bonus), recipe.in.map(formatIngredient), recipe.ticks);
|
|
251
251
|
return `mods.forestry.Squeezer.addRecipe(${out});`;
|
|
252
252
|
};
|
|
253
253
|
const removeSqueezer = (recipe) => {
|
|
@@ -255,8 +255,8 @@ const removeSqueezer = (recipe) => {
|
|
|
255
255
|
return `mods.forestry.Squeezer.removeRecipe(${recipe});`;
|
|
256
256
|
return `mods.forestry.Squeezer.removeRecipe(${formatArgs(recipe.out, recipe.in)});`;
|
|
257
257
|
};
|
|
258
|
-
const addStill = (
|
|
259
|
-
const out = formatArgs(formatStack(
|
|
258
|
+
const addStill = (recipe) => {
|
|
259
|
+
const out = formatArgs(formatStack(recipe.out), formatStack(recipe.in), recipe.ticks);
|
|
260
260
|
return `mods.forestry.Still.addRecipe(${out});`;
|
|
261
261
|
};
|
|
262
262
|
const removeStill = (recipe) => {
|
|
@@ -264,8 +264,8 @@ const removeStill = (recipe) => {
|
|
|
264
264
|
return `mods.forestry.Still.removeRecipe(${recipe});`;
|
|
265
265
|
return `mods.forestry.Still.removeRecipe(${formatArgs(recipe.out, recipe.in)});`;
|
|
266
266
|
};
|
|
267
|
-
const addFabricator = (
|
|
268
|
-
const out = formatArgs(
|
|
267
|
+
const addFabricator = (recipe) => {
|
|
268
|
+
const out = formatArgs(formatIngredient(recipe.out), formatRecipe(recipe.recipe), recipe.mb, recipe.cast);
|
|
269
269
|
return `mods.forestry.ThermionicFabricator.addCast(${out});`;
|
|
270
270
|
};
|
|
271
271
|
const removeFabricator = (id) => `mods.forestry.ThermionicFabricator.removeCast(${id});`;
|