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

Refactor resource pack loading #1734

Merged
merged 2 commits into from
Jul 6, 2024

Conversation

leMaik
Copy link
Member

@leMaik leMaik commented Jun 3, 2024

For now, this makes loading painting variant and biome registries less hacky. In the future, this enables loading other files, eg. model json files, PBR maps or animation metadata.

Related to #751, #1332 and #1728

@leMaik leMaik added the textures label Jun 3, 2024
@leMaik leMaik changed the title Refactor resource packs loading Refactor resource pack loading Jun 3, 2024
…om a resourcepack.

For now, this makes loading painting variant and biome registries less hacky. In the future, this enables loading other files, eg. model json files or PBR maps.
@leMaik leMaik force-pushed the refactor-layered-resource-packs branch from 224e827 to 4e90526 Compare July 6, 2024 15:06
@leMaik leMaik merged commit ee088a7 into chunky-dev:master Jul 6, 2024
1 check passed
@leMaik leMaik deleted the refactor-layered-resource-packs branch July 6, 2024 15:09
Copy link
Member

@ShirleyNekoDev ShirleyNekoDev left a comment

Choose a reason for hiding this comment

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

The class LayeredResourcePacks sounds like it implements a similar interfaces as a "ResourcePack", maybe rename this to LayeredResourcePackContainer or something?

Otherwise this looks fine but I'd have to use it to see how I like it ^^

@leMaik
Copy link
Member Author

leMaik commented Jul 6, 2024

@ShirleyNekoDev Thanks for the review 😄 See #1728 for how it can be used. I renamed this class a few times… But in the end, it's "all resource packs you have" in one object, so I sticked with that name.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants