Skip to content

Commit 94c9e1e

Browse files
committed
Merge remote-tracking branch 'origin/master'
2 parents 23dcb6f + c275d8a commit 94c9e1e

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

AGENTS.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ CTNH-Modules/
2626
- Runtime/datagen args: `gradle/scripts/moddevgradle.gradle`. `runData` writes `src/generated/resources`.
2727
- Formatting: `gradle/scripts/spotless.gradle`, `spotless/`. Java only; `spotless:off/on` appears around large registries.
2828
- CI release artifact: `.github/workflows/build.yml`. Runs `./gradlew :modules:CTNH-Core:build`; uploads `modules/CTNH-Core/build/libs/*.jar`.
29-
- Module roles: `modules/AGENTS.md`. Start there before editing module code.
29+
- Shared Ponder framework: `modules/CTNH-Lib/src/main/java/tech/vixhentx/mcmod/ctnhlib/client/ponder/CTNHPonderSceneBuilder.java`. Core/Energy keep module adapters and scene/tag registrations.
3030

3131
## CODE MAP
3232
- `CTNHCore`: mod entry at `modules/CTNH-Core/src/main/java/io/github/cpearl0/ctnhcore/CTNHCore.java`; main aggregation/core mod entry.
@@ -42,6 +42,7 @@ CTNH-Modules/
4242
- `sourceSets.main.resources` includes both `src/main/resources` and `src/generated/resources`.
4343
- Module `README.md` files mirror root build snippets; prefer root scripts for truth.
4444
- Recipe placement policy: most new recipes should live in CTNH-Core; Core may depend on other CTNH modules, but other modules must not depend on Core.
45+
- Ponder placement policy: reusable scene builder/text helpers live in CTNH-Lib; Core/Energy keep only module adapters, plugins, scene/tag registrations, and module-specific helpers.
4546
- No CTNH test suites are present; only `modules/GregTech-Modern/src/test/java` has tests.
4647

4748
## ANTI-PATTERNS (THIS PROJECT)
@@ -50,6 +51,7 @@ CTNH-Modules/
5051
- Do not assume one package namespace: modules use `io.github.cpearl0`, `com.moguang`, `tech.luckyblock`, `tech.vixhentx`, `com.mo_guang`, and `com.ctnh`.
5152
- Do not add new modules only in Gradle; README requires adding under `modules/` and including in `settings.gradle`.
5253
- Do not introduce dependencies from feature modules back to CTNH-Core; dependency direction is Core -> modules, not modules -> Core.
54+
- Do not move module-specific Ponder content into CTNH-Lib: scene/tag registrations stay in feature modules, and Energy's `AE2CablePonderHelper` stays in CTNH-Energy.
5355

5456
## COMMANDS
5557
```bash

modules/AGENTS.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ modules/
2828
## REGISTRATION ENTRYPOINTS
2929
- Cross-module rule: common recipes usually belong in `CTNH-Core`; feature modules expose registries/content that Core recipes can consume.
3030
- Standard CTNH pattern: `<Prefix>Registrate` owns the module registrate, `<Prefix>Blocks` / `<Prefix>Items` hold block/item entries, `<Prefix>Machines` / `<Prefix>Multiblock*` hold GTCEu machine entries, `<Prefix>RecipeTypes` and recipe data classes drive generated recipes.
31+
- Ponder pattern: shared `CTNHPonderSceneBuilder` lives in CTNH-Lib; modules provide thin adapters plus their own `PonderPlugin`, scene registration, tag registration, and concrete scene classes.
3132
- Module-specific details live in each child `AGENTS.md`; use this file only to pick the right module.
3233

3334
## CONVENTIONS
@@ -40,5 +41,6 @@ modules/
4041
## ANTI-PATTERNS
4142
- Do not move code between modules without checking Gradle dependencies and mod runtime load order.
4243
- Do not make feature modules depend on CTNH-Core; Core is allowed to depend on modules for aggregate recipes/content, not the reverse.
44+
- Do not put feature Ponder scenes, tags, plugins, or AE2-specific helpers in CTNH-Lib; only shared builder/text framework belongs there.
4345
- Do not edit `modules/libs` as source code; it is for local jar resolution.
4446
- Do not duplicate parent build instructions in child docs; root Gradle scripts are the source of truth.

0 commit comments

Comments
 (0)