Skip to content

Commit

Permalink
Add ResourcePackBuilder#resolveVanilla from string path
Browse files Browse the repository at this point in the history
  • Loading branch information
NichtStudioCode committed Dec 7, 2024
1 parent 8e9b981 commit a1ba616
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -413,6 +413,12 @@ class ResourcePackBuilder internal constructor() {
fun resolveVanillaMeta(path: ResourcePath<ResourceType.HasMcMeta>): Path =
MCASSETS_DIR.resolve("${path.filePath}.mcmeta")

/**
* Resolves the file under [path] in the vanilla minecraft assets.
*/
fun resolveVanilla(path: String): Path =
MCASSETS_DIR.resolve(path)

/**
* Resolves the file under [path] in the resource pack.
*/
Expand Down

0 comments on commit a1ba616

Please sign in to comment.