resolvePath

public final static Identifier resolvePath(String resourcePath, String path)(source)

Resolves a texture path starting at resourcePath if it's relative. Ported from v1 codebase. Legacy code, if it works, then don't touch it.

Return

The absolute path to the resource or null if it escapes the root with ..

Parameters

resourcePath

The starting path

path

The path to expand to an absolute path