| Enum Constant and Description |
|---|
DYNAMICTREES |
TCONSTRUCT |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
asId() |
boolean |
isLoaded() |
<T> java.util.Optional<T> |
runIfInstalled(java.util.function.Supplier<java.util.function.Supplier<T>> toRun)
Simple hook to run code if a mod is installed
|
static Mods |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Mods[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Mods DYNAMICTREES
public static final Mods TCONSTRUCT
public static Mods[] values()
for (Mods c : Mods.values()) System.out.println(c);
public static Mods 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 boolean isLoaded()
public java.lang.String asId()
public <T> java.util.Optional<T> runIfInstalled(java.util.function.Supplier<java.util.function.Supplier<T>> toRun)
toRun - will be run only if the mod is loaded