@@ -40,6 +40,11 @@ public class ConfigChangedEvent extends Event {
40
40
@ Nullable
41
41
private final String configID ;
42
42
43
+ // For EventBus
44
+ public ConfigChangedEvent () {
45
+ this (null , null , false , false );
46
+ }
47
+
43
48
public ConfigChangedEvent (String modID , @ Nullable String configID , boolean isWorldRunning , boolean requiresMcRestart ) {
44
49
this .modID = modID ;
45
50
this .configID = configID ;
@@ -88,6 +93,10 @@ public String getConfigID() {
88
93
* Modders should check the modID field of the event to ensure they are only acting on their own config screen's event!
89
94
*/
90
95
public static class OnConfigChangedEvent extends ConfigChangedEvent {
96
+ // For EventBus
97
+ public OnConfigChangedEvent () {
98
+ }
99
+
91
100
public OnConfigChangedEvent (String modID , @ Nullable String configID , boolean isWorldRunning , boolean requiresMcRestart ) {
92
101
super (modID , configID , isWorldRunning , requiresMcRestart );
93
102
}
@@ -98,6 +107,10 @@ public OnConfigChangedEvent(String modID, @Nullable String configID, boolean isW
98
107
* This event only fires if the OnConfigChangedEvent result is not DENY.
99
108
*/
100
109
public static class PostConfigChangedEvent extends ConfigChangedEvent {
110
+ // For EventBus
111
+ public PostConfigChangedEvent () {
112
+ }
113
+
101
114
public PostConfigChangedEvent (String modID , @ Nullable String configID , boolean isWorldRunning , boolean requiresMcRestart ) {
102
115
super (modID , configID , isWorldRunning , requiresMcRestart );
103
116
}
0 commit comments