public interface MutableMessageChannel extends MessageChannel
TO_ALL, TO_CONSOLE, TO_NONE, TO_PLAYERS
Modifier and Type | Method and Description |
---|---|
boolean |
addMember(MessageReceiver member)
Adds a member to this channel.
|
default MutableMessageChannel |
asMutable()
Gets or creates a mutable version of this channel.
|
void |
clearMembers()
Removes all of the members from this channel.
|
boolean |
removeMember(MessageReceiver member)
Removes a member from this channel.
|
combined, combined, fixed, fixed, getMembers, permission, send, send, send, send, transformMessage, world
boolean addMember(MessageReceiver member)
member
- The member to addtrue
if this channel did not already contain the memberboolean removeMember(MessageReceiver member)
member
- The member to removetrue
if this channel contained the specified membervoid clearMembers()
default MutableMessageChannel asMutable()
MessageChannel
The default behaviour of this method is to copy the current member
list into a DelegateMutableMessageChannel
, which calls the
MessageChannel.transformMessage(Object, MessageReceiver, Text, ChatType)
method
on this channel.
asMutable
in interface MessageChannel