getResourcePack

@NotNull
abstract fun getResourcePack(): @NotNull IResourcePack(source)

Returns the resource pack the given resource is loaded from. The loading order is specified in Minecraft Resource Pack settings.

Throws

If the given resource doesn't exist. Check with exists