Package org.bukkit
Interface MultiPaperNotificationManager
public interface MultiPaperNotificationManager
-
Method Summary
Modifier and TypeMethodDescriptionvoidNotify other servers.default voidNotify other servers.voidNotify other servers with the specified chunk loadeddefault voidNotify other servers with the specified chunk loadedvoidon(Plugin plugin, String channel, BiConsumer<byte[], BiConsumer<String, byte[]>> callbackWithReply) Listen to notifications sent by other servers.voidListen to notifications sent by other servers.default voidonString(Plugin plugin, String channel, BiConsumer<String, BiConsumer<String, String>> callbackWithReply) Listen to notifications sent by other servers.default voidListen to notifications sent by other servers.
-
Method Details
-
on
Listen to notifications sent by other servers.- Parameters:
plugin- The plugin listening to these notificationschannel- The notification channel to listen tocallback- A handler for any data received
-
onString
Listen to notifications sent by other servers.- Parameters:
plugin- The plugin listening to these notificationschannel- The notification channel to listen tocallback- A handler for any data received
-
on
void on(Plugin plugin, String channel, BiConsumer<byte[], BiConsumer<String, byte[]>> callbackWithReply) Listen to notifications sent by other servers.- Parameters:
plugin- The plugin listening to these notificationschannel- The notification channel to listen tocallbackWithReply- A handler for any data received, and a method to reply to the server on a specified channel
-
onString
default void onString(Plugin plugin, String channel, BiConsumer<String, BiConsumer<String, String>> callbackWithReply) Listen to notifications sent by other servers.- Parameters:
plugin- The plugin listening to these notificationschannel- The notification channel to listen tocallbackWithReply- A handler for any data received, and a method to reply to the server on a specified channel
-
notify
Notify other servers.- Parameters:
channel- The notification channel to notify ondata- The data to notify other servers with
-
notify
Notify other servers.- Parameters:
channel- The notification channel to notify ondata- The data to notify other servers with
-
notify
Notify other servers with the specified chunk loaded- Parameters:
chunk- The chunk that's loadedchannel- The notification channel to notify ondata- The data to notify other servers with
-
notify
Notify other servers with the specified chunk loaded- Parameters:
chunk- The chunk that's loadedchannel- The notification channel to notify ondata- The data to notify other servers with
-