A data dumper and typing generator for the KubeJS functions, constants and classes.
Great thanks to @DAmNRelentless, @LatvianModder and @yesterday17 for invaluable suggestions during the development!
For things not dumped, or maybe if you want to add some more comments to class, methods or fields, you can add static documents to override auto-generated typing!
ProbeJS also has builtin documents to support some other mods' recipes, but it's not completed, if you want to add something to the document, maybe you can send a PR too!
Remote fetching of documents is now online, updates of builtin documents are not limited by mod versions.
Current progress of mod documents:
- Minecraft
- Create
- Integrated Dynamics
- ArsNouveau
- ArtisanWorktables
- Botania
- Cucumber
- DankStorage
- ExtendedCrafting
- Mekanism
- Immersive Engineering
- Thermal Expansion
- Others (Please PR)
For the detailed information about documents, please refer to the wiki page.
- Get VSCode.
- Install the mod.
- In game, use
/probejs dump
and wait for the typings to be generated. - Open the
.minecraft
folder in VSCode, you should see snippets and typing functioning. - Use
/probejs dump
in case of you want to refresh the generated typing. If VSCode is not responding to file changes, press F1 and executeTypeScript: Restart TS server
to force a refresh in Code.
- Use
/probejs dump
after events of interests are fired. - After the typing generation is finished, check the change in IDE.
Auto-completion snippets for Items, Blocks, Fluids, Entities and Tags:
Auto-completion, type-hinting for most of the functions and classes: