public static enum CoreAPI.ModLoader extends java.lang.Enum<CoreAPI.ModLoader>
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getPackageName()
Assume the base package if no package name is supplied
|
java.lang.String |
getPackageName(java.lang.String base) |
boolean |
isFabric() |
boolean |
isForge()
Legacy or modern Forge but not NeoForge
|
boolean |
isLegacyForge() |
boolean |
isModernForge() |
boolean |
isNeoForge() |
java.lang.String |
toString() |
static CoreAPI.ModLoader |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static CoreAPI.ModLoader[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CoreAPI.ModLoader FABRIC
public static final CoreAPI.ModLoader FORGE
public static final CoreAPI.ModLoader LEGACY
public static final CoreAPI.ModLoader NEOFORGE
public static CoreAPI.ModLoader[] values()
for (CoreAPI.ModLoader c : CoreAPI.ModLoader.values()) System.out.println(c);
public static CoreAPI.ModLoader valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic java.lang.String getPackageName()
public java.lang.String getPackageName(java.lang.String base)
public boolean isFabric()
public boolean isForge()
public boolean isLegacyForge()
public boolean isModernForge()
public boolean isNeoForge()
public java.lang.String toString()
toString in class java.lang.Enum<CoreAPI.ModLoader>