Skip to content

Cleanup registry logic and API instances#10742

Merged
Raycoms merged 6 commits intoversion/mainfrom
feature/cleanup_registries
May 11, 2025
Merged

Cleanup registry logic and API instances#10742
Raycoms merged 6 commits intoversion/mainfrom
feature/cleanup_registries

Conversation

@Thodor12
Copy link
Copy Markdown
Contributor

Changes proposed in this pull request

  • Added javadoc to the API instances
  • Use shared reslocs for the deferred registers similar to 1.21

Testing

  • Yes I tested this before submitting it.
  • I also did a multiplayer test.

Review please


@Override
public IGlobalResearchTree getGlobalResearchTree()
public IForgeRegistry<InteractionResponseHandlerEntry> getInteractionResponseHandlerRegistry()
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.

Please don't re-order these, that's always a nightmare for difs

}

@Override
public IGlobalResearchTree getGlobalResearchTree()
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.

Not really possible to review what changed here because of the re-ordering too

Copy link
Copy Markdown
Contributor Author

@Thodor12 Thodor12 Apr 14, 2025

Choose a reason for hiding this comment

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

Nothing changed, the PR does exactly what it means to do, it's a cleanup. I arranged all the different classes along together (data managers, forge registries, custom registries, other classes, etc).

The only other change that's been done there is that the names of the registries were put into reslocs which are shared across the API and the deferred registers, similar to what's been done in 1.21

Raycoms
Raycoms previously approved these changes May 10, 2025
Thodor12 added 2 commits May 11, 2025 13:46
# Conflicts:
#	src/main/java/com/minecolonies/api/IMinecoloniesAPI.java
#	src/main/java/com/minecolonies/api/MinecoloniesAPIProxy.java
#	src/main/java/com/minecolonies/apiimp/CommonMinecoloniesAPIImpl.java
#	src/main/java/com/minecolonies/apiimp/initializer/ModResearchCostTypeInitializer.java
#	src/main/java/com/minecolonies/apiimp/initializer/ModResearchEffectInitializer.java
#	src/main/java/com/minecolonies/apiimp/initializer/ModResearchRequirementInitializer.java
@Raycoms Raycoms merged commit 27ada92 into version/main May 11, 2025
5 checks passed
@Raycoms Raycoms deleted the feature/cleanup_registries branch May 11, 2025 14:46
@Raycoms
Copy link
Copy Markdown
Contributor

Raycoms commented May 11, 2025

@Thodor12 need 1.21 version

Raycoms added a commit that referenced this pull request May 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants