Skip to content

Add ISyncAnnotated for syncable data classes and clean up some other sync stuff#4848

Merged
gustovafing merged 6 commits into
1.20.1from
gus/sync-fixes
May 18, 2026
Merged

Add ISyncAnnotated for syncable data classes and clean up some other sync stuff#4848
gustovafing merged 6 commits into
1.20.1from
gus/sync-fixes

Conversation

@gustovafing
Copy link
Copy Markdown
Member

What

Adds ISyncAnnotated for syncable data classes
Also cleans up some more sync related stuff

Outcome

Happy onion 🧅

How Was This Tested

Game loads with valid data, saving and reloading has correct data, client data also appears correct.

@gustovafing gustovafing requested a review from a team as a code owner May 18, 2026 10:45
@github-actions github-actions Bot added 1.20.1 Tests: Passed Game Tests have passed on this PR labels May 18, 2026
Comment thread src/main/java/com/gregtechceu/gtceu/api/sync_system/FieldSyncHandler.java Outdated
Comment thread src/main/java/com/gregtechceu/gtceu/api/sync_system/FieldSyncHandler.java Outdated
Comment thread docs/content/Development/Data-Sync-System/Usage.md Outdated
Comment thread docs/content/Development/Data-Sync-System/Usage.md Outdated

```java
class MySyncObject implements ISyncManaged {
// Any class that directly implements ISyncManaged must have the following:
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.

Do we want to split out "any ISyncManaged class should have this" and "Here's an example of how to use ISyncManaged class"?

Comment thread docs/content/Development/Data-Sync-System/Usage.md Outdated
@gustovafing gustovafing merged commit 3c50e91 into 1.20.1 May 18, 2026
4 checks passed
@gustovafing gustovafing deleted the gus/sync-fixes branch May 18, 2026 11:34
Comment on lines +681 to +683
// Necessary since a RecipeCapability was removed when removing Create support,
// and for future
// removals
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.

incredible formatting

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

Labels

1.20.1 Tests: Passed Game Tests have passed on this PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants