Skip to content

update Crafting Components docs#4624

Open
TechLord22 wants to merge 1 commit into1.20.1from
tc/crafting-components-docs
Open

update Crafting Components docs#4624
TechLord22 wants to merge 1 commit into1.20.1from
tc/crafting-components-docs

Conversation

@TechLord22
Copy link
Member

Updates the crafting components docs to reflect best practices and some API changes made a while back.

@TechLord22 TechLord22 requested a review from a team as a code owner February 14, 2026 00:39
@jurrejelle jurrejelle added Documentation Improvements or additions to documentation ignore changelog PR should not be added to the changelog. Release: Patch - 0.0.X Smaller changes that either are bug fixes or very minor tweaks. labels Feb 14, 2026

```js title="startup/modification.js"
const Map = Java.loadClass("java.util.Map")
const GTCraftingComponents = Java.loadClass('com.gregtechceu.gtceu.data.recipe.GTCraftingComponents')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of loadclassing, should we add this to GregTechKubeJSPlugin.registerBindings ?

Copy link
Contributor

@screret screret Feb 14, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's already in there. with that exact name, too
also, you can reference crafting components by name, such as GTCraftingComponents.CIRCUIT with 'circuit'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

1.20.1 Documentation Improvements or additions to documentation ignore changelog PR should not be added to the changelog. Release: Patch - 0.0.X Smaller changes that either are bug fixes or very minor tweaks.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants