public interface MessageSinkFactory
MessageSink
instances.Modifier and Type | Method and Description |
---|---|
MessageSink |
combined(MessageSink... sinks)
A message sink that targets all subjects contained within the given sinks
and applies the message transformations of each sink in order (so with n
sinks,
sinks[n-1].transformMessage(sinks[n-2].transformMessage(sinks[...]
.transformMessage(sinks[0].transformMessage(input)))) would occur) |
MessageSink |
to(Set<CommandSource> sources)
Get a message sink that targets the given sources.
|
MessageSink |
toAll()
A message sink that targets all subjects currently active.
|
MessageSink |
toAllPlayers()
A message sink that targets all players currently active.
|
MessageSink |
toNone()
An empty message sink.
|
MessageSink |
toPermission(String permission)
A message sink that targets all subjects with the given permission.
|
MessageSink toPermission(String permission)
permission
- The permission to targetMessageSink toAll()
MessageSink toAllPlayers()
MessageSink toNone()
MessageSink combined(MessageSink... sinks)
sinks[n-1].transformMessage(sinks[n-2].transformMessage(sinks[...]
.transformMessage(sinks[0].transformMessage(input))))
would occur)sinks
- The sinks to combineMessageSink to(Set<CommandSource> sources)
sources
- The sources to have as recipients