checkModVersion

open fun checkModVersion(@NotNull modId: @NotNull String, @NotNull predicate: @NotNull (Version) -> Boolean): Boolean(source)

Checks if the appropriate version if the given mod is loaded.

Return

true, if the given mod is loaded, and its version matches the given predicate, false otherwise (including the case, when the mod isn't loaded)

Parameters

modId

The mod ID to check

predicate

The predicate to decide if the version is appropriate