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
Modifier and Type | Field and Description |
---|---|
java.lang.String |
configID
A String identifier for this ConfigChangedEvent.
|
boolean |
isWorldRunning
Whether or not a world is currently running.
|
java.lang.String |
modID
The Mod ID of the mod whose configuration just changed.
|
boolean |
requiresMcRestart
Will be set to true if any elements were changed that require a restart of Minecraft.
|
Constructor and Description |
---|
ConfigChangedEvent(java.lang.String modID,
java.lang.String configID,
boolean isWorldRunning,
boolean requiresMcRestart) |
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setup
public final java.lang.String modID
public final boolean isWorldRunning
public final boolean requiresMcRestart
public final java.lang.String configID