Skip to content

Commit

Permalink
all available recipe doc
Browse files Browse the repository at this point in the history
  • Loading branch information
ZZZank committed Aug 5, 2024
1 parent 70e856d commit baeec91
Show file tree
Hide file tree
Showing 6 changed files with 39 additions and 53 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ public class BuiltinRecipeDocs extends ProbeJSPlugin {
Create::new,
Cucumber::new,
CustomMachinery::new,
DankStorage::new,
ExtendedCrafting::new,
IntegratedDynamics::new,
KubeJS::new,
Minecraft::new,
Expand Down
18 changes: 18 additions & 0 deletions src/main/java/zzzank/probejs/docs/recipes/DankStorage.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
package zzzank.probejs.docs.recipes;

import zzzank.probejs.lang.typescript.ScriptDump;

/**
* @author ZZZank
*/
class DankStorage extends RecipeDocProvider {
@Override
public void addDocs(ScriptDump scriptDump) {
add("upgrade", RecipeDocUtil.basicShapedRecipe());
}

@Override
public String namespace() {
return "dankstorage";
}
}
19 changes: 19 additions & 0 deletions src/main/java/zzzank/probejs/docs/recipes/ExtendedCrafting.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
package zzzank.probejs.docs.recipes;

import zzzank.probejs.lang.typescript.ScriptDump;

/**
* @author ZZZank
*/
class ExtendedCrafting extends RecipeDocProvider {
@Override
public void addDocs(ScriptDump scriptDump) {
add("shaped_table", RecipeDocUtil.basicShapedRecipe());
add("shapeless_table", RecipeDocUtil.basicShapelessRecipe());
}

@Override
public String namespace() {
return "extendedcrafting";
}
}
26 changes: 0 additions & 26 deletions src/main/resources/docs/create.d.ts
Original file line number Diff line number Diff line change
@@ -1,29 +1,3 @@
/**
* @mod create
* @mod kubejs_create
*/
class RecipeHolder extends stub.probejs.RecipeHolder {
/**
* Recipes from Create.
*/
readonly create: Document.CreateRecipes;
}

///notes for those who're working on recipe doc:
/// `ItemStackOrFluid[]` or `IngredientOrFluid[]` should not be used anymore
/// because members of used array are fixed, not dynamic
/// use `Types.tuple()`

/**
* @mod create
* @mod kubejs_create
*/
type ItemStackOrFluid = dev.latvian.kubejs.item.ItemStackJS | dev.latvian.kubejs.fluid.FluidStackJS;
/**
* @mod create
* @mod kubejs_create
*/
type IngredientOrFluid = dev.latvian.kubejs.item.ingredient.IngredientJS | dev.latvian.kubejs.fluid.FluidStackJS;

/**
* @mod create
Expand Down
13 changes: 0 additions & 13 deletions src/main/resources/docs/dankstorage.d.ts

This file was deleted.

14 changes: 0 additions & 14 deletions src/main/resources/docs/extendedcrafting.d.ts

This file was deleted.

0 comments on commit baeec91

Please sign in to comment.