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 MessageReceivers. |
| 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, waitasMutable, combined, combined, fixed, fixed, permission, send, send, send, send, transformMessage, worldprotected final Set<MessageReceiver> recipients
public FixedMessageChannel(MessageReceiver... recipients)
MessageChannel with the
provided MessageReceivers.recipients - The array of recipientspublic FixedMessageChannel(Collection<? extends MessageReceiver> provided)
provided - The message receiverspublic Collection<MessageReceiver> getMembers()
MessageChannelgetMembers in interface MessageChannel