Interface StreamMessageContext
- All Superinterfaces:
MessageContext
A change to a player's stream status.
Builds on
MessageContext.-
Nested Class Summary
Nested classes/interfaces inherited from interface MessageContext
MessageContext.CacheKey -
Method Summary
Modifier and TypeMethodDescriptionstatic net.flectone.pulse.module.command.stream.model.StreamMessageContextImpl.StreamMessageContextImplBuilderbuilder()Starts building this context.booleanturned()Whether streaming was announced, rather than ended.@Nullable Stringurls()The stream links, or null if none were given.withTurned(boolean turned) Returns a copy carrying a different value.Returns a copy carrying a different value.Methods inherited from interface MessageContext
addFlag, addFlags, addTagResolver, addTagResolvers, base, createCacheKey, flags, isFlag, message, receiver, sender, tagResolver, toBuilder, uuid, withBase, withFlags, withMessage, withReceiver, withSender, withTagResolver, withUuid
-
Method Details
-
builder
static net.flectone.pulse.module.command.stream.model.StreamMessageContextImpl.StreamMessageContextImplBuilder builder()Starts building this context.- Returns:
- a new builder
-
turned
boolean turned()Whether streaming was announced, rather than ended.- Returns:
- whether streaming was announced, rather than ended
-
urls
@Nullable String urls()The stream links, or null if none were given.- Returns:
- the stream links, or null if none were given
-
withTurned
Returns a copy carrying a different value.- Parameters:
turned- whether streaming was announced, rather than ended- Returns:
- the copy
-
withUrls
Returns a copy carrying a different value.- Parameters:
urls- the stream links, or null if none were given- Returns:
- the copy
-