@@ -71,8 +71,8 @@ public abstract class BlueMapAPI {
71
71
72
72
private static BlueMapAPI instance ;
73
73
74
- private static final Collection <Consumer <BlueMapAPI >> onEnableConsumers = new HashSet <>(2 );
75
- private static final Collection <Consumer <BlueMapAPI >> onDisableConsumers = new HashSet <>(2 );
74
+ private static final LinkedHashSet <Consumer <BlueMapAPI >> onEnableConsumers = new LinkedHashSet <>();
75
+ private static final LinkedHashSet <Consumer <BlueMapAPI >> onDisableConsumers = new LinkedHashSet <>();
76
76
77
77
/**
78
78
* Getter for the {@link RenderManager}.
@@ -163,6 +163,7 @@ public static synchronized Optional<BlueMapAPI> getInstance() {
163
163
* <p><b>The {@link Consumer} can be called multiple times if BlueMap disables and enables again, e.g. if BlueMap gets reloaded!</b></p>
164
164
* <p><i>(Note: The consumer will likely be called asynchronously, <b>not</b> on the server-thread!)</i></p>
165
165
* <p>Remember to unregister the consumer when you no longer need it using {@link #unregisterListener(Consumer)}.</p>
166
+ * <p>The {@link Consumer}s are guaranteed to be called in the order they were registered in.</p>
166
167
* @param consumer the {@link Consumer}
167
168
*/
168
169
public static synchronized void onEnable (Consumer <BlueMapAPI > consumer ) {
@@ -176,6 +177,7 @@ public static synchronized void onEnable(Consumer<BlueMapAPI> consumer) {
176
177
* <p><b>The {@link Consumer} can be called multiple times if BlueMap disables and enables again, e.g. if BlueMap gets reloaded!</b></p>
177
178
* <p><i>(Note: The consumer will likely be called asynchronously, <b>not</b> on the server-thread!)</i></p>
178
179
* <p>Remember to unregister the consumer when you no longer need it using {@link #unregisterListener(Consumer)}.</p>
180
+ * <p>The {@link Consumer}s are guaranteed to be called in the order they were registered in.</p>
179
181
* @param consumer the {@link Consumer}
180
182
*/
181
183
public static synchronized void onDisable (Consumer <BlueMapAPI > consumer ) {
0 commit comments