Interface ZusatzmodulNachrichtAddressat
public interface ZusatzmodulNachrichtAddressat
Represents a possible recipient for a Zusatzmodul Message.
-
Method Summary
Modifier and TypeMethodDescriptionGets a set containing all the Zusatzmodul Channels that this client is listening on.void
sendPluginMessage
(Zusatzmodul source, String channel, byte[] message) Sends this recipient a Zusatzmodul Message on the specified outgoing channel.
-
Method Details
-
sendPluginMessage
void sendPluginMessage(@NotNull Zusatzmodul source, @NotNull String channel, @NotNull byte[] message) Sends this recipient a Zusatzmodul Message on the specified outgoing channel.The message may not be larger than
Bote.MAX_MESSAGE_SIZE
bytes, and the zusatzmodul must be registered to send messages on the specified channel.- Parameters:
source
- The zusatzmodul that sent this message.channel
- The channel to send this message on.message
- The raw message to send.- Throws:
IllegalArgumentException
- Thrown if the source zusatzmodul is disabled.IllegalArgumentException
- Thrown if source, channel or message is null.NachrichtZuGrossAusnahme
- Thrown if the message is too big.KanalNichtRegistriertAusnahme
- Thrown if the channel is not registered for this zusatzmodul.
-
getListeningPluginChannels
Gets a set containing all the Zusatzmodul Channels that this client is listening on.- Returns:
- Set containing all the channels that this client may accept.
-