public final class REIDApi
extends java.lang.Object
API_ID "RoughlyEnoughIds|API" (as a literal) to check if the API is loaded. Take care not to reference any
of these constants before checking the API is loaded, as it may not exist at runtime.
Recommended to cache this check. As an example:
boolean reidApiLoaded = ModAPIManager.INSTANCE.hasAPI("RoughlyEnoughIds|API");
This is the preferred way to check for the API over Loader.isModLoaded(String)
because REID shares the same mod id as JEID. Alternatively, you could explicitly check for the mod name and first
version that REID started providing its API (2.3.0).| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
API_ID |
static java.lang.String |
API_VERSION |
static org.apache.logging.log4j.Logger |
LOGGER |
static java.lang.String |
MOD_ID |
static java.lang.String |
MOD_NAME |
static java.lang.String |
MOD_VERSION |
| Constructor and Description |
|---|
REIDApi() |
public static final java.lang.String MOD_ID
public static final java.lang.String MOD_NAME
public static final java.lang.String MOD_VERSION
public static final java.lang.String API_ID
public static final java.lang.String API_VERSION
public static final org.apache.logging.log4j.Logger LOGGER