Skip to content

Use holders for GT content registration on 1.21 - #5358

Merged
gustovafing merged 26 commits into
1.21from
gus/use-holders-1.21
Sep 13, 2026
Merged

gustovafing merged 26 commits into
1.21from
gus/use-holders-1.21

Conversation

@gustovafing

@gustovafing gustovafing commented Aug 29, 2026

Copy link
Copy Markdown
Member

What

Wraps GT content registration in deferred holders, for everything except machines, material system stuff and recipe stuff (they will be handled in seperate PRs each).
No AI

@gustovafing gustovafing added 1.21.1 ignore changelog PR should not be added to the changelog. type: refactor Suggestion to refactor a section of code Release: API - X.0.0 Major Breaking Refactors that MUST be in a API-Breaking Release Ignore Version Sync Do not append this issue to the version sync issue tracker. labels Aug 29, 2026
@github-actions github-actions Bot added 1.21 Tests: Passed Game Tests have passed on this PR labels Aug 29, 2026
@gustovafing
gustovafing marked this pull request as ready for review August 31, 2026 01:12
@gustovafing
gustovafing requested a review from a team as a code owner August 31, 2026 01:12
@github-actions github-actions Bot added Tests: Failed Game Tests have failed on this PR Tests: Passed Game Tests have passed on this PR and removed Tests: Passed Game Tests have passed on this PR Tests: Failed Game Tests have failed on this PR labels Sep 5, 2026

@htmlcsjs htmlcsjs left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I have read though the code and tested some stuff ingame, admitidly alot of it went over my head but i would appreciate someone else looking through this

Comment thread src/main/java/com/gregtechceu/gtceu/api/addon/IGTAddon.java
}

public static void init() {
PlaceholderHandler.addPlaceholder(new Placeholder("ae2itemCount") {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Does the change from camelCase to snake_case here break preexisting monitors?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

It will, but that's not really a big concern on 1.21

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This is fine; as no 1.21 stable version has been released to break yet

@gustovafing
gustovafing added this pull request to stack #5411 September 9, 2026 08:23

@Reabstraction Reabstraction left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Mostly good, just two nitpicks

Comment thread src/main/java/com/gregtechceu/gtceu/common/data/machines/GTMachineUtils.java Outdated
Comment thread src/main/java/com/gregtechceu/gtceu/common/data/GTPlaceholders.java
}

public static void init() {
PlaceholderHandler.addPlaceholder(new Placeholder("ae2itemCount") {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This is fine; as no 1.21 stable version has been released to break yet

@github-actions github-actions Bot added Tests: Failed Game Tests have failed on this PR and removed Tests: Passed Game Tests have passed on this PR labels Sep 13, 2026
@github-actions github-actions Bot added Tests: Passed Game Tests have passed on this PR and removed Tests: Failed Game Tests have failed on this PR labels Sep 13, 2026
@gustovafing
gustovafing merged commit 608e50a into 1.21 Sep 13, 2026
4 checks passed
@gustovafing
gustovafing deleted the gus/use-holders-1.21 branch September 13, 2026 10:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

1.21 1.21.1 ignore changelog PR should not be added to the changelog. Ignore Version Sync Do not append this issue to the version sync issue tracker. Release: API - X.0.0 Major Breaking Refactors that MUST be in a API-Breaking Release Tests: Passed Game Tests have passed on this PR type: refactor Suggestion to refactor a section of code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants