getResource

@Nullable
abstract fun getResource(@NotNull path: @NotNull String): @Nullable InputStream

Retrieves a resource from the platform's JAR file.

Return

an input stream for the resource, or null if not found

Since

1.15.2

Parameters

path

the path to the resource