-
Notifications
You must be signed in to change notification settings - Fork 77
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
Split World and Dimension into their own classes #1611
Split World and Dimension into their own classes #1611
Conversation
World handles per-world data, and loading Dimensions Dimension handles regions, chunks, loading chunks, and any per-dimension data. This commit fails to run without commenting out all of the CubicChunks classes
This PR has some reasonable change of breaking plugin api actually |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mostly nit-picking (remove abbreviations like pos, change getters/setters to Java convention).
Everything else looks good, I like the split of Worlds and Dimensions. 👏
3d2369b
to
464dfd2
Compare
(force push to drop redundant plugin api commit) |
* Split the concepts of Dimension and World into their own class. World handles per-world data, and loading Dimensions Dimension handles regions, chunks, loading chunks, and any per-dimension data. This commit fails to run without commenting out all of the CubicChunks classes * Properly handle loading cubic dimensions * Don't reload world when switching dimensions, only load the new dimension * Correct following project naming conventions
Split the concepts of Dimension and World into their own class,
World handles per-world data, and loading Dimensions
Dimension handles regions, chunks, loading chunks, and any per-dimension data.
There is no API for detecting the format of a world or dimensions within it, hopefully that can come in the next PR
This PR properly loads a world with one or more vanilla dimensions, and one or more CubicChunks dimensions (previously the entire world was either vanilla or CubicChunks)