Skip to content

Update 1.21 machine builder - #5366

Closed
gustovafing wants to merge 52 commits into
1.21from
gus/update-machine-builder
Closed

Update 1.21 machine builder#5366
gustovafing wants to merge 52 commits into
1.21from
gus/update-machine-builder

Conversation

@gustovafing

Copy link
Copy Markdown
Member

What

Small update to machine builder with changes necessary to convert it into a full registrate builder later.
Exposes item and block builder fully, instead of requiring our api to specifically expose parts of the registrate block/item builder.

no ai

@gustovafing
gustovafing requested a review from a team as a code owner August 30, 2026 04:13
@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 30, 2026
@github-actions github-actions Bot added 1.21 Tests: Failed Game Tests have failed on this PR labels Aug 30, 2026
# Conflicts:
#	src/main/java/com/gregtechceu/gtceu/api/data/worldgen/modifier/DimensionFilter.java
#	src/main/java/com/gregtechceu/gtceu/api/data/worldgen/modifier/FrequencyModifier.java
#	src/main/java/com/gregtechceu/gtceu/common/CommonProxy.java
#	src/main/java/com/gregtechceu/gtceu/common/data/GTFeatures.java
#	src/main/java/com/gregtechceu/gtceu/common/worldgen/modifier/BiomeDependentPlacement.java
#	src/main/java/com/gregtechceu/gtceu/common/worldgen/modifier/RubberTreeChancePlacement.java
#	src/main/java/com/gregtechceu/gtceu/data/loot/ChestGenHooks.java
#	src/test/java/com/gregtechceu/gtceu/gametest/world/RealWorldItemUsage.java
# Conflicts:
#	src/main/java/com/gregtechceu/gtceu/api/addon/IGTAddon.java
#	src/main/java/com/gregtechceu/gtceu/common/CommonProxy.java
#	src/main/java/com/gregtechceu/gtceu/common/data/GTSoundEntries.java
#	src/main/java/com/gregtechceu/gtceu/integration/kjs/GregTechKubeJSPlugin.java
@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 Aug 31, 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 looked over the code and tested it ingame with the KJS scripts for the gcp multiblocks and they worked fine with no modification. I would appreciate someone else looking over the code


public static MachineDefinition getBuilt() {
return STATE.get();
return Objects.requireNonNull(STATE.get());

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.

STATE is internally nullable, could this lead to crashes?

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 shouldn't, the places where getBuilt is called from are where it will not be null.

# Conflicts:
#	docs/content/Modpacks/Other-Topics/Ambiguous-Methods.md
#	src/main/java/com/gregtechceu/gtceu/api/registry/registrate/GTRegistrate.java
@gustovafing gustovafing closed this Sep 9, 2026
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.

2 participants