Class ModConfigEvent.Unloading

java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.fml.event.config.ModConfigEvent
net.minecraftforge.fml.event.config.ModConfigEvent.Unloading
All Implemented Interfaces:
IConfigEvent, IModBusEvent
Enclosing class:
ModConfigEvent

public static class ModConfigEvent.Unloading extends ModConfigEvent
Fired when a config is unloaded. This only happens when the server closes, which is probably only really relevant on the client, to reset internal mod state when the server goes away, though it will fire on the dedicated server as well. The config file will be saved after this event has fired.
  • Constructor Details

    • Unloading

      public Unloading(ModConfig config)