You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -113,7 +119,11 @@ public abstract class BlueMapAPI {
113
119
/**
114
120
* Register a listener that will be called when the API enables/disables
115
121
* @param listener the {@link BlueMapAPIListener}
122
+
*
123
+
* @deprecated Implementing {@link BlueMapAPIListener} can cause a ClassNotFoundException when you soft-depend on BlueMap and your plugin/mod gets used without BlueMap.
124
+
* Use {@link BlueMapAPI#onEnable(Consumer)} and {@link BlueMapAPI#onDisable(Consumer)} instead.
* @param listener the {@link BlueMapAPIListener} instance that has been registered previously
125
135
*
126
136
* @return <code>true</code> if a listener was removed as a result of this call
137
+
*
138
+
* @deprecated Implementing {@link BlueMapAPIListener} can cause a ClassNotFoundException when you soft-depend on BlueMap and your plugin/mod gets used without BlueMap.
139
+
* Use {@link BlueMapAPI#onEnable(Consumer)} and {@link BlueMapAPI#onDisable(Consumer)} instead.
* Registers a {@link Consumer} that will be called <b>before</b> BlueMap is being unloaded and stopped, after this method returns the API is no longer usable!<br>
166
+
* Unlike {@link BlueMapAPIListener#onEnable(BlueMapAPI)}, if {@link BlueMapAPI} is not enabled when this listener is registered this method will <b>not</b> be called immediately.
167
+
* <p><i>(Note: This method will likely be called asynchronously, <b>not</b> on the server-thread!</i></p>
Copy file name to clipboardExpand all lines: src/main/java/de/bluecolored/bluemap/api/BlueMapAPIListener.java
+5Lines changed: 5 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -24,6 +24,11 @@
24
24
*/
25
25
packagede.bluecolored.bluemap.api;
26
26
27
+
/**
28
+
* @deprecated Implementing {@link BlueMapAPIListener} can cause a ClassNotFoundException when you soft-depend on BlueMap and your plugin/mod gets used without BlueMap.
29
+
* Use {@link BlueMapAPI#onEnable(Consumer)} and {@link BlueMapAPI#onDisable(Consumer)} instead.
0 commit comments