Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Data Driving #25

Merged
merged 7 commits into from
Apr 14, 2023
Merged

Data Driving #25

merged 7 commits into from
Apr 14, 2023

Conversation

falkreon
Copy link
Member

This PR enables loader-agnostic mod integrations, but comes with some other changes:

  • Block creation requests will all "defer" if the base block isn't available yet
  • Blocks will take the namespace of the mod that requested them
  • The staticdata system was added, which I may hoist into a standalone / JiJ-able quilt mod

This will take some careful documentation so people can get the most out of it, but in my opinion is a slam-dunk solution for #13

Copy link
Contributor

@maximumpower55 maximumpower55 left a comment

Choose a reason for hiding this comment

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

I have a nitpick, question, and a major change suggestion, the actual deferred registration code looks great though

//ArchitectureExtensions.LOGGER.info("Deferred generation: "+deferral.modId()+" requested "+deferral.getIds()+" and registration was deferred.");
deferrals.put(groupedBlock.id(), deferral);
} else {
//ArchitectureExtensions.LOGGER.info("Deferred generation: "+deferral.modId()+" requested "+deferral.getIds()+" and registration was completed immediately.");
Copy link
Contributor

Choose a reason for hiding this comment

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

Why are these commented out code lines still here

Copy link
Member Author

Choose a reason for hiding this comment

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

I wanted to help future debuggers

@falkreon falkreon requested a review from woodiertexas April 13, 2023 20:24
Copy link
Collaborator

@woodiertexas woodiertexas left a comment

Choose a reason for hiding this comment

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

Looks good to me aside from a few things I spotted.

An aside: If you'd like, you could throw in some more documentation so whoever looks at the code in the future knows what's going on and how to work with said code.

@woodiertexas
Copy link
Collaborator

Also regarding namespaces, it can potentially confuse someone if an arch-ex block made from "Example Mod" had example_mod:arch_ex_block instead of architecture_extensions:arch_ex_block

@woodiertexas woodiertexas merged commit fa7bd17 into DebuggyTeam:1.19 Apr 14, 2023
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