[API8] Add datapack support#1706
Conversation
|
should we merge resource path with catalog key? |
|
If we do, we should settle on a better suited name. It doesn't make sense to get a Though they are slightly different. While both have a namespace and value, the resource path can contain a forward slash |
|
Something like |
|
I was thinking it would include the word namespace. Something like |
|
|
|
I don't like that this outright deprecates the Asset API. The goals of the Asset API were to simplify the process for new programmers to extract resources from their jar files, to their plugin directories on disk, usually used for extracting default or example configurations. If this is to happen, I'd like at least a little attention paid to giving those people a clear migration path, and maybe some docs to go along with it to explain exactly what this is and how it works. I also think the name DataPack is pretty close to the Mojang defined term. If this isn't intended to be directly compatible with that, or interact with that in some way then it's poorly named. But maybe I'm just not following why the name change is needed? |
c49bf87 to
d8a70e8
Compare
|
Please keep the |
| String getPath(); | ||
|
|
||
| @Override | ||
| int hashCode(); |
There was a problem hiding this comment.
I put it there originally because I wanted it to be clear that this can be used in a Map. Now I'm just saying so in the docs.
5f9b085 to
adfe438
Compare
4a4e07c to
1ad90b3
Compare
I'm still working on figuring out how ResourcePackList works.
but the PackInfo cannot be gotten back from the pack. Temp remove ResourceId until I can figure out a good way to use it. Remove the try-with-resources from Resource. It should be done from the caller.
Also some javadocs
Adds async reloaders Tweak some method names Remove some less useful methods TODO: Javadocs
74c58d2 to
b195b1d
Compare
|
@killjoy1221 Need this finished up soon else it won't make it for API 8.0.0 |
I'm assuming the client's resource manager was reused for the server. Likely more edits will come when I have access to deobfuscated code.