getResource

@NotNull
abstract fun getResource(@NotNull resourcePath: @NotNull Identifier): @NotNull IResourceReader(source)

Gets a representation of a Minecraft resource. The resource may not exist, it should be checked with exists.

Parameters

resourcePath

The path to the resource to get a reader of