Interface ComponentMessageContext
- All Superinterfaces:
MessageContext
A message context that also carries a ready-made component that should be inserted as-is.
-
Nested Class Summary
Nested classes/interfaces inherited from interface MessageContext
MessageContext.CacheKey -
Method Summary
Modifier and TypeMethodDescriptionstatic net.flectone.pulse.model.event.message.context.ComponentMessageContextImpl.ComponentMessageContextImplBuilderbuilder()Starts building this context.@NonNull net.kyori.adventure.text.ComponentThe extra value carried alongside the message.withComponent(@NonNull net.kyori.adventure.text.Component component) 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.model.event.message.context.ComponentMessageContextImpl.ComponentMessageContextImplBuilder builder()Starts building this context.- Returns:
- a new builder
-
component
@NonNull net.kyori.adventure.text.Component component()The extra value carried alongside the message.- Returns:
- the component
-
withComponent
Returns a copy carrying a different value.- Parameters:
component- the new value- Returns:
- the copy
-