public interface CoreStateAccessor
| Modifier and Type | Field and Description |
|---|---|
static boolean[] |
BOOLEAN_VALUES
Why isn't there a default array like this anywhere?
|
static boolean |
FABRIC
Is this a Fabric environment?
|
static boolean |
FORGE
Is this a modern Forge environment? (1.13+)
|
static boolean |
FORGE_OR_NEOFORGE
Is this a modern Forge environment? (1.13+)
|
static CoreAPI.GameVersion |
GAME_VERSION
The GameVersion enum representing the current Minecraft version
|
static boolean |
JAVA_17
Is the environment running in Java 17?
|
static boolean |
JAVA_21
Is the environment running in Java 21?
|
static boolean |
JAVA_8
Is the environment running in Java 8?
|
static boolean |
JAVA_MODULES
Is the environment running in Java version with the Module system? (Java 9+)
|
static int |
JAVA_VERSION
Major Java version where 17 is returned if the CoreAPI fails to parse it
|
static int |
JAVA_VERSION_ASM
Java version int to use for writing classes via ASM
|
static boolean |
LEGACY
Is this a legacy Forge environment? (pre 1.13)
|
static CoreAPI.ModLoader |
MOD_LOADER
The ModLoader enum representing the current mod loader.
|
static boolean |
NAMED_ENV
Does this environment use named classes and methods?
|
static boolean |
NEOFORGE
Is this a Neoforge environment
|
static boolean |
SRG_ENV
Does this environment use SRG mappings? (Forge/Legacy/Neoforge)
|
static boolean |
V12
Is this Minecraft 1.12.2?
|
static boolean |
V16
Is this Minecraft 1.16.5?
|
static boolean |
V16_OR_EARLIER
Is the Minecraft version at most 1.16.5?
|
static boolean |
V16_OR_LATER
Is the Minecraft version at least 1.16.5?
|
static boolean |
V18
Is this Minecraft 1.18.2?
|
static boolean |
V18_OR_EARLIER
Is the Minecraft version at most 1.18.2?
|
static boolean |
V18_OR_LATER
Is the Minecraft version at least 1.18.2?
|
static boolean |
V19
Is this Minecraft 1.19? (either 1.19.2 or 1.19.4)
|
static boolean |
V19_2_OR_EARLIER
Is the Minecraft version at most 1.19.2?
|
static boolean |
V19_4_OR_LATER
Is the Minecraft version at least 1.19.4?
|
static boolean |
V19_OR_EARLIER
Is the Minecraft version at most 1.19.4?
|
static boolean |
V19_OR_LATER
Is the Minecraft version at least 1.19.2?
|
static boolean |
V20
Is this Minecraft 1.20? (either 1.20.1, 1.20.4 or 1.20.6)
|
static boolean |
V20_4_OR_EARLIER
Is the Minecraft version at most 1.20.4?
|
static boolean |
V20_6_OR_LATER
Is the Minecraft version at least 1.20.6?
|
static boolean |
V20_OR_EARLIER
Is the Minecraft version at most 1.20.6?
|
static boolean |
V20_OR_LATER
Is the Minecraft version at least 1.20.1?
|
static boolean |
V21
Is this Minecraft 1.21? (specifically 1.21.1)
|
static boolean |
V21_OR_LATER
Is the Minecraft version at least 1.21.1?
|
static final boolean[] BOOLEAN_VALUES
static final boolean FABRIC
static final boolean FORGE
static final boolean FORGE_OR_NEOFORGE
static final boolean JAVA_8
static final boolean JAVA_17
static final boolean JAVA_21
static final boolean JAVA_MODULES
static final boolean LEGACY
static final boolean NAMED_ENV
static final boolean NEOFORGE
static final boolean SRG_ENV
static final boolean V12
static final boolean V16
static final boolean V16_OR_EARLIER
static final boolean V16_OR_LATER
static final boolean V18
static final boolean V18_OR_EARLIER
static final boolean V18_OR_LATER
static final boolean V19
static final boolean V19_OR_EARLIER
static final boolean V19_OR_LATER
static final boolean V19_2_OR_EARLIER
static final boolean V19_4_OR_LATER
static final boolean V20
static final boolean V20_OR_EARLIER
static final boolean V20_OR_LATER
static final boolean V20_4_OR_EARLIER
static final boolean V20_6_OR_LATER
static final boolean V21
static final boolean V21_OR_LATER
static final int JAVA_VERSION_ASM
static final int JAVA_VERSION
static final CoreAPI.GameVersion GAME_VERSION
static final CoreAPI.ModLoader MOD_LOADER