forge.version.check_api_level(value: object) -> int
Return the declared level if Forge supports it, else raise ForgeApiError.
ForgeApiError
value is the module's FORGE_API constant, or None when the file declares none. bool is refused even though it is an int subclass.
value
FORGE_API
None
bool
int
All of forge.version