public enum ReloadManager extends java.lang.Enum<ReloadManager>
Enum Constant and Description |
---|
INSTANCE |
Modifier and Type | Field and Description |
---|---|
static ReloadSource |
CONFIG_COLOUR_BLIND |
static ReloadSource |
CONFIG_ROTATE_TRAVEL_ITEMS |
Modifier and Type | Method and Description |
---|---|
void |
addDependency(ReloadSource from,
IReloadable to,
ReloadSource locationTo) |
void |
addDependency(ReloadSource from,
ReloadSource to) |
void |
addDependency(ReloadSource from,
java.lang.Runnable to) |
void |
postReload(java.util.Collection<ReloadSource> locations)
Call this *after* the given
ReloadSource has been reloaded. |
void |
postReload(ReloadSource location) |
void |
preReloadResources() |
static ReloadManager |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ReloadManager[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ReloadManager INSTANCE
public static final ReloadSource CONFIG_COLOUR_BLIND
public static final ReloadSource CONFIG_ROTATE_TRAVEL_ITEMS
public static ReloadManager[] values()
for (ReloadManager c : ReloadManager.values()) System.out.println(c);
public static ReloadManager 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 void addDependency(ReloadSource from, IReloadable to, ReloadSource locationTo)
public void addDependency(ReloadSource from, java.lang.Runnable to)
public void addDependency(ReloadSource from, ReloadSource to)
public void preReloadResources()
public void postReload(ReloadSource location)
public void postReload(java.util.Collection<ReloadSource> locations)
ReloadSource
has been reloaded.