@@ -40,6 +40,11 @@ public class ConfigChangedEvent extends Event {
4040 @ Nullable
4141 private final String configID ;
4242
43+ // For EventBus
44+ public ConfigChangedEvent () {
45+ this (null , null , false , false );
46+ }
47+
4348 public ConfigChangedEvent (String modID , @ Nullable String configID , boolean isWorldRunning , boolean requiresMcRestart ) {
4449 this .modID = modID ;
4550 this .configID = configID ;
@@ -88,6 +93,10 @@ public String getConfigID() {
8893 * Modders should check the modID field of the event to ensure they are only acting on their own config screen's event!
8994 */
9095 public static class OnConfigChangedEvent extends ConfigChangedEvent {
96+ // For EventBus
97+ public OnConfigChangedEvent () {
98+ }
99+
91100 public OnConfigChangedEvent (String modID , @ Nullable String configID , boolean isWorldRunning , boolean requiresMcRestart ) {
92101 super (modID , configID , isWorldRunning , requiresMcRestart );
93102 }
@@ -98,6 +107,10 @@ public OnConfigChangedEvent(String modID, @Nullable String configID, boolean isW
98107 * This event only fires if the OnConfigChangedEvent result is not DENY.
99108 */
100109 public static class PostConfigChangedEvent extends ConfigChangedEvent {
110+ // For EventBus
111+ public PostConfigChangedEvent () {
112+ }
113+
101114 public PostConfigChangedEvent (String modID , @ Nullable String configID , boolean isWorldRunning , boolean requiresMcRestart ) {
102115 super (modID , configID , isWorldRunning , requiresMcRestart );
103116 }
0 commit comments