public class ConfigChangedEvent extends Event
Modifier and Type | Class and Description |
---|---|
static class |
ConfigChangedEvent.OnConfigChangedEvent
This event is intended to be consumed by the mod whose config has been changed.
|
static class |
ConfigChangedEvent.PostConfigChangedEvent
This event is provided for mods to consume if they want to be able to check if other mods' configs have been changed.
|
Event.HasResult, Event.Result
Constructor and Description |
---|
ConfigChangedEvent(java.lang.String modID,
java.lang.String configID,
boolean isWorldRunning,
boolean requiresMcRestart) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getConfigID()
A String identifier for this ConfigChangedEvent.
|
java.lang.String |
getModID()
The Mod ID of the mod whose configuration just changed.
|
boolean |
isRequiresMcRestart()
Will be set to true if any elements were changed that require a restart of Minecraft.
|
boolean |
isWorldRunning()
Whether or not a world is currently running.
|
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setup
public ConfigChangedEvent(java.lang.String modID, @Nullable java.lang.String configID, boolean isWorldRunning, boolean requiresMcRestart)
public java.lang.String getModID()
public boolean isWorldRunning()
public boolean isRequiresMcRestart()
@Nullable public java.lang.String getConfigID()