public class FixedMessageChannel extends Object implements MessageChannel
Modifier and Type | Field and Description |
---|---|
protected Set<MessageReceiver> |
recipients |
TO_ALL, TO_CONSOLE, TO_NONE, TO_PLAYERS
Constructor and Description |
---|
FixedMessageChannel(Collection<? extends MessageReceiver> provided)
|
FixedMessageChannel(MessageReceiver... recipients)
Creates an unmodifiable
MessageChannel with the
provided MessageReceiver s. |
Modifier and Type | Method and Description |
---|---|
Collection<MessageReceiver> |
getMembers()
Gets a collection of all members in this channel.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
asMutable, combined, combined, fixed, fixed, permission, send, send, send, send, transformMessage, world
protected final Set<MessageReceiver> recipients
public FixedMessageChannel(MessageReceiver... recipients)
MessageChannel
with the
provided MessageReceiver
s.recipients
- The array of recipientspublic FixedMessageChannel(Collection<? extends MessageReceiver> provided)
provided
- The message receiverspublic Collection<MessageReceiver> getMembers()
MessageChannel
getMembers
in interface MessageChannel