Skip to content

Refactor resource pack loading#1734

Merged
leMaik merged 2 commits intochunky-dev:masterfrom
leMaik:refactor-layered-resource-packs
Jul 6, 2024
Merged

Refactor resource pack loading#1734
leMaik merged 2 commits intochunky-dev:masterfrom
leMaik:refactor-layered-resource-packs

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
leMaik added 2 commits July 6, 2024 16:42
…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
@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