Package org.bukkit
Interface MultiPaperNotificationManager
public interface MultiPaperNotificationManager
-
Method Summary
Modifier and TypeMethodDescriptionvoidNotify all other servers.default voidNotify all other servers.voidNotify other servers with the specified chunk loadeddefault voidNotify other servers with the specified chunk loadedvoidnotifyOwningServer(Chunk chunk, String channel, byte[] data) Notify the owning server of the specified chunk.default voidnotifyOwningServer(Chunk chunk, String channel, String data) Notify the owning server of the specified chunk.voidnotifyOwningServer(Player player, String channel, byte[] data) Notify the owning server of the specified player.default voidnotifyOwningServer(Player player, String channel, String data) Notify the owning server of the specified player.voidon(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 all other servers.- Parameters:
channel- The notification channel to notify ondata- The data to notify other servers with
-
notify
Notify all 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
-
notifyOwningServer
Notify the owning server of the specified chunk. This chunk must be loaded on this server. This will notify this server if this server is the owning server.- Parameters:
chunk- The loaded chunk with an owning serverchannel- The notification channel to notify ondata- The data to notify other servers with
-
notifyOwningServer
Notify the owning server of the specified chunk. This chunk must be loaded on this server. This will notify this server if this server is the owning server.- Parameters:
chunk- The loaded chunk with an owning serverchannel- The notification channel to notify ondata- The data to notify other servers with
-
notifyOwningServer
Notify the owning server of the specified player. This will notify this server if this server is the owning server.- Parameters:
player- The player with an owning serverchannel- The notification channel to notify ondata- The data to notify other servers with
-
notifyOwningServer
Notify the owning server of the specified player. This will notify this server if this server is the owning server.- Parameters:
player- The player with an owning serverchannel- The notification channel to notify ondata- The data to notify other servers with
-